Linux File System and The Shell Yonglei Tao. Linux File System  Consists of one or more self-contained file management units  each is known as a filesystem.

Slides:



Advertisements
Similar presentations
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Advertisements

EMT 2390L Lecture 4 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
1 CSE 303 Lecture 4 users/groups; permissions; intro to shell scripting read Linux Pocket Guide pp , 25-27, 61-65, , 176 slides created by.
Linux+ Guide to Linux Certification, Second Edition
Linux Files. Files and directories As in Windows directories are structures which contain –Other directories –Files.
Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh.
Introduction to Linux and Shell Scripting Jacob Chan.
Linux Commands LINUX COMMANDS.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
Introduction to Linux Workshop February Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
Learning basic Unix command IT 325 operating system.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
The UNIX Shell. The Shell Program that constantly runs at terminal after a user has logged in. Prompts the user and waits for user input. Interprets command.
2INC0 Operating Systems Introduction to Linux
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
CS 6560 Operating System Design Lecture 3:Tour of GNU/Linux.
System Administration Introduction to Unix Session 2 – Fri 02 Nov 2007 Reference:  chapter 1, The Unix Programming Environment, Kernighan & Pike, ISBN.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
Introduction to Bash Programming Ellen Zhang. Previous three classes What have we learnt so far ?
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
1 System Administration Introduction to Scripting, Perl Session 3 – Sat 10 Nov 2007 References:  chapter 1, The Unix Programming Environment, Kernighan.
A Menu-Driven Application Yonglei Tao. Problem Statement  Develop a script program that allows the user to create and maintain an directory, called.
Lesson 2 1.Commands 2.Filename Substitution 3.I/O Redirection 4.Command Grouping 5.Shell Responisibilites Review of the Basics.
Unix/Linux cs3353. The Shell The shell is a program that acts as the interface between the user and the kernel. –The shell is fully programmable and will.
Adv. UNIX: Shell/21 Advanced UNIX v Objectives –to supplement the “Introduction to UNIX” slides with extra information about the Shell
Next Unix Topics Tuesday, 2/11 & 18/2014. Change Password (by 2/14/14) ssh to account on – faclinux.cse.ohio-state.edu – stdlinux.cse.ohio-state.edu passwd.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Lecture 24CS311 – Operating Systems 1 1 CS311 – Lecture 24 Outline Final Exam Study Guide Note: These lecture notes are not intended replace your notes.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
UNIX An Introduction. Brief History UNIX UNIX Created at Bell Labs, 1969 Created at Bell Labs, 1969 BSD during mid 70s BSD during mid 70s AT&T began offering.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
Linux+ Guide to Linux Certification, Third Edition
Linux - Ubuntu LECTURE TWO. Objective: Enable students to understand the practical side of Linux operating system. Understand and implement the following.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Linux Commands C151 Multi-User Operating Systems.
Linux+ Guide to Linux Certification, Second Edition
Learning basic Unix command It 325 operating system.
File Management commands cat Cat command cat cal.txt cat command displays the contents of a file here cal.txt on screen (or standard out).
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Learning Unix/Linux Based on slides from: Eric Bishop.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
IT244 - Introduction to Linux / Unix Instructor: Bo Sheng
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Linux 101 Training Module Linux Basics.
Andy Wang Object Oriented Programming in C++ COP 3330
Part 1: Basic Commands/Utilities
Some Linux Commands.
Shell Script Assignment 1.
Linux Basic Commands Visit to more Learning Resources.
INTRODUCTION TO UNIX: The Shell Command Interface
Introduction to UNIX.
Using Linux Commands Lab 3.
Operating Systems and Using Linux
The Linux Command Line Chapter 6
CS 60 Discussion Review.
Introduction to Computer Organization & Systems
Operating Systems and Using Linux
UNIX Reference Sheets CSE 2031 Fall 2010.
Andy Wang Object Oriented Programming in C++ COP 3330
Linux Shell Script Programming
Operating Systems and Using Linux
Presentation transcript:

Linux File System and The Shell Yonglei Tao

Linux File System  Consists of one or more self-contained file management units  each is known as a filesystem  A file is a collection of related information  including anything from which data can be taken or to which data can be sent

Basic Commands  file fname  ls dir  ls –F  ls –a  cd ~  cd..  Variable PATH  mv f1 f2 … dir  mv oldf newf  rm f1 f2 …  rmdir d1 d2  mkdir name  cp f1 d1  cp f1 f2

Access Permission  User types: owner, group, and other  Access rights: r, w, and x  ls –l  chmod a+rw letter.txt  chmod o-wx report.ps  umask  umask 022

Record Your Session  script ……  exit  script mySession ……  exit

Command Line Syntax  gcc –o proj proj.c  ls  ls –r  ls –x  ls –rx  ls -xr  ls –r -x  ls -- help

Display Message  echo “a message”  echo –e “enter filename: \c”  echo $PATH  printf “My Shell is %s\n” $SHELL

Standard Input/Output and Redirection  cat filename  cat file1 file2 file3 > largefile  cat  cat < largefile  cat > newfile.txt  cat file1 file2 >> file3  date > whoson  who >> whoson  cat whoson

Pipes and Filters  who | sort  grep date date.c  cat date.c | grep date  grep date temp  who | sort | wc  who | sort | tee who.out | wc -l

Filename Expansion (Wildcards)  ls proj?.c  echo proj*  ls *.txt  echo [aeiou]*  echo [x-z]*  ls part[a-d][0-4]