Systemy Operacyjne - laboratoria.
1. WPROWADZENIE DO INTERPRETATORÓW POLECEŃ (command shell) W SYSTEMACH TYPU UNIX.
Rys 1.
shell (inetrpretator poleceń) jest programem, kóry jest wywoływany gdy logujemy się do systemu, interpretując polecenia wydawane na bieżąco (klawiatura), lub zawarte w pliku, w tzw. skrypcie >>> programie zawierającym zbiór poleceń.
Rys 2.
* cat displays the contents of a file on the terminal.
* compress shrinks files in size.
* cp. makes a copy of a file_
* date displays the time, day of the week, and date.
* diff displays a list of the differences between two files.
* echo displays a line of text on the terminal.
* file displays information about the contents of a file.
* finger displays detailed information about users_
* grep searches for a specific string in a file.
* head displays the beginning of a file.
* learn provides lessons on how to use the system.
!pr prints text files.
* is displays a list of files.
* Mail sends and receives mail.
* man displays information on utilities.
* mesg permits or denies messages sent by write or talk.
* more displays the ccntents of a text nle one screenful at a time.
* mv changes the name of a file.
* passwd changes your password.
* rm deletes a file.
* sed can display the beginning of a file.
* sort puts a file in order by lines.
* tail displays the end of a file.
* talk supports an online conversation with another user who is logged in.
* uncompress restores a compressed file to its original size.
* uniq displays the contents of a file, skipping successive duplicate lines.
* vi creates or edits a text file.
* w displays a list of who is logged in.
* whereis displays the pathname of a utility program on the system.
* which displays the fUll pathname of a command you can run.
* write sends a message to another user who is logged in.
* zcat displays tl-ie contents of a compressed file.
- Bourne shell (AT&T), 1979
[ $ ]
- oparty na ALGOL-u
- szybki i kompaktowy
- standardowy shell używany do administrowania UNIX-a
- C shell (Barkley, koniec lat 70-tych)
[ % ]
- oparty na jezyku C
- dodano nowe własności: historuia poleceń, aliasy, wbudowana arytmetyka, itp.
- faworyzowany przez użytkowników lecz powolny
- Korn shell (1988)
- jego podzbiorem jest Bourne shell, który został znacznie rozbudowany
- prawie całkowicie kompatybilne oba
__________ ____________
| % sh | Bourne shell | $ |
| | --------->>> | |
|__________| |___________ |
__________ ____________
| % ksh | Korn shell | $ |
| | --------->>> | |
|__________| |____________|
___________ ____________
| % csh | C shell | $ |
| | --------->>> | |
|___________| |____________ |
/ wielu użytkowników jednocześnie
systemy wsadowe =/= <------------- interaktywne działanie
\ wspólne używanie danych, programów
- pierwsze wersje UNIX-a: AT&T Bell Labs, 1969 - 1975, Denis Ritchii, Ken Thompson
- po pojawieniu się w 1973 kompilatora C 95% kodu przepisano w tym języku (portabilność <-> niezależność od typu komputera)
- AT&T przekazuje źródła UNIX-a uniwersytetom
- Uniwersytet Kalifornijski w Berkley opracowuje własny wariant BSD (Berkley Software Distribution)
- w 1983 AT&T ogłosiło sprzedaż ulepszonego SYSTEMU V
- SUN Microsystems, Microsoft i DEC opracowują własne wersje UNIX-a: SunOS, Xenix, Ultrix
- IEEE opracował standard uniksopodobnych systemów operacyjnych POSIX
- ambitny fiński student Linus Rorvalds opracował na początku lat 80-tych pierwszą wersję zgodnego ze standardem UNIX-a systemu LINUX dla PC-tów, dostępnego bezpłatni
<<< THE END >>>