Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh.

Similar presentations


Presentation on theme: "Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh."— Presentation transcript:

1 Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh Bash shell Common Unix/Linux utilities 1

2 Lecture 01CS311 – Operating Systems 1 2 Course Syllabus Instructor: Nitin Mohan mohanni@{onid, engr, eecs}.oregonstate.edu) Lectures: MTWRF 9:00-9:50 AM in OWEN 101 Office Hours: MWR 2:00-3:00 PM at KEC Atrium Class website: http://classes.engr.oregonstate.edu/eecs/sum mer2011/cs311 2

3 Lecture 01CS311 – Operating Systems 1 3 Operating System 3 Source: Wikipedia

4 Lecture 01CS311 – Operating Systems 1 4 Unix/Linux Organization 4

5 Lecture 01CS311 – Operating Systems 1 5 The Linux Shells A shell is an intermediate program (interface) sitting between users and the raw Linux OS. 3 common shells: – the Bourne Again shell (bash) – the Korn shell (ksh) – the C shell (tcsh) We use bash in this class 5

6 Lecture 01CS311 – Operating Systems 1 6 Utility: man [section] name Syntax: man [section] name format and display the on-line manual pages -a: display all the manual pages that match name. use q to "quit" from manual pages. 6

7 Lecture 01CS311 – Operating Systems 1 7 Side-note: How the shell "finds" the command 3 steps: Step 1: did user enter a path? Step 2: check builtins Step 3: use PATH (use env command to see what is in PATH field) 7

8 Lecture 01CS311 – Operating Systems 1 8 Files and directory Utilities pwd – print current working directory cd – change directory mkdir – make directory rmdir – remove directory cp – copy files and directories mv – move files and directories rm – remove files (also for directories) ls - list directory content – -a: do not ignore entries starting with. (hidden files in Linux start with.) – -l: use a long listing format 8

9 Lecture 01CS311 – Operating Systems 1 9 Directories named. and...: current directory..: parent directory 9

10 Lecture 01CS311 – Operating Systems 1 10 More Utilities which - shows the full path of (shell) commands. cat - takes its input from standard input or from files, then displays them to standard output. echo - display a line of text history – shows list of commands previously used head – list lines starting from the top tail – list lines from the bottom sort - sorting uniq – Removes adjacent duplicates grep – search tool 10


Download ppt "Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh."

Similar presentations


Ads by Google