cmsc 312 operating systems. unix? dos – pc? vax/vms - mainframe unix – pc, workstation,...

17
Cmsc 312 Operating Systems

Upload: eric-hamilton

Post on 29-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

Cmsc 312 Operating Systems

Page 2: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

UNIX?

DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe

1970 bell Lab For computer scientist? Why popular?

Free to academia Portable – C

Page 3: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

System V Berkeley BSD Solaris Linux Xenix ,Aix

Page 4: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

Kernel & shell

File management memory management Process scheduling Communication management Shell – interactive interface

C shell Bourne shell Graphic interface- GUI

Page 5: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

Text processing

Editor Vi Others

Formatter LaTeX or TeX

Page 6: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

Login – logout (shell)

Login: accntname Password: *******

%prompt

or machine name>

Logout : logout or exit

Page 7: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

Changing your password

Passwd Changing password for accntname Old passwod New password: Retype new password;

Page 8: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

Files

File hierarchy? /bin /etc /usr /lib /dev /home

cd change directory % cd bin % pwd ; display current directory Pathnames /home/myprogram/os312/test.c

Page 9: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

Commands

% man command %command [option] [item]

%ls %ls –a ; hidden file .cshrc .forward .history .login .logout

%echo hello %who mkdir mydirectory rmdir

Page 10: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

Commands

% rm files % cat Redirect > %cp a b %mv a b Wildcard *

Page 11: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

Mail – elm pico emac etc

Sendmail popserver smtp server etc

Page 12: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

Vi

Screen editor Mode

Insertion mode I, a Edit mode (command mode) <Esc>

Page 13: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

vi

%vi filename ;enter <esc> :x ; leave

Page 14: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

Simple commands

%dw ;delete word %x delete charater %dd 4dd

Page 15: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

File manipulation commands

%w ;save changes %wq, x ;save and quit %q!

Page 16: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

Position within commands

^F forward one screen ^B nG go to line n + next line, j - previous line, k

Page 17: Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free

shell

Leave it as it is unless you know what you do