170 likes | 321 Vues
Explore the foundational concepts of operating systems with a focus on UNIX and DOS. This comprehensive guide covers the history and evolution of these systems from the 1970s, highlighting their popularity in academia due to open-source availability. Key topics include file management, memory management, process scheduling, and the shell interface, with practical commands for navigating and manipulating files. Learn about diverse versions like Berkeley BSD, Solaris, and Linux, and how they shape modern computing environments. Ideal for computer scientists and enthusiasts alike.
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