170 likes | 311 Views
Cmsc 312 Operating Systems. UNIX?. DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free to academia Portable – C. System V Berkeley BSD Solaris Linux Xenix ,Aix. Kernel & shell. File management
E N D
UNIX? • DOS – PC? • VAX/VMS - mainframe • Unix – PC, workstation, mainframe • 1970 bell Lab • For computer scientist? • Why popular? • Free to academia • Portable – C
System V • Berkeley BSD • Solaris • Linux • Xenix ,Aix
Kernel & shell • File management • memory management • Process scheduling • Communication management • Shell – interactive interface • C shell Bourne shell • Graphic interface- GUI
Text processing • Editor • Vi • Others • Formatter • LaTeX or TeX
Login – logout (shell) • Login: accntname • Password: ******* • %prompt or machine name> Logout : logout or exit
Changing your password • Passwd • Changing password for accntname • Old passwod • New password: • Retype new password;
Files • File hierarchy? • /bin /etc /usr /lib /dev /home • cd change directory • % cd bin • % pwd ; display current directory • Pathnames • /home/myprogram/os312/test.c
Commands • % man command • %command [option] [item] • %ls %ls –a ; hidden file • .cshrc .forward .history .login .logout • %echo hello • %who • mkdir mydirectory • rmdir
Commands • % rm files • % cat • Redirect > • %cp a b • %mv a b • Wildcard *
Mail – elm pico emac etc • Sendmail popserver smtp server etc
Vi • Screen editor • Mode • Insertion mode I, a • Edit mode (command mode) <Esc>
vi • %vi filename ;enter • <esc> :x ; leave
Simple commands • %dw ;delete word • %x delete charater • %dd • 4dd
File manipulation commands • %w ;save changes • %wq, x ;save and quit • %q!
Position within commands • ^F forward one screen • ^B • nG go to line n • + next line, j • - previous line, k
shell • Leave it as it is unless you know what you do