Unix ?
ػóǹСͺͧҡʧѹҧ ѡػóҧԴѺšѺػó ҧ÷ ػó ѹҹͧѡҧ˹Ǻ?˹Ǻҹͧ ػóͧԺѵ"(Operating System) ¡ѹ (OS)кԺѵ˹ Ǻҹͧػóҧѹѧ˹ Ѻ͹ҡͧ ҹͧաѨغѹкԺѵ ҡԴкͧͧ͡ؤ ˹ҹ (DOS) Թ (WINDOWS)/ (OS/2) ٹԡ (UNIX)

ٹԡ

ٹԡкԺѵ˹ Դ (open system)Դͧ ١Դ Ѻкк˹ػóѹ ͡ҡٹԡѧ١͡ͺʹͧҹ ѡɳ ѹ ¡ ŵ (multiusers)öҹҹ ѹѡɳ¡ŵʡ (multitasking)

ҹٹԡ

ԡкٹԡͧѺ͹حҵҡкͷ¡ʹ (System Administrator) ͹ ѧҡѺͼ ͡Թ (login name) ҹ (password) ҧк Ҩ͡Թ guest,demo fieldͧҹ к ͡Թ (login) кԡлҡ login: ѡɳ ѹ¡ ͡Թ (Prompt log in)ͻҡ͡Թͧ ҡкͺҹ ١ͧŧҹŧ١ʴ͡ ҧҾҹ١ͧлҡͧ $ ͧͧк

ٻ 1 ʴкٹԡ

˵ : кԺѵٹԡҧѹҧѡ Ѻѡ˭ FILE1, File1,file1 ͹ѹ ѧҹ ͧ

ҹѴǡѺٹԡ

$ ls [-altCF] [directory ]

ʴáк кʴҡѨغѹ) ʴٻ Ẻҡ 1 1 ÷Ѵ ¡Ѻ DIR/W кԺѵôʾҧǹͧ ѧ
a    ʴ͹
l    ʴ
t    §ѺѺش
C    ʴҡ˹÷Ѵ١ tab
F    ʴҡͧ /ҹͧ *´ͧ

ʴ<wbr><wbr> ls -al
ٻ 2 ʴ ls

ҡٻ 2 ֧ʴͧ ls -al ʴ ֧͹ ´ҧ ͧҧǹ

$ pwd

áѨغѹ˹͹´ѡá ѹ͹ á(directory) ͧҡ ҧ ӹǹҡҡ֧ͧ ѴкǴͧ ááº͹ ͧ˹áҡ (root directoty) º͹ͧ˭شöͧ͹º͹˹ѧѴǴ ͧ ͧҨͧ˹ѧա˵١Ѵ Ǵµͧ˹ѧѡͧͧ˹ѧͧ ˹ͧ˹ѧͧա¡ҧͧ" (path)

<wbr><wbr><wbr> pwd
ٻ 3 ʴҹͧ pwd

ҡѾ user (muntana) directory ͧ cpc subdirectory ͧ home directory home root ѧࡵ ͡Թ pwd ʴҷͧá ҡ (͹Թʷҡáҡ) кٹԡá (home directoty) ˹кö¹
˵ ls -a ҡš 2 "." ".."
젠 "." ֧áѨغѹ
".." ֧á͹˹ 1
˹ /home/cpc/muntana
"." ֧ /home/cpc/muntana
".." ֧ /home/cpc

$ cd [ҷ]

¹á áͧ ͧҷ ҷ /data1/home/cpc/muntana á mail ҡ $ cd mail ͧ mail ҡ˹ Ѩغѹ Щ͹ ҷ /data1/home/cpc/muntana/mail Ը ҧԧѹѺ˹ѨغѹաԸ˹ҧԧç

<wbr><wbr><wbr> cd
ٻ 4 ʴ cd

ҧԧªҧ֧áԴѹдǡóͧ͡ҡá ˹觠 $ cd .. óͧáѺѧáҡç $ cd /
˵ؠ $ cd ҷáѺѧáǢҧ

$ mkdir [á]

ҧá ҧԧҷǡѺ cd $ mkdir test ls á test

$ rmdir [á]

źááźͧá

$ rm []

źҧ֧

$ cat []

ʴ硫 (Text Files : ѡ) ʴҾ

$ mv [ҧ] [ҧ]

(move) ҡҷҧԧ֧ѧҷҧ dead.letter á ͧѹá mail áͧͧ
$ mv /data1/home/cpc/muntana/temp /data1/home/cpc/muntana/mail
͠ $ mv temp /home/cpc/muntana/mail
͠ $ mv temp mail
͠ $ mv temp ./mail
͠ Ҩҧٻҧԧҷ

<wbr><wbr><wbr> mv
ٻ 5 ʴ mv

$ more

ʴ˹شͧҧ (space bar)֧ʴ˹ Ѵ Enter ʴ÷ѴѴ÷Ѵ more ա 2
q ͡ҡҹ
h ʴ (help)

$ cp [Ѻ] []

Ѵ͡ (copy) ҡ˹ ѧҧͧҧԧҷѡɳǡѺ mv ҧԧ͡ҡ çѧҧԧ֧ѭѡɳա 2 "*" "?"
? ҧԧѡ ѭѡɳ Ţ 1 ѡ ҧԧ֧ unix ? ֧ ء unix ա 1 Ҩ unixa unixx unix_ unix1
* ҧԧѡ ѭѡɳ Ţ ѡ ҧԧ֧ unix* ֧ ء unix Ҩ unix_tue unix1234
öҧԧҧѺ ls mv cp rm
ls -al .p* ֧ ء .p (͹ p )
cp .pine_debug? . /mail ֧ Ѵ͡ء .pine_debug ѡ 1 ѧá mail

ǨͺԴ͡Ѻѧк

$ who am i

ʴкͧͧ

$ who

ʴкѧҹ

<wbr><wbr><wbr> who
ٻ 6 ʴҹͧǨͺѧк

$ finger [@ʵͧҺ]

ʴͧԴѺʵҧ ͧ ͧҺʵͧԷɵʵ std ҧ $ finger @std.cpc.ku.ac.th ʴѧٻ 7

<wbr><wbr><wbr> finger
ٻ 7 ʴ finger

ҡٻ 7 ҡ finger ʴ ѧ
á ʴ͡Թ (Login Name)
ͧ ʴͧؤ
ʴ֧쵷ͧԴ ѧࡵҧͧ * ҧ˹ʴ ؤѺԴҡؤ
ʴ֧ؤͺѺͧ (idle)
ʴ֧ؤ͡Թ (login) ͧ
ش ʴ֧ͧк Ҩ͡Թҡ Modem ҡͧ
ó finger ʵ ֧ ʵ͡Թ ( who)

$ talk [ͤҷ@ʵؤҹ]

ʹҡѺؤͧؤͧͧ "*" ˹ 3 ٻͧ ˹͡ 2 ǹ ҧ ǹ ǹҧؤԴ ͡ҡ talk Ctrl+C

$ write [ͤҷ)

ѧؤŷͧؤͧҹʵѹ ͧ "*" ˹ 3 ֧ö write ÷Ѵҡ ͧ١ ѧ Enter ͡ҡ write ǡѺ͡ҡ talk Ctrl+C

$ mesg [n,y]

˹ѺԴҡؤ
$ mesg n ˹ͧѺԴҡؤ ؤö talk write ͧö talk write ѹ (Ѻ mail ѧ)
$ mesg y ˹ͧѺԴҡŤ