home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 13 / CDA13.ISO / DOC / HOWTO / MINI / DOS2LINU < prev    next >
Mailbox/MIME Entity  |  1996-05-18  |  31.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file Mailbox text, 1st line "From DOS to Linux - Quick! ", ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% detectItEasy Format: Plain text[LF] default
100% xdgMime application/mbox default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 44 4f 53 | 20 74 6f 20 4c 69 6e 75 |From DOS| to Linu|
|00000010| 78 20 2d 20 51 75 69 63 | 6b 21 20 0a 0a 42 79 20 |x - Quic|k! ..By |
|00000020| 47 75 69 64 6f 20 47 6f | 6e 7a 61 74 6f 20 20 3c |Guido Go|nzato <|
|00000030| 47 75 69 64 6f 40 69 62 | 6f 67 66 73 2e 63 69 6e |Guido@ib|ogfs.cin|
|00000040| 65 63 61 2e 69 74 3e 0a | 41 70 72 69 6c 20 32 36 |eca.it>.|April 26|
|00000050| 2c 20 31 39 39 36 0a 56 | 65 72 73 69 6f 6e 20 31 |, 1996.V|ersion 1|
|00000060| 2e 31 0a 0a 0a 50 72 65 | 66 61 63 65 0a 0a 54 68 |.1...Pre|face..Th|
|00000070| 69 73 20 6d 69 6e 69 2d | 48 4f 57 54 4f 20 69 73 |is mini-|HOWTO is|
|00000080| 20 64 65 64 69 63 61 74 | 65 64 20 74 6f 20 61 6c | dedicat|ed to al|
|00000090| 6c 20 74 68 65 20 28 73 | 6f 6f 6e 20 74 6f 20 62 |l the (s|oon to b|
|000000a0| 65 20 66 6f 72 6d 65 72 | 3f 29 20 44 4f 53 20 75 |e former|?) DOS u|
|000000b0| 73 65 72 73 20 77 68 6f | 20 0a 68 61 76 65 20 6a |sers who| .have j|
|000000c0| 75 73 74 20 74 61 6b 65 | 6e 20 74 68 65 20 70 6c |ust take|n the pl|
|000000d0| 75 6e 67 65 20 61 6e 64 | 20 64 65 63 69 64 65 64 |unge and| decided|
|000000e0| 20 74 6f 20 73 77 69 74 | 63 68 20 74 6f 20 4c 69 | to swit|ch to Li|
|000000f0| 6e 75 78 2c 20 74 68 65 | 20 55 6e 2a 78 20 63 6c |nux, the| Un*x cl|
|00000100| 6f 6e 65 20 0a 66 6f 72 | 20 33 38 36 2b 20 63 6f |one .for| 386+ co|
|00000110| 6d 70 75 74 65 72 73 2e | 0a 0a 57 68 65 6e 20 49 |mputers.|..When I|
|00000120| 20 66 69 72 73 74 20 69 | 6e 73 74 61 6c 6c 65 64 | first i|nstalled|
|00000130| 20 4c 69 6e 75 78 20 6f | 6e 20 6d 79 20 50 43 20 | Linux o|n my PC |
|00000140| 49 20 77 61 6e 74 65 64 | 20 74 6f 20 62 65 20 75 |I wanted| to be u|
|00000150| 70 20 61 6e 64 20 72 75 | 6e 6e 69 6e 67 20 0a 73 |p and ru|nning .s|
|00000160| 74 72 61 69 67 68 74 20 | 61 77 61 79 20 2d 20 49 |traight |away - I|
|00000170| 20 73 75 70 70 6f 73 65 | 20 69 74 27 73 20 77 68 | suppose| it's wh|
|00000180| 61 74 20 6a 75 73 74 20 | 65 76 65 72 79 6f 6e 65 |at just |everyone|
|00000190| 20 77 61 6e 74 73 2e 20 | 59 6f 75 20 6d 61 79 20 | wants. |You may |
|000001a0| 6b 6e 6f 77 20 74 68 61 | 74 20 0a 44 4f 53 20 63 |know tha|t .DOS c|
|000001b0| 61 6e 20 62 65 20 76 69 | 65 77 65 64 20 61 73 20 |an be vi|ewed as |
|000001c0| 61 20 6c 61 6d 65 20 61 | 6e 64 20 6b 69 6e 6b 79 |a lame a|nd kinky|
|000001d0| 20 73 75 62 73 65 74 20 | 6f 66 20 55 6e 2a 78 2e | subset |of Un*x.|
|000001e0| 20 57 65 6c 6c 3a 20 62 | 65 69 6e 67 20 61 20 0a | Well: b|eing a .|
|000001f0| 73 65 61 73 6f 6e 65 64 | 20 44 4f 53 20 75 73 65 |seasoned| DOS use|
|00000200| 72 2c 20 49 20 72 65 61 | 6c 69 73 65 64 20 74 68 |r, I rea|lised th|
|00000210| 61 74 20 49 20 61 6c 72 | 65 61 64 79 20 6b 6e 65 |at I alr|eady kne|
|00000220| 77 20 61 20 66 65 77 20 | 74 68 69 6e 67 73 20 74 |w a few |things t|
|00000230| 68 61 74 20 77 65 72 65 | 20 0a 73 69 6d 69 6c 61 |hat were| .simila|
|00000240| 72 20 61 6d 6f 6e 67 20 | 74 68 65 20 74 77 6f 20 |r among |the two |
|00000250| 6f 73 27 73 3a 20 74 68 | 65 20 63 6f 6e 63 65 70 |os's: th|e concep|
|00000260| 74 73 20 6f 66 20 66 69 | 6c 65 73 79 73 74 65 6d |ts of fi|lesystem|
|00000270| 2c 20 64 69 72 65 63 74 | 6f 72 69 65 73 2c 20 0a |, direct|ories, .|
|00000280| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 76 61 72 69 |environm|ent vari|
|00000290| 61 62 6c 65 73 2c 20 72 | 75 6e 6e 69 6e 67 20 70 |ables, r|unning p|
|000002a0| 72 6f 67 72 61 6d 73 20 | 61 6e 64 20 2e 42 41 54 |rograms |and .BAT|
|000002b0| 20 66 69 6c 65 73 2c 20 | 61 6e 64 20 61 20 66 65 | files, |and a fe|
|000002c0| 77 20 6f 74 68 65 72 20 | 0a 74 68 69 6e 67 73 2e |w other |.things.|
|000002d0| 20 54 68 65 20 70 75 72 | 70 6f 73 65 20 6f 66 20 | The pur|pose of |
|000002e0| 74 68 69 73 20 64 6f 63 | 75 6d 65 6e 74 20 69 73 |this doc|ument is|
|000002f0| 20 74 6f 20 68 65 6c 70 | 20 74 68 65 20 72 65 61 | to help| the rea|
|00000300| 64 65 72 20 74 72 61 6e | 73 6c 61 74 65 20 68 69 |der tran|slate hi|
|00000310| 73 20 6f 72 20 0a 68 65 | 72 20 6b 6e 6f 77 6c 65 |s or .he|r knowle|
|00000320| 64 67 65 20 6f 66 20 44 | 4f 53 20 69 6e 74 6f 20 |dge of D|OS into |
|00000330| 74 68 65 20 4c 69 6e 75 | 78 20 65 6e 76 69 72 6f |the Linu|x enviro|
|00000340| 6e 6d 65 6e 74 2c 20 73 | 6f 20 61 73 20 74 6f 20 |nment, s|o as to |
|00000350| 62 65 20 70 72 6f 64 75 | 63 74 69 76 65 20 0a 61 |be produ|ctive .a|
|00000360| 73 61 70 2e 20 4a 75 73 | 74 20 61 20 66 65 77 20 |sap. Jus|t a few |
|00000370| 70 61 67 65 73 20 74 6f | 20 72 65 61 64 20 69 6e |pages to| read in|
|00000380| 20 62 65 64 20 77 68 65 | 6e 20 79 6f 75 72 20 70 | bed whe|n your p|
|00000390| 61 72 74 6e 65 72 20 69 | 73 20 6e 6f 74 20 74 68 |artner i|s not th|
|000003a0| 65 72 65 2c 20 6f 72 2c | 20 0a 62 65 74 74 65 72 |ere, or,| .better|
|000003b0| 2c 20 74 6f 20 6b 65 65 | 70 20 6f 6e 20 68 61 6e |, to kee|p on han|
|000003c0| 64 20 6e 65 78 74 20 74 | 6f 20 79 6f 75 72 20 50 |d next t|o your P|
|000003d0| 43 2e 20 0a 0a 49 27 64 | 20 6c 69 6b 65 20 74 6f |C. ..I'd| like to|
|000003e0| 20 73 74 72 65 73 73 20 | 74 68 61 74 20 74 68 69 | stress |that thi|
|000003f0| 73 20 69 73 20 2a 6e 6f | 74 2a 20 61 6e 20 69 6e |s is *no|t* an in|
|00000400| 74 72 6f 64 75 63 74 6f | 72 79 20 63 6f 75 72 73 |troducto|ry cours|
|00000410| 65 20 6f 6e 20 4c 69 6e | 75 78 2e 20 49 20 0a 73 |e on Lin|ux. I .s|
|00000420| 74 72 6f 6e 67 6c 79 20 | 72 65 63 6f 6d 6d 65 6e |trongly |recommen|
|00000430| 64 20 74 68 61 74 20 74 | 68 65 20 62 65 67 69 6e |d that t|he begin|
|00000440| 6e 65 72 20 67 65 74 20 | 61 20 63 6f 70 79 20 6f |ner get |a copy o|
|00000450| 66 20 4d 61 74 74 20 57 | 65 6c 73 68 27 73 20 22 |f Matt W|elsh's "|
|00000460| 4c 69 6e 75 78 20 0a 49 | 6e 73 74 61 6c 6c 61 74 |Linux .I|nstallat|
|00000470| 69 6f 6e 20 61 6e 64 20 | 47 65 74 74 69 6e 67 20 |ion and |Getting |
|00000480| 53 74 61 72 74 65 64 22 | 2c 20 61 76 61 69 6c 61 |Started"|, availa|
|00000490| 62 6c 65 20 6f 6e 20 73 | 75 6e 73 69 74 65 2e 75 |ble on s|unsite.u|
|000004a0| 6e 63 2e 65 64 75 20 61 | 6e 64 20 69 74 73 20 0a |nc.edu a|nd its .|
|000004b0| 6d 69 72 72 6f 72 73 20 | 69 6e 20 64 69 72 65 63 |mirrors |in direc|
|000004c0| 74 6f 72 79 20 2f 70 75 | 62 2f 4c 69 6e 75 78 2f |tory /pu|b/Linux/|
|000004d0| 64 6f 63 73 2f 4c 44 50 | 3b 20 69 74 27 73 20 72 |docs/LDP|; it's r|
|000004e0| 65 61 6c 6c 79 20 77 65 | 6c 6c 20 77 72 69 74 74 |eally we|ll writt|
|000004f0| 65 6e 20 61 6e 64 20 65 | 61 73 79 20 0a 74 6f 20 |en and e|asy .to |
|00000500| 75 6e 64 65 72 73 74 61 | 6e 64 2e 20 53 63 6f 72 |understa|nd. Scor|
|00000510| 65 73 20 6f 66 20 48 4f | 57 54 4f 20 61 6e 64 20 |es of HO|WTO and |
|00000520| 46 41 51 20 64 6f 63 75 | 6d 65 6e 74 73 20 61 72 |FAQ docu|ments ar|
|00000530| 65 20 61 6c 73 6f 20 61 | 76 61 69 6c 61 62 6c 65 |e also a|vailable|
|00000540| 2e 20 54 68 69 73 20 0a | 77 6f 72 6b 20 69 73 20 |. This .|work is |
|00000550| 74 68 65 72 65 20 6e 6f | 74 20 61 73 20 61 6e 20 |there no|t as an |
|00000560| 61 6c 74 65 72 6e 61 74 | 69 76 65 20 74 6f 20 74 |alternat|ive to t|
|00000570| 68 6f 73 65 20 64 6f 63 | 73 2c 20 62 75 74 20 73 |hose doc|s, but s|
|00000580| 69 6d 70 6c 79 20 62 65 | 63 61 75 73 65 20 74 68 |imply be|cause th|
|00000590| 65 72 65 20 0a 6d 75 73 | 74 20 62 65 20 6d 61 6e |ere .mus|t be man|
|000005a0| 79 20 66 72 65 61 6b 73 | 20 6f 75 74 20 74 68 65 |y freaks| out the|
|000005b0| 72 65 20 77 68 6f 2c 20 | 6c 69 6b 65 20 6d 65 2c |re who, |like me,|
|000005c0| 20 6c 6f 6e 67 20 74 6f | 20 75 73 65 20 4c 69 6e | long to| use Lin|
|000005d0| 75 78 20 61 66 74 65 72 | 20 72 65 61 64 69 6e 67 |ux after| reading|
|000005e0| 20 0a 32 30 20 70 61 67 | 65 73 20 69 6e 73 74 65 | .20 pag|es inste|
|000005f0| 61 64 20 6f 66 20 32 30 | 30 2b 2e 0a 0a 0a 53 65 |ad of 20|0+....Se|
|00000600| 63 74 69 6f 6e 20 30 3a | 20 49 6e 74 72 6f 64 75 |ction 0:| Introdu|
|00000610| 63 74 69 6f 6e 0a 0a 30 | 2e 31 3a 20 49 73 20 4c |ction..0|.1: Is L|
|00000620| 69 6e 75 78 20 52 69 67 | 68 74 20 66 6f 72 20 59 |inux Rig|ht for Y|
|00000630| 6f 75 3f 0a 0a 54 68 65 | 72 65 20 69 73 20 6e 6f |ou?..The|re is no|
|00000640| 20 73 75 63 68 20 74 68 | 69 6e 67 20 61 73 20 22 | such th|ing as "|
|00000650| 74 68 65 20 62 65 73 74 | 20 63 6f 6d 70 75 74 65 |the best| compute|
|00000660| 72 22 20 6f 72 20 22 74 | 68 65 20 62 65 73 74 20 |r" or "t|he best |
|00000670| 6f 70 65 72 61 74 69 6e | 67 20 0a 73 79 73 74 65 |operatin|g .syste|
|00000680| 6d 22 3a 20 69 74 20 61 | 6c 6c 20 64 65 70 65 6e |m": it a|ll depen|
|00000690| 64 73 20 6f 6e 20 77 68 | 61 74 20 79 6f 75 20 68 |ds on wh|at you h|
|000006a0| 61 76 65 20 74 6f 20 64 | 6f 2e 20 46 6f 72 20 69 |ave to d|o. For i|
|000006b0| 6e 73 74 61 6e 63 65 2c | 20 49 20 64 6f 6e 27 74 |nstance,| I don't|
|000006c0| 20 6c 69 6b 65 20 0a 74 | 68 65 20 4d 61 63 20 28 | like .t|he Mac (|
|000006d0| 73 61 63 72 69 6c 65 67 | 65 21 20 3b 2d 29 3a 20 |sacrileg|e! ;-): |
|000006e0| 69 74 27 73 20 73 75 72 | 65 6c 79 20 65 61 73 79 |it's sur|ely easy|
|000006f0| 20 74 6f 20 75 73 65 2c | 20 62 75 74 20 74 6f 20 | to use,| but to |
|00000700| 64 6f 20 73 6f 6d 65 20 | 74 68 69 6e 67 73 20 49 |do some |things I|
|00000710| 20 0a 70 72 65 66 65 72 | 20 74 68 65 20 50 43 20 | .prefer| the PC |
|00000720| 62 79 20 66 61 72 2e 20 | 28 54 72 79 20 74 68 65 |by far. |(Try the|
|00000730| 20 65 71 75 69 76 61 6c | 65 6e 74 20 6f 66 20 64 | equival|ent of d|
|00000740| 69 72 2f 73 2f 77 20 3e | 6c 73 74 20 6f 6e 20 61 |ir/s/w >|lst on a|
|00000750| 20 4d 61 63 21 29 20 59 | 65 74 2c 20 0a 74 6f 20 | Mac!) Y|et, .to |
|00000760| 6d 61 6e 79 20 66 6f 6c | 6b 73 20 74 68 65 20 4d |many fol|ks the M|
|00000770| 61 63 20 69 73 20 73 69 | 6d 70 6c 79 20 22 74 68 |ac is si|mply "th|
|00000780| 65 20 62 65 73 74 22 20 | 63 6f 6d 70 75 74 65 72 |e best" |computer|
|00000790| 2e 20 4c 69 6b 65 77 69 | 73 65 2c 20 49 20 64 6f |. Likewi|se, I do|
|000007a0| 6e 27 74 20 0a 62 65 6c | 69 65 76 65 20 74 68 61 |n't .bel|ieve tha|
|000007b0| 74 20 4c 69 6e 75 78 20 | 69 73 20 22 74 68 65 20 |t Linux |is "the |
|000007c0| 62 65 73 74 22 20 6f 73 | 3a 20 69 74 20 69 73 20 |best" os|: it is |
|000007d0| 75 6e 64 6f 75 62 74 65 | 64 6c 79 20 73 75 70 65 |undoubte|dly supe|
|000007e0| 72 69 6f 72 20 74 6f 2c | 20 73 61 79 2c 20 0a 57 |rior to,| say, .W|
|000007f0| 69 6e 20 39 35 2c 20 62 | 75 74 20 6d 61 6e 79 20 |in 95, b|ut many |
|00000800| 6d 69 67 68 74 20 70 72 | 65 66 65 72 20 74 68 65 |might pr|efer the|
|00000810| 20 6c 61 74 74 65 72 2e | 0a 0a 55 6e 2a 78 20 69 | latter.|..Un*x i|
|00000820| 73 20 61 69 6d 65 64 20 | 61 74 20 70 72 6f 67 72 |s aimed |at progr|
|00000830| 61 6d 6d 65 72 73 2f 73 | 63 69 65 6e 74 69 73 74 |ammers/s|cientist|
|00000840| 73 2c 20 77 68 69 6c 65 | 20 4d 61 63 20 26 20 57 |s, while| Mac & W|
|00000850| 69 6e 20 61 72 65 20 61 | 69 6d 65 64 20 61 74 20 |in are a|imed at |
|00000860| 0a 6e 6f 6e 74 65 63 68 | 6e 69 63 61 6c 20 75 73 |.nontech|nical us|
|00000870| 65 72 73 2e 20 54 68 65 | 72 65 66 6f 72 65 2c 20 |ers. The|refore, |
|00000880| 79 6f 75 20 61 72 65 20 | 67 6f 69 6e 67 20 74 6f |you are |going to|
|00000890| 20 62 65 6e 65 66 69 74 | 20 69 6d 6d 65 6e 73 65 | benefit| immense|
|000008a0| 6c 79 20 66 72 6f 6d 20 | 0a 4c 69 6e 75 78 20 69 |ly from |.Linux i|
|000008b0| 66 20 77 68 61 74 20 79 | 6f 75 20 6e 65 65 64 20 |f what y|ou need |
|000008c0| 61 72 65 20 63 6f 6d 70 | 69 6c 65 72 73 2c 20 6e |are comp|ilers, n|
|000008d0| 65 74 77 6f 72 6b 2c 20 | 61 6e 64 20 73 63 69 65 |etwork, |and scie|
|000008e0| 6e 74 69 66 69 63 20 73 | 77 20 69 6e 20 0a 67 65 |ntific s|w in .ge|
|000008f0| 6e 65 72 61 6c 2c 20 61 | 6e 64 20 69 66 20 79 6f |neral, a|nd if yo|
|00000900| 75 20 64 6f 6e 27 74 20 | 6d 69 6e 64 20 66 69 64 |u don't |mind fid|
|00000910| 64 6c 69 6e 67 20 61 72 | 6f 75 6e 64 20 61 6e 64 |dling ar|ound and|
|00000920| 20 66 69 78 69 6e 67 20 | 74 68 69 6e 67 73 20 79 | fixing |things y|
|00000930| 6f 75 72 73 65 6c 66 3a | 20 0a 69 6e 20 61 20 77 |ourself:| .in a w|
|00000940| 6f 72 64 2c 20 69 66 20 | 79 6f 75 20 6c 69 6b 65 |ord, if |you like|
|00000950| 20 68 61 63 6b 69 6e 67 | 2e 20 59 6f 75 27 6c 6c | hacking|. You'll|
|00000960| 20 68 61 74 65 20 4c 69 | 6e 75 78 20 69 66 20 79 | hate Li|nux if y|
|00000970| 6f 75 20 77 61 6e 74 20 | 65 76 65 72 79 74 68 69 |ou want |everythi|
|00000980| 6e 67 20 74 6f 20 0a 77 | 6f 72 6b 20 6f 75 74 20 |ng to .w|ork out |
|00000990| 6f 66 20 74 68 65 20 62 | 6f 78 2c 20 69 66 20 79 |of the b|ox, if y|
|000009a0| 6f 75 20 6e 65 65 64 20 | 6d 6f 73 74 6c 79 20 63 |ou need |mostly c|
|000009b0| 6f 6d 6d 65 72 63 69 61 | 6c 20 73 77 2c 20 61 6e |ommercia|l sw, an|
|000009c0| 64 20 69 66 20 79 6f 75 | 20 66 65 65 6c 20 6c 6f |d if you| feel lo|
|000009d0| 73 74 20 0a 74 79 70 69 | 6e 67 20 69 6e 20 63 6f |st .typi|ng in co|
|000009e0| 6d 6d 61 6e 64 73 2e 0a | 0a 49 74 27 73 20 75 70 |mmands..|.It's up|
|000009f0| 20 74 6f 20 79 6f 75 2e | 20 52 65 6d 65 6d 62 65 | to you.| Remembe|
|00000a00| 72 20 74 68 61 74 20 4c | 69 6e 75 78 20 61 6e 64 |r that L|inux and|
|00000a10| 20 44 4f 53 2f 57 69 6e | 64 6f 77 73 20 63 61 6e | DOS/Win|dows can|
|00000a20| 20 63 6f 65 78 69 73 74 | 20 6f 6e 20 74 68 65 20 | coexist| on the |
|00000a30| 73 61 6d 65 20 0a 6d 61 | 63 68 69 6e 65 2c 20 61 |same .ma|chine, a|
|00000a40| 6e 79 77 61 79 2e 0a 0a | 30 2e 32 3a 20 49 74 20 |nyway...|0.2: It |
|00000a50| 69 73 2e 20 54 65 6c 6c | 20 4d 65 20 4d 6f 72 65 |is. Tell| Me More|
|00000a60| 0a 0a 59 6f 75 20 69 6e | 73 74 61 6c 6c 65 64 20 |..You in|stalled |
|00000a70| 4c 69 6e 75 78 20 6f 6e | 20 74 68 65 20 50 43 2e |Linux on| the PC.|
|00000a80| 20 59 6f 75 20 67 61 76 | 65 20 79 6f 75 72 73 65 | You gav|e yourse|
|00000a90| 6c 66 20 61 6e 20 61 63 | 63 6f 75 6e 74 20 66 6f |lf an ac|count fo|
|00000aa0| 6c 6c 6f 77 69 6e 67 20 | 74 68 65 20 0a 69 6e 73 |llowing |the .ins|
|00000ab0| 74 61 6c 6c 61 74 69 6f | 6e 20 69 6e 73 74 72 75 |tallatio|n instru|
|00000ac0| 63 74 69 6f 6e 73 20 28 | 69 66 20 74 68 69 73 20 |ctions (|if this |
|00000ad0| 69 73 20 6e 6f 74 20 74 | 68 65 20 63 61 73 65 2c |is not t|he case,|
|00000ae0| 20 73 65 65 20 53 65 63 | 74 69 6f 6e 20 36 2e 31 | see Sec|tion 6.1|
|00000af0| 29 20 61 6e 64 20 0a 4c | 69 6e 75 78 20 69 73 20 |) and .L|inux is |
|00000b00| 72 75 6e 6e 69 6e 67 2e | 20 53 6f 6d 65 62 6f 64 |running.| Somebod|
|00000b10| 79 20 74 6f 6c 64 20 79 | 6f 75 20 74 68 61 74 20 |y told y|ou that |
|00000b20| 61 6c 6c 20 74 68 65 20 | 70 72 6f 67 72 61 6d 73 |all the |programs|
|00000b30| 20 79 6f 75 20 6e 65 65 | 64 65 64 20 77 65 72 65 | you nee|ded were|
|00000b40| 20 0a 74 68 65 72 65 2c | 20 61 6e 64 20 61 6c 6c | .there,| and all|
|00000b50| 20 79 6f 75 20 68 61 76 | 65 20 74 6f 20 64 6f 20 | you hav|e to do |
|00000b60| 69 73 20 6c 6f 67 69 6e | 20 61 6e 64 20 67 6f 2e |is login| and go.|
|00000b70| 20 59 6f 75 27 76 65 20 | 6a 75 73 74 20 65 6e 74 | You've |just ent|
|00000b80| 65 72 65 64 20 79 6f 75 | 72 20 0a 6e 61 6d 65 20 |ered you|r .name |
|00000b90| 61 6e 64 20 70 61 73 73 | 77 6f 72 64 2c 20 61 6e |and pass|word, an|
|00000ba0| 64 20 6e 6f 77 20 79 6f | 75 20 61 72 65 20 6c 6f |d now yo|u are lo|
|00000bb0| 6f 6b 69 6e 67 20 61 74 | 20 74 68 65 20 73 63 72 |oking at| the scr|
|00000bc0| 65 65 6e 20 74 68 69 6e | 6b 69 6e 67 3a 20 22 57 |een thin|king: "W|
|00000bd0| 65 6c 6c 2c 20 0a 6e 6f | 77 20 77 68 61 74 3f 22 |ell, .no|w what?"|
|00000be0| 0a 0a 4e 6f 77 2c 20 64 | 6f 6e 27 74 20 64 65 73 |..Now, d|on't des|
|00000bf0| 70 61 69 72 2e 20 59 6f | 75 27 72 65 20 61 6c 6d |pair. Yo|u're alm|
|00000c00| 6f 73 74 20 72 65 61 64 | 79 20 74 6f 20 64 6f 20 |ost read|y to do |
|00000c10| 74 68 65 20 73 61 6d 65 | 20 74 68 69 6e 67 73 20 |the same| things |
|00000c20| 79 6f 75 20 75 73 65 64 | 20 74 6f 20 0a 64 6f 20 |you used| to .do |
|00000c30| 77 69 74 68 20 44 4f 53 | 2c 20 61 6e 64 20 6d 61 |with DOS|, and ma|
|00000c40| 6e 79 20 6d 6f 72 65 2e | 20 49 66 20 79 6f 75 20 |ny more.| If you |
|00000c50| 77 65 72 65 20 72 75 6e | 6e 69 6e 67 20 44 4f 53 |were run|ning DOS|
|00000c60| 20 69 6e 73 74 65 61 64 | 20 6f 66 20 4c 69 6e 75 | instead| of Linu|
|00000c70| 78 2c 20 79 6f 75 20 0a | 77 6f 75 6c 64 20 62 65 |x, you .|would be|
|00000c80| 20 64 6f 69 6e 67 20 73 | 6f 6d 65 20 6f 66 20 74 | doing s|ome of t|
|00000c90| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 74 61 73 |he follo|wing tas|
|00000ca0| 6b 73 3a 0a 0a 31 2e 20 | 65 78 65 63 75 74 69 6e |ks:..1. |executin|
|00000cb0| 67 20 70 72 6f 67 72 61 | 6d 73 20 61 6e 64 20 63 |g progra|ms and c|
|00000cc0| 72 65 61 74 69 6e 67 2c | 20 63 6f 70 79 69 6e 67 |reating,| copying|
|00000cd0| 2c 20 76 69 65 77 69 6e | 67 2c 20 64 65 6c 65 74 |, viewin|g, delet|
|00000ce0| 69 6e 67 2c 20 72 65 6e | 61 6d 69 6e 67 20 0a 66 |ing, ren|aming .f|
|00000cf0| 69 6c 65 73 3b 0a 32 2e | 20 43 44 27 69 6e 67 2c |iles;.2.| CD'ing,|
|00000d00| 20 4d 44 27 69 6e 67 2c | 20 52 44 27 69 6e 67 2c | MD'ing,| RD'ing,|
|00000d10| 20 61 6e 64 20 44 49 52 | 27 72 69 6e 67 20 79 6f | and DIR|'ring yo|
|00000d20| 75 72 20 64 69 72 65 63 | 74 6f 72 69 65 73 3b 0a |ur direc|tories;.|
|00000d30| 33 2e 20 66 6f 72 6d 61 | 74 74 69 6e 67 20 66 6c |3. forma|tting fl|
|00000d40| 6f 70 70 69 65 73 20 61 | 6e 64 20 63 6f 70 79 69 |oppies a|nd copyi|
|00000d50| 6e 67 20 66 69 6c 65 73 | 20 66 72 6f 6d 2f 74 6f |ng files| from/to|
|00000d60| 20 74 68 65 6d 3b 0a 34 | 2e 20 6d 65 6e 64 69 6e | them;.4|. mendin|
|00000d70| 67 20 79 6f 75 72 20 41 | 55 54 4f 45 58 45 43 2e |g your A|UTOEXEC.|
|00000d80| 42 41 54 20 61 6e 64 20 | 43 4f 4e 46 49 47 2e 53 |BAT and |CONFIG.S|
|00000d90| 59 53 3b 0a 35 2e 20 77 | 72 69 74 69 6e 67 20 79 |YS;.5. w|riting y|
|00000da0| 6f 75 72 20 6f 77 6e 20 | 2e 42 41 54 20 66 69 6c |our own |.BAT fil|
|00000db0| 65 73 20 61 6e 64 2f 6f | 72 20 51 42 41 53 49 43 |es and/o|r QBASIC|
|00000dc0| 20 70 72 6f 67 72 61 6d | 73 3b 0a 36 2e 20 74 68 | program|s;.6. th|
|00000dd0| 65 20 72 65 6d 61 69 6e | 69 6e 67 20 31 25 2e 0a |e remain|ing 1%..|
|00000de0| 0a 59 6f 75 27 6c 6c 20 | 62 65 20 67 6c 61 64 20 |.You'll |be glad |
|00000df0| 74 6f 20 6b 6e 6f 77 20 | 74 68 61 74 20 74 68 65 |to know |that the|
|00000e00| 73 65 20 74 61 73 6b 73 | 20 63 61 6e 20 62 65 20 |se tasks| can be |
|00000e10| 61 63 63 6f 6d 70 6c 69 | 73 68 65 64 20 75 6e 64 |accompli|shed und|
|00000e20| 65 72 20 4c 69 6e 75 78 | 20 69 6e 20 0a 61 20 66 |er Linux| in .a f|
|00000e30| 61 73 68 69 6f 6e 20 73 | 69 6d 69 6c 61 72 20 74 |ashion s|imilar t|
|00000e40| 6f 20 44 4f 53 2e 20 55 | 6e 64 65 72 20 44 4f 53 |o DOS. U|nder DOS|
|00000e50| 2c 20 74 68 65 20 61 76 | 65 72 61 67 65 20 75 73 |, the av|erage us|
|00000e60| 65 72 20 75 73 65 73 20 | 76 65 72 79 20 66 65 77 |er uses |very few|
|00000e70| 20 6f 66 20 74 68 65 20 | 0a 31 30 30 2b 20 63 6f | of the |.100+ co|
|00000e80| 6d 6d 61 6e 64 73 20 61 | 76 61 69 6c 61 62 6c 65 |mmands a|vailable|
|00000e90| 3a 20 74 68 65 20 73 61 | 6d 65 2c 20 75 70 20 74 |: the sa|me, up t|
|00000ea0| 6f 20 61 20 70 6f 69 6e | 74 2c 20 63 61 6e 20 62 |o a poin|t, can b|
|00000eb0| 65 20 73 61 69 64 20 66 | 6f 72 20 4c 69 6e 75 78 |e said f|or Linux|
|00000ec0| 2e 20 0a 49 6e 63 69 64 | 65 6e 74 61 6c 6c 79 2c |. .Incid|entally,|
|00000ed0| 20 69 66 20 79 6f 75 20 | 64 6f 6e 27 74 20 6b 6e | if you |don't kn|
|00000ee0| 6f 77 20 74 68 65 20 44 | 4f 53 20 63 6f 6d 6d 61 |ow the D|OS comma|
|00000ef0| 6e 64 73 20 66 6f 72 20 | 74 68 65 20 74 61 73 6b |nds for |the task|
|00000f00| 73 20 69 6e 20 74 68 65 | 20 6c 69 73 74 2c 20 0a |s in the| list, .|
|00000f10| 64 72 6f 70 20 6f 75 74 | 20 6e 6f 77 3a 20 49 20 |drop out| now: I |
|00000f20| 77 6f 6e 27 74 20 62 65 | 20 65 78 70 6c 61 69 6e |won't be| explain|
|00000f30| 69 6e 67 20 77 68 61 74 | 20 73 75 63 68 20 74 68 |ing what| such th|
|00000f40| 69 6e 67 73 20 61 73 20 | 61 20 64 69 72 65 63 74 |ings as |a direct|
|00000f50| 6f 72 79 20 6f 72 20 74 | 68 65 20 0a 50 41 54 48 |ory or t|he .PATH|
|00000f60| 20 76 61 72 69 61 62 6c | 65 20 61 72 65 2e 0a 0a | variabl|e are...|
|00000f70| 41 20 66 65 77 20 74 68 | 69 6e 67 73 20 74 6f 20 |A few th|ings to |
|00000f80| 70 6f 69 6e 74 20 6f 75 | 74 20 62 65 66 6f 72 65 |point ou|t before|
|00000f90| 20 67 6f 69 6e 67 20 6f | 6e 3a 0a 0a 31 29 20 75 | going o|n:..1) u|
|00000fa0| 6e 6c 69 6b 65 20 44 4f | 53 2c 20 4c 69 6e 75 78 |nlike DO|S, Linux|
|00000fb0| 20 68 61 73 20 62 75 69 | 6c 74 2d 69 6e 20 73 65 | has bui|lt-in se|
|00000fc0| 63 75 72 69 74 79 20 6d | 65 63 68 61 6e 69 73 6d |curity m|echanism|
|00000fd0| 73 2e 20 57 68 65 6e 20 | 79 6f 75 20 74 75 72 6e |s. When |you turn|
|00000fe0| 20 74 68 65 20 50 43 20 | 0a 6f 6e 20 61 6e 64 20 | the PC |.on and |
|00000ff0| 66 69 72 65 20 75 70 20 | 4c 69 6e 75 78 2c 20 79 |fire up |Linux, y|
|00001000| 6f 75 20 68 61 76 65 20 | 74 6f 20 22 6c 6f 67 20 |ou have |to "log |
|00001010| 69 6e 22 2c 20 74 68 61 | 74 20 69 73 20 6d 61 6b |in", tha|t is mak|
|00001020| 65 20 79 6f 75 72 73 65 | 6c 66 20 6b 6e 6f 77 6e |e yourse|lf known|
|00001030| 20 74 6f 20 0a 74 68 65 | 20 73 79 73 74 65 6d 3b | to .the| system;|
|00001040| 20 74 68 69 73 20 69 73 | 20 62 65 63 61 75 73 65 | this is| because|
|00001050| 20 55 6e 2a 78 20 69 73 | 20 61 20 6d 75 6c 74 69 | Un*x is| a multi|
|00001060| 2d 75 73 65 72 20 6f 73 | 2e 20 42 65 73 69 64 65 |-user os|. Beside|
|00001070| 73 2c 20 74 68 65 20 6e | 6f 72 6d 61 6c 20 0a 75 |s, the n|ormal .u|
|00001080| 73 65 72 20 64 6f 65 73 | 6e 27 74 20 72 65 61 6c |ser does|n't real|
|00001090| 6c 79 20 6f 77 6e 20 74 | 68 65 20 73 79 73 74 65 |ly own t|he syste|
|000010a0| 6d 3b 20 61 74 20 6c 6f | 67 69 6e 20 74 69 6d 65 |m; at lo|gin time|
|000010b0| 2c 20 6f 6e 6c 79 20 74 | 68 65 20 75 73 65 72 20 |, only t|he user |
|000010c0| 77 68 6f 73 65 20 0a 6c | 6f 67 69 6e 20 6e 61 6d |whose .l|ogin nam|
|000010d0| 65 20 69 73 20 22 72 6f | 6f 74 22 20 68 61 73 20 |e is "ro|ot" has |
|000010e0| 74 68 65 20 70 6f 77 65 | 72 2e 20 28 54 68 69 73 |the powe|r. (This|
|000010f0| 20 67 75 79 27 73 20 74 | 68 65 20 73 79 73 74 65 | guy's t|he syste|
|00001100| 6d 20 61 64 6d 69 6e 69 | 73 74 72 61 74 6f 72 2e |m admini|strator.|
|00001110| 20 0a 49 66 20 79 6f 75 | 20 77 6f 72 6b 20 6f 6e | .If you| work on|
|00001120| 20 79 6f 75 72 20 6f 77 | 6e 20 50 43 2c 20 79 6f | your ow|n PC, yo|
|00001130| 75 27 6c 6c 20 62 65 20 | 72 6f 6f 74 2e 29 20 46 |u'll be |root.) F|
|00001140| 69 6c 65 73 20 61 6e 64 | 20 64 69 72 65 63 74 6f |iles and| directo|
|00001150| 72 69 65 73 20 68 61 76 | 65 20 0a 70 65 72 6d 69 |ries hav|e .permi|
|00001160| 73 73 69 6f 6e 73 20 61 | 73 73 6f 63 69 61 74 65 |ssions a|ssociate|
|00001170| 64 20 74 6f 20 74 68 65 | 6d 2c 20 61 6e 64 20 74 |d to the|m, and t|
|00001180| 68 65 72 65 66 6f 72 65 | 20 73 6f 6d 65 20 63 61 |herefore| some ca|
|00001190| 6e 6e 6f 74 20 62 65 20 | 61 63 63 65 73 73 65 64 |nnot be |accessed|
|000011a0| 20 62 79 20 0a 74 68 65 | 20 6e 6f 72 6d 61 6c 20 | by .the| normal |
|000011b0| 75 73 65 72 2e 20 44 4f | 53 2c 20 6f 6e 20 74 68 |user. DO|S, on th|
|000011c0| 65 20 6f 74 68 65 72 20 | 68 61 6e 64 2c 20 77 69 |e other |hand, wi|
|000011d0| 6c 6c 20 6c 65 74 20 79 | 6f 75 20 77 69 70 65 20 |ll let y|ou wipe |
|000011e0| 6f 75 74 20 74 68 65 20 | 65 6e 74 69 72 65 20 0a |out the |entire .|
|000011f0| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 79 6f 75 72 |contents| of your|
|00001200| 20 68 61 72 64 20 64 69 | 73 6b 3b 0a 0a 32 29 20 | hard di|sk;..2) |
|00001210| 6f 6e 63 65 20 79 6f 75 | 20 68 61 76 65 20 66 69 |once you| have fi|
|00001220| 6e 69 73 68 65 64 20 77 | 6f 72 6b 69 6e 67 2c 20 |nished w|orking, |
|00001230| 79 6f 75 20 2a 6d 75 73 | 74 20 6e 6f 74 2a 20 73 |you *mus|t not* s|
|00001240| 77 69 74 63 68 20 6f 66 | 66 20 79 6f 75 72 20 50 |witch of|f your P|
|00001250| 43 21 20 0a 49 6e 73 74 | 65 61 64 2c 20 79 6f 75 |C! .Inst|ead, you|
|00001260| 20 6d 75 73 74 20 66 6f | 6c 6c 6f 77 20 74 68 65 | must fo|llow the|
|00001270| 20 63 6f 72 72 65 63 74 | 20 73 68 75 74 64 6f 77 | correct| shutdow|
|00001280| 6e 20 70 72 6f 63 65 64 | 75 72 65 20 28 70 72 65 |n proced|ure (pre|
|00001290| 73 73 20 43 54 52 4c 2d | 41 4c 54 2d 0a 44 45 4c |ss CTRL-|ALT-.DEL|
|000012a0| 2c 20 77 61 69 74 20 66 | 6f 72 20 74 68 65 20 73 |, wait f|or the s|
|000012b0| 79 73 74 65 6d 20 74 6f | 20 66 69 78 20 69 74 73 |ystem to| fix its|
|000012c0| 20 69 6e 6e 61 72 64 73 | 20 61 6e 64 20 74 65 6c | innards| and tel|
|000012d0| 6c 20 79 6f 75 20 65 76 | 65 72 79 74 68 69 6e 67 |l you ev|erything|
|000012e0| 20 69 73 20 4f 4b 2c 20 | 0a 74 68 65 6e 20 73 77 | is OK, |.then sw|
|000012f0| 69 74 63 68 20 6f 66 66 | 20 74 68 65 20 50 43 29 |itch off| the PC)|
|00001300| 2e 20 41 6e 79 77 61 79 | 2c 20 4c 69 6e 75 78 20 |. Anyway|, Linux |
|00001310| 69 73 20 73 75 63 68 20 | 61 20 72 65 6c 69 61 62 |is such |a reliab|
|00001320| 6c 65 20 6f 73 20 74 68 | 61 74 20 69 74 20 69 73 |le os th|at it is|
|00001330| 20 0a 2a 65 78 74 72 65 | 6d 65 6c 79 2a 20 75 6e | .*extre|mely* un|
|00001340| 6c 69 6b 65 6c 79 20 74 | 68 61 74 20 61 6e 20 69 |likely t|hat an i|
|00001350| 6c 6c 2d 62 65 68 61 76 | 65 64 20 61 70 70 6c 69 |ll-behav|ed appli|
|00001360| 63 61 74 69 6f 6e 20 77 | 69 6c 6c 20 65 76 65 72 |cation w|ill ever|
|00001370| 20 68 61 6e 67 20 79 6f | 75 72 20 0a 6d 61 63 68 | hang yo|ur .mach|
|00001380| 69 6e 65 20 2d 20 79 6f | 75 27 6c 6c 20 6e 65 76 |ine - yo|u'll nev|
|00001390| 65 72 20 6e 65 65 64 20 | 74 6f 20 72 65 73 65 74 |er need |to reset|
|000013a0| 2e 0a 0a 33 29 20 79 6f | 75 20 61 72 65 20 73 74 |...3) yo|u are st|
|000013b0| 72 6f 6e 67 6c 79 20 65 | 6e 63 6f 75 72 61 67 65 |rongly e|ncourage|
|000013c0| 64 20 74 6f 20 65 78 70 | 65 72 69 6d 65 6e 74 2c |d to exp|eriment,|
|000013d0| 20 70 6c 61 79 2c 20 74 | 72 79 20 62 79 20 79 6f | play, t|ry by yo|
|000013e0| 75 72 73 65 6c 66 3a 20 | 69 74 20 0a 73 75 72 65 |urself: |it .sure|
|000013f0| 6c 79 20 77 6f 6e 27 74 | 20 68 75 72 74 2e 20 59 |ly won't| hurt. Y|
|00001400| 6f 75 20 63 61 6e 20 67 | 65 74 20 73 6f 6d 65 20 |ou can g|et some |
|00001410| 68 65 6c 70 20 74 79 70 | 69 6e 67 20 61 74 20 74 |help typ|ing at t|
|00001420| 68 65 20 70 72 6f 6d 70 | 74 20 28 24 20 69 73 20 |he promp|t ($ is |
|00001430| 74 68 65 20 0a 73 74 61 | 6e 64 61 72 64 20 70 72 |the .sta|ndard pr|
|00001440| 6f 6d 70 74 2c 20 23 20 | 69 73 20 74 68 65 20 70 |ompt, # |is the p|
|00001450| 72 6f 6d 70 74 20 66 6f | 72 20 72 6f 6f 74 29 3a |rompt fo|r root):|
|00001460| 0a 09 24 20 68 65 6c 70 | 0a 28 70 72 65 74 74 79 |..$ help|.(pretty|
|00001470| 20 6c 6f 67 69 63 61 6c | 29 2c 20 6f 72 20 67 65 | logical|), or ge|
|00001480| 74 20 69 6e 66 6f 20 61 | 62 6f 75 74 20 61 20 63 |t info a|bout a c|
|00001490| 6f 6d 6d 61 6e 64 20 74 | 79 70 69 6e 67 0a 09 24 |ommand t|yping..$|
|000014a0| 20 6d 61 6e 20 3c 63 6f | 6d 6d 61 6e 64 3e 0a 77 | man <co|mmand>.w|
|000014b0| 68 69 63 68 2c 20 69 66 | 20 79 6f 75 20 68 61 76 |hich, if| you hav|
|000014c0| 65 20 69 6e 73 74 61 6c | 6c 65 64 20 74 68 65 20 |e instal|led the |
|000014d0| 6d 61 6e 20 70 61 67 65 | 73 2c 20 77 69 6c 6c 20 |man page|s, will |
|000014e0| 69 6e 76 6f 6b 65 20 74 | 68 65 20 6d 61 6e 75 61 |invoke t|he manua|
|000014f0| 6c 20 28 22 6d 61 6e 22 | 29 20 0a 70 61 67 65 20 |l ("man"|) .page |
|00001500| 61 73 73 6f 63 69 61 74 | 65 64 20 74 6f 20 3c 63 |associat|ed to <c|
|00001510| 6f 6d 6d 61 6e 64 3e 2e | 20 59 6f 75 20 6d 61 79 |ommand>.| You may|
|00001520| 20 61 6c 73 6f 20 74 72 | 79 0a 09 24 20 61 70 72 | also tr|y..$ apr|
|00001530| 6f 70 6f 73 20 3c 63 6f | 6d 6d 61 6e 64 3e 0a 6f |opos <co|mmand>.o|
|00001540| 72 0a 09 24 20 77 68 61 | 74 69 73 20 3c 63 6f 6d |r..$ wha|tis <com|
|00001550| 6d 61 6e 64 3e 0a 0a 34 | 29 20 63 6f 6e 76 65 6e |mand>..4|) conven|
|00001560| 74 69 6f 6e 73 3a 0a 61 | 29 20 3c 2e 2e 2e 3e 20 |tions:.a|) <...> |
|00001570| 6d 65 61 6e 73 20 73 6f | 6d 65 74 68 69 6e 67 20 |means so|mething |
|00001580| 74 68 61 74 20 6d 75 73 | 74 20 62 65 20 73 70 65 |that mus|t be spe|
|00001590| 63 69 66 69 65 64 2c 20 | 77 68 69 6c 65 20 5b 2e |cified, |while [.|
|000015a0| 2e 2e 5d 20 73 6f 6d 65 | 74 68 69 6e 67 20 0a 6f |..] some|thing .o|
|000015b0| 70 74 69 6f 6e 61 6c 2e | 20 45 78 61 6d 70 6c 65 |ptional.| Example|
|000015c0| 3a 0a 09 24 20 74 61 72 | 20 2d 74 66 20 3c 66 69 |:..$ tar| -tf <fi|
|000015d0| 6c 65 2e 74 61 72 3e 20 | 5b 3e 20 72 65 64 69 72 |le.tar> |[> redir|
|000015e0| 5f 66 69 6c 65 5d 0a 66 | 69 6c 65 2e 74 61 72 20 |_file].f|ile.tar |
|000015f0| 6d 75 73 74 20 62 65 20 | 69 6e 64 69 63 61 74 65 |must be |indicate|
|00001600| 64 2c 20 62 75 74 20 72 | 65 64 69 72 65 63 74 69 |d, but r|edirecti|
|00001610| 6f 6e 20 74 6f 20 72 65 | 64 69 72 5f 66 69 6c 65 |on to re|dir_file|
|00001620| 20 69 73 20 6f 70 74 69 | 6f 6e 61 6c 2e 0a 62 29 | is opti|onal..b)|
|00001630| 20 66 72 6f 6d 20 6e 6f | 77 20 6f 6e 20 22 52 4d | from no|w on "RM|
|00001640| 50 22 20 6d 65 61 6e 73 | 20 22 72 65 61 64 20 74 |P" means| "read t|
|00001650| 68 65 20 6d 61 6e 20 70 | 61 67 65 73 20 66 6f 72 |he man p|ages for|
|00001660| 20 66 75 72 74 68 65 72 | 20 69 6e 66 6f 72 6d 61 | further| informa|
|00001670| 74 69 6f 6e 22 2e 0a 0a | 59 6f 75 20 61 72 65 20 |tion"...|You are |
|00001680| 6e 6f 77 20 72 65 61 64 | 79 20 74 6f 20 72 65 66 |now read|y to ref|
|00001690| 65 72 20 74 6f 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |er to th|e follow|
|000016a0| 69 6e 67 20 73 65 63 74 | 69 6f 6e 73 2e 0a 0a 0a |ing sect|ions....|
|000016b0| 53 65 63 74 69 6f 6e 20 | 31 3a 20 57 6f 72 6b 69 |Section |1: Worki|
|000016c0| 6e 67 20 77 69 74 68 20 | 46 69 6c 65 73 0a 0a 31 |ng with |Files..1|
|000016d0| 2e 31 2e 20 46 69 6c 65 | 73 3a 20 50 72 65 6c 69 |.1. File|s: Preli|
|000016e0| 6d 69 6e 61 72 79 20 4e | 6f 74 69 6f 6e 73 0a 0a |minary N|otions..|
|000016f0| 4c 69 6e 75 78 20 68 61 | 73 20 61 20 66 69 6c 65 |Linux ha|s a file|
|00001700| 20 73 79 73 74 65 6d 20 | 2d 20 6d 65 61 6e 69 6e | system |- meanin|
|00001710| 67 20 62 79 20 74 68 61 | 74 20 22 74 68 65 20 73 |g by tha|t "the s|
|00001720| 74 72 75 63 74 75 72 65 | 20 6f 66 20 64 69 72 65 |tructure| of dire|
|00001730| 63 74 6f 72 69 65 73 20 | 61 6e 64 20 0a 66 69 6c |ctories |and .fil|
|00001740| 65 73 20 69 6e 20 74 68 | 65 6d 22 20 2d 20 76 65 |es in th|em" - ve|
|00001750| 72 79 20 73 69 6d 69 6c | 61 72 20 74 6f 20 74 68 |ry simil|ar to th|
|00001760| 61 74 20 6f 66 20 44 4f | 53 2e 20 46 69 6c 65 73 |at of DO|S. Files|
|00001770| 20 68 61 76 65 20 66 69 | 6c 65 6e 61 6d 65 73 20 | have fi|lenames |
|00001780| 74 68 61 74 20 0a 6f 62 | 65 79 20 73 70 65 63 69 |that .ob|ey speci|
|00001790| 61 6c 20 72 75 6c 65 73 | 2c 20 61 72 65 20 73 74 |al rules|, are st|
|000017a0| 6f 72 65 64 20 69 6e 20 | 64 69 72 65 63 74 6f 72 |ored in |director|
|000017b0| 69 65 73 2c 20 73 6f 6d | 65 20 61 72 65 20 65 78 |ies, som|e are ex|
|000017c0| 65 63 75 74 61 62 6c 65 | 2c 20 61 6e 64 20 0a 61 |ecutable|, and .a|
|000017d0| 6d 6f 6e 67 20 74 68 65 | 73 65 20 6d 6f 73 74 20 |mong the|se most |
|000017e0| 68 61 76 65 20 63 6f 6d | 6d 61 6e 64 20 73 77 69 |have com|mand swi|
|000017f0| 74 63 68 65 73 2e 20 4d | 6f 72 65 6f 76 65 72 2c |tches. M|oreover,|
|00001800| 20 79 6f 75 20 63 61 6e | 20 75 73 65 20 77 69 6c | you can| use wil|
|00001810| 64 63 61 72 64 20 0a 63 | 68 61 72 61 63 74 65 72 |dcard .c|haracter|
|00001820| 73 2c 20 72 65 64 69 72 | 65 63 74 69 6f 6e 2c 20 |s, redir|ection, |
|00001830| 61 6e 64 20 70 69 70 69 | 6e 67 2e 20 54 68 65 72 |and pipi|ng. Ther|
|00001840| 65 20 61 72 65 20 6f 6e | 6c 79 20 61 20 66 65 77 |e are on|ly a few|
|00001850| 20 6d 69 6e 6f 72 20 0a | 64 69 66 66 65 72 65 6e | minor .|differen|
|00001860| 63 65 73 2e 0a 0a 2d 20 | 46 69 72 73 74 20 64 69 |ces...- |First di|
|00001870| 66 66 65 72 65 6e 63 65 | 3a 20 75 6e 64 65 72 20 |fference|: under |
|00001880| 44 4f 53 2c 20 66 69 6c | 65 20 6e 61 6d 65 73 20 |DOS, fil|e names |
|00001890| 61 72 65 20 69 6e 20 74 | 68 65 20 73 6f 2d 63 61 |are in t|he so-ca|
|000018a0| 6c 6c 65 64 20 38 2e 33 | 20 66 6f 72 6d 3b 20 0a |lled 8.3| form; .|
|000018b0| 65 2e 67 2e 20 4e 4f 54 | 45 4e 4f 55 47 2e 54 58 |e.g. NOT|ENOUG.TX|
|000018c0| 54 2e 20 55 6e 64 65 72 | 20 4c 69 6e 75 78 20 77 |T. Under| Linux w|
|000018d0| 65 20 63 61 6e 20 64 6f | 20 62 65 74 74 65 72 2e |e can do| better.|
|000018e0| 20 49 66 20 79 6f 75 20 | 69 6e 73 74 61 6c 6c 65 | If you |installe|
|000018f0| 64 20 4c 69 6e 75 78 20 | 0a 75 73 69 6e 67 20 61 |d Linux |.using a|
|00001900| 20 66 69 6c 65 73 79 73 | 74 65 6d 20 28 79 6f 75 | filesys|tem (you|
|00001910| 20 6e 65 65 64 6e 27 74 | 20 6b 6e 6f 77 20 77 68 | needn't| know wh|
|00001920| 61 74 20 69 74 20 6d 65 | 61 6e 73 20 6e 6f 77 29 |at it me|ans now)|
|00001930| 20 6c 69 6b 65 20 65 78 | 74 32 20 6f 72 20 0a 75 | like ex|t2 or .u|
|00001940| 6d 73 64 6f 73 2c 20 79 | 6f 75 20 63 61 6e 20 75 |msdos, y|ou can u|
|00001950| 73 65 20 6c 6f 6e 67 65 | 72 20 66 69 6c 65 6e 61 |se longe|r filena|
|00001960| 6d 65 73 2c 20 61 6e 64 | 20 77 69 74 68 20 6d 6f |mes, and| with mo|
|00001970| 72 65 20 74 68 61 6e 20 | 6f 6e 65 20 64 6f 74 20 |re than |one dot |
|00001980| 69 6e 20 74 68 65 6d 3a | 20 0a 66 6f 72 20 65 78 |in them:| .for ex|
|00001990| 61 6d 70 6c 65 2c 20 54 | 68 69 73 5f 69 73 2e 61 |ample, T|his_is.a|
|000019a0| 2e 56 45 52 59 5f 6c 6f | 6e 67 2e 66 69 6c 65 6e |.VERY_lo|ng.filen|
|000019b0| 61 6d 65 2e 20 50 6c 65 | 61 73 65 20 6e 6f 74 65 |ame. Ple|ase note|
|000019c0| 20 74 68 61 74 20 49 20 | 75 73 65 64 20 62 6f 74 | that I |used bot|
|000019d0| 68 20 0a 75 70 70 65 72 | 20 63 61 73 65 20 61 6e |h .upper| case an|
|000019e0| 64 20 6c 6f 77 65 72 20 | 63 61 73 65 20 63 68 61 |d lower |case cha|
|000019f0| 72 61 63 74 65 72 73 2e | 20 49 6e 20 66 61 63 74 |racters.| In fact|
|00001a00| 2e 2e 2e 0a 0a 2d 20 53 | 65 63 6f 6e 64 20 64 69 |.....- S|econd di|
|00001a10| 66 66 65 72 65 6e 63 65 | 3a 20 75 70 70 65 72 20 |fference|: upper |
|00001a20| 63 61 73 65 20 61 6e 64 | 20 6c 6f 77 65 72 20 63 |case and| lower c|
|00001a30| 61 73 65 20 63 68 61 72 | 61 63 74 65 72 73 20 61 |ase char|acters a|
|00001a40| 72 65 20 64 69 66 66 65 | 72 65 6e 74 2e 20 0a 54 |re diffe|rent. .T|
|00001a50| 68 65 72 65 66 6f 72 65 | 2c 20 46 49 4c 45 4e 41 |herefore|, FILENA|
|00001a60| 4d 45 2e 74 61 72 2e 67 | 7a 20 61 6e 64 20 66 69 |ME.tar.g|z and fi|
|00001a70| 6c 65 6e 61 6d 65 2e 74 | 61 72 2e 67 7a 20 61 72 |lename.t|ar.gz ar|
|00001a80| 65 20 74 77 6f 20 64 69 | 66 66 65 72 65 6e 74 20 |e two di|fferent |
|00001a90| 66 69 6c 65 73 2e 20 54 | 68 65 20 0a 73 61 6d 65 |files. T|he .same|
|00001aa0| 20 68 6f 6c 64 73 20 74 | 72 75 65 20 66 6f 72 20 | holds t|rue for |
|00001ab0| 63 6f 6d 6d 61 6e 64 73 | 3a 20 69 66 20 79 6f 75 |commands|: if you|
|00001ac0| 20 69 73 73 75 65 20 74 | 68 65 20 63 6f 6d 6d 61 | issue t|he comma|
|00001ad0| 6e 64 20 6c 73 20 28 74 | 68 65 20 73 61 6d 65 20 |nd ls (t|he same |
|00001ae0| 61 73 20 44 49 52 20 0a | 75 6e 64 65 72 20 44 4f |as DIR .|under DO|
|00001af0| 53 29 20 79 6f 75 27 6c | 6c 20 67 65 74 20 61 20 |S) you'l|l get a |
|00001b00| 6c 69 73 74 20 6f 66 20 | 66 69 6c 65 73 20 69 6e |list of |files in|
|00001b10| 20 79 6f 75 72 20 64 69 | 72 65 63 74 6f 72 79 2c | your di|rectory,|
|00001b20| 20 62 75 74 20 69 66 20 | 79 6f 75 20 65 6e 74 65 | but if |you ente|
|00001b30| 72 20 0a 4c 53 20 79 6f | 75 27 6c 6c 20 67 65 74 |r .LS yo|u'll get|
|00001b40| 20 61 6e 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 | an erro|r messag|
|00001b50| 65 2e 0a 0a 2d 20 54 68 | 69 72 64 20 64 69 66 66 |e...- Th|ird diff|
|00001b60| 65 72 65 6e 63 65 3a 20 | 69 66 20 79 6f 75 20 73 |erence: |if you s|
|00001b70| 74 61 72 74 20 61 20 66 | 69 6c 65 6e 61 6d 65 20 |tart a f|ilename |
|00001b80| 77 69 74 68 20 61 20 70 | 65 72 69 6f 64 2c 20 74 |with a p|eriod, t|
|00001b90| 68 65 20 66 69 6c 65 20 | 77 69 6c 6c 20 62 65 20 |he file |will be |
|00001ba0| 0a 63 6f 6e 73 69 64 65 | 72 65 64 20 61 73 20 68 |.conside|red as h|
|00001bb0| 69 64 64 65 6e 2e 20 45 | 78 61 6d 70 6c 65 3a 20 |idden. E|xample: |
|00001bc0| 74 68 65 20 66 69 6c 65 | 20 2e 49 2e 61 6d 2e 61 |the file| .I.am.a|
|00001bd0| 2e 68 69 64 64 65 6e 2e | 66 69 6c 65 20 77 6f 6e |.hidden.|file won|
|00001be0| 27 74 20 73 68 6f 77 20 | 75 70 20 0a 61 66 74 65 |'t show |up .afte|
|00001bf0| 72 20 61 6e 20 6c 73 20 | 63 6f 6d 6d 61 6e 64 2e |r an ls |command.|
|00001c00| 0a 0a 2d 20 46 6f 75 72 | 74 68 20 64 69 66 66 65 |..- Four|th diffe|
|00001c10| 72 65 6e 63 65 3a 20 74 | 68 65 72 65 20 61 72 65 |rence: t|here are|
|00001c20| 20 6e 6f 20 63 6f 6d 70 | 75 6c 73 6f 72 79 20 65 | no comp|ulsory e|
|00001c30| 78 65 6e 73 69 6f 6e 73 | 20 6c 69 6b 65 20 2e 43 |xensions| like .C|
|00001c40| 4f 4d 20 61 6e 64 20 2e | 45 58 45 20 0a 66 6f 72 |OM and .|EXE .for|
|00001c50| 20 70 72 6f 67 72 61 6d | 73 2c 20 6f 72 20 2e 42 | program|s, or .B|
|00001c60| 41 54 20 66 6f 72 20 62 | 61 74 63 68 20 66 69 6c |AT for b|atch fil|
|00001c70| 65 73 2e 20 45 78 65 63 | 75 74 61 62 6c 65 20 66 |es. Exec|utable f|
|00001c80| 69 6c 65 73 20 61 72 65 | 20 6d 61 72 6b 65 64 20 |iles are| marked |
|00001c90| 62 79 20 61 20 0a 73 74 | 61 72 20 2a 20 61 74 20 |by a .st|ar * at |
|00001ca0| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 69 72 |the end |of their|
|00001cb0| 20 6e 61 6d 65 20 77 68 | 65 6e 20 79 6f 75 20 69 | name wh|en you i|
|00001cc0| 73 73 75 65 20 74 68 65 | 20 6c 73 20 2d 46 20 63 |ssue the| ls -F c|
|00001cd0| 6f 6d 6d 61 6e 64 2e 20 | 46 6f 72 20 0a 65 78 61 |ommand. |For .exa|
|00001ce0| 6d 70 6c 65 3a 0a 09 24 | 20 6c 73 20 2d 46 0a 09 |mple:..$| ls -F..|
|00001cf0| 6c 65 74 74 65 72 5f 74 | 6f 5f 4a 6f 65 20 20 43 |letter_t|o_Joe C|
|00001d00| 69 6e 64 79 2e 6a 70 67 | 20 20 63 6a 70 67 2a 20 |indy.jpg| cjpg* |
|00001d10| 20 49 5f 61 6d 5f 61 5f | 64 69 72 2f 20 20 6d 79 | I_am_a_|dir/ my|
|00001d20| 5f 31 73 74 5f 73 63 72 | 69 70 74 2a 0a 54 68 65 |_1st_scr|ipt*.The|
|00001d30| 20 66 69 6c 65 73 20 63 | 6a 70 67 2a 20 61 6e 64 | files c|jpg* and|
|00001d40| 20 6d 79 5f 31 73 74 5f | 73 63 72 69 70 74 2a 20 | my_1st_|script* |
|00001d50| 61 72 65 20 65 78 65 63 | 75 74 61 62 6c 65 20 2d |are exec|utable -|
|00001d60| 20 22 70 72 6f 67 72 61 | 6d 73 22 2e 20 55 6e 64 | "progra|ms". Und|
|00001d70| 65 72 20 44 4f 53 2c 20 | 0a 66 69 6c 65 73 20 65 |er DOS, |.files e|
|00001d80| 6e 64 69 6e 67 20 69 6e | 20 2e 42 41 4b 20 72 65 |nding in| .BAK re|
|00001d90| 70 72 65 73 65 6e 74 20 | 62 61 63 6b 75 70 20 66 |present |backup f|
|00001da0| 69 6c 65 73 3b 20 75 6e | 64 65 72 20 4c 69 6e 75 |iles; un|der Linu|
|00001db0| 78 2c 20 73 75 63 68 20 | 66 69 6c 65 73 20 61 72 |x, such |files ar|
|00001dc0| 65 20 0a 74 68 6f 73 65 | 20 65 6e 64 69 6e 67 20 |e .those| ending |
|00001dd0| 77 69 74 68 20 61 20 74 | 69 6c 64 65 20 7e 2e 0a |with a t|ilde ~..|
|00001de0| 0a 2d 20 46 69 66 74 68 | 20 64 69 66 66 65 72 65 |.- Fifth| differe|
|00001df0| 6e 63 65 3a 20 44 4f 53 | 20 70 72 6f 67 72 61 6d |nce: DOS| program|
|00001e00| 20 73 77 69 74 63 68 65 | 73 20 61 72 65 20 6f 62 | switche|s are ob|
|00001e10| 74 61 69 6e 65 64 20 77 | 69 74 68 20 2f 73 77 69 |tained w|ith /swi|
|00001e20| 74 63 68 2c 20 77 68 69 | 6c 65 20 0a 75 6e 64 65 |tch, whi|le .unde|
|00001e30| 72 20 4c 69 6e 75 78 20 | 77 69 74 68 20 2d 73 77 |r Linux |with -sw|
|00001e40| 69 74 63 68 2e 20 45 78 | 61 6d 70 6c 65 3a 20 64 |itch. Ex|ample: d|
|00001e50| 69 72 20 2f 73 20 62 65 | 63 6f 6d 65 73 20 6c 73 |ir /s be|comes ls|
|00001e60| 20 2d 52 2e 20 4e 6f 74 | 65 20 74 68 61 74 20 6d | -R. Not|e that m|
|00001e70| 61 6e 79 20 44 4f 53 20 | 0a 70 72 6f 67 72 61 6d |any DOS |.program|
|00001e80| 73 2c 20 6c 69 6b 65 20 | 50 4b 5a 49 50 20 6f 72 |s, like |PKZIP or|
|00001e90| 20 41 52 4a 2c 20 75 73 | 65 20 55 6e 2a 78 2d 73 | ARJ, us|e Un*x-s|
|00001ea0| 74 79 6c 65 20 73 77 69 | 74 63 68 65 73 2e 0a 0a |tyle swi|tches...|
|00001eb0| 31 2e 32 2e 20 46 69 6c | 65 73 3a 20 54 72 61 6e |1.2. Fil|es: Tran|
|00001ec0| 73 6c 61 74 69 6e 67 20 | 43 6f 6d 6d 61 6e 64 73 |slating |Commands|
|00001ed0| 20 66 72 6f 6d 20 44 4f | 53 20 74 6f 20 4c 69 6e | from DO|S to Lin|
|00001ee0| 75 78 0a 0a 4f 6e 20 74 | 68 65 20 6c 65 66 74 2c |ux..On t|he left,|
|00001ef0| 20 74 68 65 20 44 4f 53 | 20 63 6f 6d 6d 61 6e 64 | the DOS| command|
|00001f00| 73 3b 20 6f 6e 20 74 68 | 65 20 72 69 67 68 74 2c |s; on th|e right,|
|00001f10| 20 74 68 65 69 72 20 4c | 69 6e 75 78 20 63 6f 75 | their L|inux cou|
|00001f20| 6e 74 65 72 70 61 72 74 | 2e 0a 0a 43 4f 50 59 3a |nterpart|...COPY:|
|00001f30| 20 20 20 63 70 0a 44 45 | 4c 3a 20 20 20 20 72 6d | cp.DE|L: rm|
|00001f40| 0a 52 45 4e 3a 20 20 20 | 20 6d 76 0a 54 59 50 45 |.REN: | mv.TYPE|
|00001f50| 3a 20 20 20 6d 6f 72 65 | 2c 20 6c 65 73 73 2c 20 |: more|, less, |
|00001f60| 63 61 74 0a 0a 52 65 64 | 69 72 65 63 74 69 6f 6e |cat..Red|irection|
|00001f70| 20 61 6e 64 20 70 6c 75 | 6d 62 69 6e 67 20 6f 70 | and plu|mbing op|
|00001f80| 65 72 61 74 6f 72 73 3a | 20 3c 20 3e 20 3e 3e 20 |erators:| < > >> |
|00001f90| 7c 0a 57 69 6c 64 63 61 | 72 64 73 3a 20 2a 20 3f ||.Wildca|rds: * ?|
|00001fa0| 0a 6e 75 6c 3a 20 20 20 | 20 2f 64 65 76 2f 6e 75 |.nul: | /dev/nu|
|00001fb0| 6c 6c 0a 70 72 6e 2c 20 | 6c 73 74 3a 20 20 20 20 |ll.prn, |lst: |
|00001fc0| 20 20 20 2f 64 65 76 2f | 6c 70 30 3b 20 6c 70 72 | /dev/|lp0; lpr|
|00001fd0| 0a 0a 2d 20 45 58 41 4d | 50 4c 45 53 20 2d 0a 0a |..- EXAM|PLES -..|
|00001fe0| 44 4f 53 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |DOS | |
|00001ff0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002000| 20 20 20 20 20 20 20 20 | 4c 69 6e 75 78 0a 0a 43 | |Linux..C|
|00002010| 3a 5c 47 55 49 44 4f 3e | 63 6f 70 79 20 6a 6f 65 |:\GUIDO>|copy joe|
|00002020| 2e 74 78 74 20 6a 6f 65 | 2e 64 6f 63 20 20 20 20 |.txt joe|.doc |
|00002030| 20 20 20 20 20 20 20 24 | 20 63 70 20 6a 6f 65 2e | $| cp joe.|
|00002040| 74 78 74 20 6a 6f 65 2e | 64 6f 63 0a 43 3a 5c 47 |txt joe.|doc.C:\G|
|00002050| 55 49 44 4f 3e 63 6f 70 | 79 20 2a 2e 2a 20 74 6f |UIDO>cop|y *.* to|
|00002060| 74 61 6c 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |tal | |
|00002070| 20 20 20 20 24 20 63 61 | 74 20 2a 20 3e 20 74 6f | $ ca|t * > to|
|00002080| 74 61 6c 0a 43 3a 5c 47 | 55 49 44 4f 3e 63 6f 70 |tal.C:\G|UIDO>cop|
|00002090| 79 20 66 72 61 63 74 61 | 6c 73 2e 64 6f 63 20 70 |y fracta|ls.doc p|
|000020a0| 72 6e 20 20 20 20 20 20 | 20 20 20 20 24 20 63 61 |rn | $ ca|
|000020b0| 74 20 66 72 61 63 74 61 | 6c 73 2e 64 6f 63 20 7c |t fracta|ls.doc ||
|000020c0| 20 6c 70 72 0a 43 3a 5c | 47 55 49 44 4f 3e 64 65 | lpr.C:\|GUIDO>de|
|000020d0| 6c 20 74 65 6d 70 20 20 | 20 20 20 20 20 20 20 20 |l temp | |
|000020e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 24 20 72 | | $ r|
|000020f0| 6d 20 74 65 6d 70 0a 43 | 3a 5c 47 55 49 44 4f 3e |m temp.C|:\GUIDO>|
|00002100| 64 65 6c 20 2a 2e 62 61 | 6b 20 20 20 20 20 20 20 |del *.ba|k |
|00002110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 24 | | $|
|00002120| 20 72 6d 20 2a 7e 0a 43 | 3a 5c 47 55 49 44 4f 3e | rm *~.C|:\GUIDO>|
|00002130| 72 65 6e 20 70 61 70 65 | 72 2e 74 78 74 20 70 61 |ren pape|r.txt pa|
|00002140| 70 65 72 2e 61 73 63 20 | 20 20 20 20 20 20 20 24 |per.asc | $|
|00002150| 20 6d 76 20 70 61 70 65 | 72 2e 74 78 74 20 70 61 | mv pape|r.txt pa|
|00002160| 70 65 72 2e 61 73 63 0a | 43 3a 5c 47 55 49 44 4f |per.asc.|C:\GUIDO|
|00002170| 3e 74 79 70 65 20 6c 65 | 74 74 65 72 2e 74 78 74 |>type le|tter.txt|
|00002180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002190| 24 20 6d 6f 72 65 20 6c | 65 74 74 65 72 2e 74 78 |$ more l|etter.tx|
|000021a0| 74 0a 43 3a 5c 47 55 49 | 44 4f 3e 74 79 70 65 20 |t.C:\GUI|DO>type |
|000021b0| 6c 65 74 74 65 72 2e 74 | 78 74 20 20 20 20 20 20 |letter.t|xt |
|000021c0| 20 20 20 20 20 20 20 20 | 20 20 24 20 6c 65 73 73 | | $ less|
|000021d0| 20 6c 65 74 74 65 72 2e | 74 78 74 0a 43 3a 5c 47 | letter.|txt.C:\G|
|000021e0| 55 49 44 4f 3e 74 79 70 | 65 20 6c 65 74 74 65 72 |UIDO>typ|e letter|
|000021f0| 2e 74 78 74 20 3e 20 6e | 75 6c 20 20 20 20 20 20 |.txt > n|ul |
|00002200| 20 20 20 20 24 20 63 61 | 74 20 6c 65 74 74 65 72 | $ ca|t letter|
|00002210| 2e 74 78 74 20 3e 2f 64 | 65 76 2f 6e 75 6c 6c 0a |.txt >/d|ev/null.|
|00002220| 09 6e 2f 61 20 20 20 20 | 20 20 20 20 20 20 20 20 |.n/a | |
|00002230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002240| 20 24 20 6d 6f 72 65 20 | 2a 2e 74 78 74 20 2a 2e | $ more |*.txt *.|
|00002250| 61 73 63 0a 09 6e 2f 61 | 20 20 20 20 20 20 20 20 |asc..n/a| |
|00002260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002270| 20 20 20 20 20 24 20 63 | 61 74 20 73 65 63 74 69 | $ c|at secti|
|00002280| 6f 6e 2a 2e 74 78 74 0a | 0a 4e 6f 74 65 73 3a 0a |on*.txt.|.Notes:.|
|00002290| 0a 31 29 20 2a 20 69 73 | 20 73 6d 61 72 74 65 72 |.1) * is| smarter|
|000022a0| 20 75 6e 64 65 72 20 4c | 69 6e 75 78 3a 0a 2d 20 | under L|inux:.- |
|000022b0| 2a 20 6d 61 74 63 68 65 | 73 20 61 6c 6c 20 66 69 |* matche|s all fi|
|000022c0| 6c 65 73 20 65 78 63 65 | 70 74 20 74 68 65 20 68 |les exce|pt the h|
|000022d0| 69 64 64 65 6e 20 6f 6e | 65 73 3b 20 2e 2a 20 6d |idden on|es; .* m|
|000022e0| 61 74 63 68 65 73 20 61 | 6c 6c 20 68 69 64 64 65 |atches a|ll hidde|
|000022f0| 6e 20 66 69 6c 65 73 3b | 20 0a 2a 2e 2a 20 6d 61 |n files;| .*.* ma|
|00002300| 74 63 68 65 73 20 6f 6e | 6c 79 20 74 68 6f 73 65 |tches on|ly those|
|00002310| 20 65 6e 64 69 6e 67 20 | 77 69 74 68 20 2e 20 70 | ending |with . p|
|00002320| 6c 75 73 20 6f 74 68 65 | 72 20 63 68 61 72 61 63 |lus othe|r charac|
|00002330| 74 65 72 73 3b 0a 2d 20 | 70 2a 72 20 6d 61 74 63 |ters;.- |p*r matc|
|00002340| 68 65 73 20 62 6f 74 68 | 20 70 65 74 65 72 20 61 |hes both| peter a|
|00002350| 6e 64 20 70 69 70 65 72 | 3b 20 2a 63 2a 20 6d 61 |nd piper|; *c* ma|
|00002360| 74 63 68 65 73 20 62 6f | 74 68 20 70 69 63 6b 65 |tches bo|th picke|
|00002370| 64 20 61 6e 64 20 70 65 | 63 6b 3b 0a 32 29 20 77 |d and pe|ck;.2) w|
|00002380| 68 65 6e 20 75 73 69 6e | 67 20 6d 6f 72 65 2c 20 |hen usin|g more, |
|00002390| 70 72 65 73 73 20 3c 73 | 70 61 63 65 3e 20 74 6f |press <s|pace> to|
|000023a0| 20 72 65 61 64 20 74 68 | 72 6f 75 67 68 20 74 68 | read th|rough th|
|000023b0| 65 20 66 69 6c 65 2c 20 | 27 71 27 20 6f 72 20 43 |e file, |'q' or C|
|000023c0| 54 52 4c 2d 43 20 0a 74 | 6f 20 65 78 69 74 2e 20 |TRL-C .t|o exit. |
|000023d0| 6c 65 73 73 20 69 73 20 | 6d 6f 72 65 20 69 6e 75 |less is |more inu|
|000023e0| 69 74 69 76 65 20 61 6e | 64 20 6c 65 74 73 20 79 |itive an|d lets y|
|000023f0| 6f 75 20 75 73 65 20 74 | 68 65 20 61 72 72 6f 77 |ou use t|he arrow|
|00002400| 20 6b 65 79 73 3b 0a 33 | 29 20 74 68 65 72 65 20 | keys;.3|) there |
|00002410| 69 73 20 6e 6f 20 55 4e | 44 45 4c 45 54 45 2c 20 |is no UN|DELETE, |
|00002420| 73 6f 20 2a 74 68 69 6e | 6b 20 74 77 69 63 65 2a |so *thin|k twice*|
|00002430| 20 62 65 66 6f 72 65 20 | 64 65 6c 65 74 69 6e 67 | before |deleting|
|00002440| 20 61 6e 79 74 68 69 6e | 67 3b 0a 34 29 20 69 6e | anythin|g;.4) in|
|00002450| 20 61 64 64 69 74 69 6f | 6e 20 74 6f 20 44 4f 53 | additio|n to DOS|
|00002460| 27 73 20 3c 20 3e 20 3e | 3e 2c 20 4c 69 6e 75 78 |'s < > >|>, Linux|
|00002470| 20 68 61 73 20 32 3e 20 | 74 6f 20 72 65 64 69 72 | has 2> |to redir|
|00002480| 65 63 74 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 |ect erro|r messag|
|00002490| 65 73 20 0a 28 73 74 64 | 65 72 72 29 3b 0a 36 29 |es .(std|err);.6)|
|000024a0| 20 4c 69 6e 75 78 20 68 | 61 73 20 61 6e 6f 74 68 | Linux h|as anoth|
|000024b0| 65 72 20 77 69 6c 64 63 | 61 72 64 3a 20 74 68 65 |er wildc|ard: the|
|000024c0| 20 5b 5d 2e 20 55 73 65 | 3a 0a 2d 20 5b 61 62 63 | []. Use|:.- [abc|
|000024d0| 5d 2a 20 6d 61 74 63 68 | 65 73 20 66 69 6c 65 73 |]* match|es files|
|000024e0| 20 73 74 61 72 74 69 6e | 67 20 77 69 74 68 20 61 | startin|g with a|
|000024f0| 2c 20 62 2c 20 63 3b 0a | 2d 20 5b 49 2d 4e 5d 2a |, b, c;.|- [I-N]*|
|00002500| 20 6d 61 74 63 68 65 73 | 20 66 69 6c 65 73 20 73 | matches| files s|
|00002510| 74 61 72 74 69 6e 67 20 | 77 69 74 68 20 49 2c 20 |tarting |with I, |
|00002520| 4a 2c 20 4b 2c 20 4c 2c | 20 4d 2c 20 4e 2e 0a 37 |J, K, L,| M, N..7|
|00002530| 29 20 74 68 65 72 65 20 | 69 73 20 6e 6f 20 44 4f |) there |is no DO|
|00002540| 53 2d 6c 69 6b 65 20 52 | 45 4e 41 4d 45 3b 20 74 |S-like R|ENAME; t|
|00002550| 68 61 74 20 69 73 2c 20 | 72 65 6e 20 2a 2e 78 78 |hat is, |ren *.xx|
|00002560| 78 20 2a 2e 79 79 79 20 | 77 6f 6e 27 74 20 77 6f |x *.yyy |won't wo|
|00002570| 72 6b 2e 20 0a 0a 31 2e | 33 2e 20 45 78 65 63 75 |rk. ..1.|3. Execu|
|00002580| 74 69 6e 67 20 50 72 6f | 67 72 61 6d 73 3a 20 4d |ting Pro|grams: M|
|00002590| 75 6c 74 69 74 61 73 6b | 69 6e 67 20 61 6e 64 20 |ultitask|ing and |
|000025a0| 53 65 73 73 69 6f 6e 73 | 0a 0a 54 6f 20 72 75 6e |Sessions|..To run|
|000025b0| 20 61 20 70 72 6f 67 72 | 61 6d 2c 20 74 79 70 65 | a progr|am, type|
|000025c0| 20 69 6e 20 69 74 73 20 | 6e 61 6d 65 20 61 73 20 | in its |name as |
|000025d0| 79 6f 75 20 77 6f 75 6c | 64 20 64 6f 20 75 6e 64 |you woul|d do und|
|000025e0| 65 72 20 44 4f 53 2e 20 | 49 66 20 74 68 65 20 0a |er DOS. |If the .|
|000025f0| 64 69 72 65 63 74 6f 72 | 79 20 28 53 65 63 74 69 |director|y (Secti|
|00002600| 6f 6e 20 32 29 20 77 68 | 65 72 65 20 74 68 65 20 |on 2) wh|ere the |
|00002610| 70 72 6f 67 72 61 6d 20 | 69 73 20 73 74 6f 72 65 |program |is store|
|00002620| 64 20 69 73 20 69 6e 63 | 6c 75 64 65 64 20 69 6e |d is inc|luded in|
|00002630| 20 74 68 65 20 50 41 54 | 48 20 0a 28 53 65 63 74 | the PAT|H .(Sect|
|00002640| 69 6f 6e 20 34 29 2c 20 | 74 68 65 20 70 72 6f 67 |ion 4), |the prog|
|00002650| 72 61 6d 20 77 69 6c 6c | 20 73 74 61 72 74 2e 20 |ram will| start. |
|00002660| 45 78 63 65 70 74 69 6f | 6e 3a 20 75 6e 6c 69 6b |Exceptio|n: unlik|
|00002670| 65 20 44 4f 53 2c 20 75 | 6e 64 65 72 20 4c 69 6e |e DOS, u|nder Lin|
|00002680| 75 78 20 61 20 0a 70 72 | 6f 67 72 61 6d 20 6c 6f |ux a .pr|ogram lo|
|00002690| 63 61 74 65 64 20 69 6e | 20 74 68 65 20 63 75 72 |cated in| the cur|
|000026a0| 72 65 6e 74 20 64 69 72 | 65 63 74 6f 72 79 20 77 |rent dir|ectory w|
|000026b0| 6f 6e 27 74 20 72 75 6e | 20 75 6e 6c 65 73 73 20 |on't run| unless |
|000026c0| 74 68 65 20 64 69 72 65 | 63 74 6f 72 79 20 69 73 |the dire|ctory is|
|000026d0| 20 0a 69 6e 63 6c 75 64 | 65 64 20 69 6e 20 74 68 | .includ|ed in th|
|000026e0| 65 20 50 41 54 48 2e 20 | 45 73 63 61 6d 6f 74 61 |e PATH. |Escamota|
|000026f0| 67 65 3a 20 62 65 69 6e | 67 20 3c 70 72 6f 67 3e |ge: bein|g <prog>|
|00002700| 20 79 6f 75 72 20 70 72 | 6f 67 72 61 6d 2c 20 74 | your pr|ogram, t|
|00002710| 79 70 65 20 2e 2f 3c 70 | 72 6f 67 3e 2e 0a 0a 54 |ype ./<p|rog>...T|
|00002720| 68 69 73 20 69 73 20 77 | 68 61 74 20 74 68 65 20 |his is w|hat the |
|00002730| 74 79 70 69 63 61 6c 20 | 63 6f 6d 6d 61 6e 64 20 |typical |command |
|00002740| 6c 69 6e 65 20 6c 6f 6f | 6b 73 20 6c 69 6b 65 3a |line loo|ks like:|
|00002750| 0a 09 24 20 63 6f 6d 6d | 61 6e 64 20 2d 73 31 20 |..$ comm|and -s1 |
|00002760| 2d 73 32 20 2e 2e 2e 20 | 2d 73 6e 20 70 61 72 31 |-s2 ... |-sn par1|
|00002770| 20 70 61 72 32 20 2e 2e | 2e 20 70 61 72 6e 20 3c | par2 ..|. parn <|
|00002780| 69 6e 70 75 74 20 3e 6f | 75 74 70 75 74 0a 77 68 |input >o|utput.wh|
|00002790| 65 72 65 20 2d 73 31 2c | 20 2e 2e 2e 2c 20 2d 73 |ere -s1,| ..., -s|
|000027a0| 6e 20 61 72 65 20 74 68 | 65 20 70 72 6f 67 72 61 |n are th|e progra|
|000027b0| 6d 20 73 77 69 74 63 68 | 65 73 2c 20 70 61 72 31 |m switch|es, par1|
|000027c0| 2c 20 2e 2e 2e 2c 20 70 | 61 72 6e 20 61 72 65 20 |, ..., p|arn are |
|000027d0| 74 68 65 20 0a 70 72 6f | 67 72 61 6d 20 70 61 72 |the .pro|gram par|
|000027e0| 61 6d 65 74 65 72 73 2e | 20 49 74 20 69 73 20 70 |ameters.| It is p|
|000027f0| 6f 73 73 69 62 6c 65 20 | 74 6f 20 69 73 73 75 65 |ossible |to issue|
|00002800| 20 73 65 76 65 72 61 6c | 20 63 6f 6d 6d 61 6e 64 | several| command|
|00002810| 73 20 6f 6e 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |s on the| command|
|00002820| 20 0a 6c 69 6e 65 3a 0a | 09 24 20 63 6f 6d 6d 61 | .line:.|.$ comma|
|00002830| 6e 64 31 20 3b 20 63 6f | 6d 6d 61 6e 64 32 20 3b |nd1 ; co|mmand2 ;|
|00002840| 20 2e 2e 2e 20 3b 20 63 | 6f 6d 6d 61 6e 64 6e 0a | ... ; c|ommandn.|
|00002850| 54 68 61 74 27 73 20 61 | 6c 6c 20 61 62 6f 75 74 |That's a|ll about|
|00002860| 20 72 75 6e 6e 69 6e 67 | 20 70 72 6f 67 72 61 6d | running| program|
|00002870| 73 2c 20 62 75 74 20 69 | 74 27 73 20 65 61 73 79 |s, but i|t's easy|
|00002880| 20 74 6f 20 67 6f 20 61 | 20 73 74 65 70 20 62 65 | to go a| step be|
|00002890| 79 6f 6e 64 2e 20 4f 6e | 65 20 0a 6f 66 20 74 68 |yond. On|e .of th|
|000028a0| 65 20 6d 61 69 6e 20 72 | 65 61 73 6f 6e 73 20 66 |e main r|easons f|
|000028b0| 6f 72 20 75 73 69 6e 67 | 20 4c 69 6e 75 78 20 69 |or using| Linux i|
|000028c0| 73 20 74 68 61 74 20 69 | 74 20 69 73 20 61 20 6d |s that i|t is a m|
|000028d0| 75 6c 74 69 74 61 73 6b | 69 6e 67 20 6f 73 20 2d |ultitask|ing os -|
|000028e0| 20 69 74 20 0a 63 61 6e | 20 72 75 6e 20 73 65 76 | it .can| run sev|
|000028f0| 65 72 61 6c 20 70 72 6f | 67 72 61 6d 73 20 28 66 |eral pro|grams (f|
|00002900| 72 6f 6d 20 6e 6f 77 20 | 6f 6e 2c 20 70 72 6f 63 |rom now |on, proc|
|00002910| 65 73 73 65 73 29 20 61 | 74 20 74 68 65 20 73 61 |esses) a|t the sa|
|00002920| 6d 65 20 74 69 6d 65 2e | 20 59 6f 75 20 63 61 6e |me time.| You can|
|00002930| 20 0a 6c 61 75 6e 63 68 | 20 70 72 6f 63 65 73 73 | .launch| process|
|00002940| 65 73 20 69 6e 20 62 61 | 63 6b 67 72 6f 75 6e 64 |es in ba|ckground|
|00002950| 20 61 6e 64 20 63 6f 6e | 74 69 6e 75 65 20 77 6f | and con|tinue wo|
|00002960| 72 6b 69 6e 67 20 73 74 | 72 61 69 67 68 74 20 61 |rking st|raight a|
|00002970| 77 61 79 2e 20 0a 4d 6f | 72 65 6f 76 65 72 2c 20 |way. .Mo|reover, |
|00002980| 4c 69 6e 75 78 20 6c 65 | 74 73 20 79 6f 75 20 68 |Linux le|ts you h|
|00002990| 61 76 65 20 73 65 76 65 | 72 61 6c 20 73 65 73 73 |ave seve|ral sess|
|000029a0| 69 6f 6e 73 3a 20 69 74 | 27 73 20 6c 69 6b 65 20 |ions: it|'s like |
|000029b0| 68 61 76 69 6e 67 20 6d | 61 6e 79 20 0a 63 6f 6d |having m|any .com|
|000029c0| 70 75 74 65 72 73 20 74 | 6f 20 77 6f 72 6b 20 6f |puters t|o work o|
|000029d0| 6e 20 61 74 20 6f 6e 63 | 65 21 0a 0a 2d 20 54 6f |n at onc|e!..- To|
|000029e0| 20 73 77 69 74 63 68 20 | 74 6f 20 73 65 73 73 69 | switch |to sessi|
|000029f0| 6f 6e 20 31 2e 2e 38 3a | 0a 09 24 20 3c 41 4c 54 |on 1..8:|..$ <ALT|
|00002a00| 2d 46 31 3e 20 2e 2e 2e | 20 3c 41 4c 54 2d 46 38 |-F1> ...| <ALT-F8|
|00002a10| 3e 2e 0a 2d 20 54 6f 20 | 73 74 61 72 74 20 61 20 |>..- To |start a |
|00002a20| 6e 65 77 20 73 65 73 73 | 69 6f 6e 20 77 69 74 68 |new sess|ion with|
|00002a30| 6f 75 74 20 6c 65 61 76 | 69 6e 67 20 74 68 65 20 |out leav|ing the |
|00002a40| 63 75 72 72 65 6e 74 20 | 6f 6e 65 3a 0a 09 24 20 |current |one:..$ |
|00002a50| 73 75 20 2d 20 3c 6c 6f | 67 69 6e 6e 61 6d 65 3e |su - <lo|ginname>|
|00002a60| 0a 45 78 61 6d 70 6c 65 | 3a 0a 09 24 20 73 75 20 |.Example|:..$ su |
|00002a70| 2d 20 72 6f 6f 74 0a 54 | 68 69 73 20 69 73 20 75 |- root.T|his is u|
|00002a80| 73 65 66 75 6c 2c 20 66 | 6f 72 20 6f 6e 65 2c 20 |seful, f|or one, |
|00002a90| 77 68 65 6e 20 79 6f 75 | 20 6e 65 65 64 20 74 6f |when you| need to|
|00002aa0| 20 6d 6f 75 6e 74 20 61 | 20 64 69 73 6b 20 28 53 | mount a| disk (S|
|00002ab0| 65 63 74 69 6f 6e 20 33 | 29 3a 20 6f 6e 6c 79 20 |ection 3|): only |
|00002ac0| 0a 72 6f 6f 74 20 63 61 | 6e 20 64 6f 20 74 68 61 |.root ca|n do tha|
|00002ad0| 74 2e 0a 2d 20 54 6f 20 | 65 6e 64 20 61 20 73 65 |t..- To |end a se|
|00002ae0| 73 73 69 6f 6e 3a 0a 09 | 24 20 65 78 69 74 0a 2d |ssion:..|$ exit.-|
|00002af0| 20 54 6f 20 6c 61 75 6e | 63 68 20 61 20 70 72 6f | To laun|ch a pro|
|00002b00| 63 65 73 73 20 69 6e 20 | 66 6f 72 65 67 72 6f 75 |cess in |foregrou|
|00002b10| 6e 64 3a 0a 09 24 20 70 | 72 6f 67 6e 61 6d 65 20 |nd:..$ p|rogname |
|00002b20| 5b 2d 73 77 69 74 63 68 | 65 73 5d 20 5b 70 61 72 |[-switch|es] [par|
|00002b30| 61 6d 65 74 65 72 73 5d | 20 5b 3c 69 6e 70 75 74 |ameters]| [<input|
|00002b40| 5d 20 5b 3e 6f 75 74 70 | 75 74 5d 0a 2d 20 54 6f |] [>outp|ut].- To|
|00002b50| 20 6c 61 75 6e 63 68 20 | 61 20 70 72 6f 63 65 73 | launch |a proces|
|00002b60| 73 20 69 6e 20 62 61 63 | 6b 67 72 6f 75 6e 64 2c |s in bac|kground,|
|00002b70| 20 61 64 64 20 61 6e 20 | 61 6d 70 65 72 73 65 6e | add an |ampersen|
|00002b80| 64 20 28 26 29 20 61 74 | 20 74 68 65 20 65 6e 64 |d (&) at| the end|
|00002b90| 20 6f 66 20 74 68 65 20 | 0a 6c 69 6e 65 3a 0a 09 | of the |.line:..|
|00002ba0| 24 20 70 72 6f 67 6e 61 | 6d 65 20 5b 2d 73 77 69 |$ progna|me [-swi|
|00002bb0| 74 63 68 65 73 5d 20 5b | 70 61 72 61 6d 65 74 65 |tches] [|paramete|
|00002bc0| 72 73 5d 20 5b 3c 69 6e | 70 75 74 5d 20 5b 3e 6f |rs] [<in|put] [>o|
|00002bd0| 75 74 70 75 74 5d 20 26 | 0a 2d 20 54 6f 20 73 65 |utput] &|.- To se|
|00002be0| 65 20 68 6f 77 20 6d 61 | 6e 79 20 70 72 6f 63 65 |e how ma|ny proce|
|00002bf0| 73 73 65 73 20 74 68 65 | 72 65 20 61 72 65 3a 0a |sses the|re are:.|
|00002c00| 09 24 20 70 73 0a 54 68 | 69 73 20 77 69 6c 6c 20 |.$ ps.Th|is will |
|00002c10| 6f 75 74 70 75 74 20 61 | 20 6c 69 73 74 20 6f 66 |output a| list of|
|00002c20| 20 70 72 6f 63 65 73 73 | 65 73 20 63 75 72 72 65 | process|es curre|
|00002c30| 6e 74 6c 79 20 72 75 6e | 6e 69 6e 67 2e 20 45 61 |ntly run|ning. Ea|
|00002c40| 63 68 20 6f 6e 65 20 69 | 73 20 0a 69 64 65 6e 74 |ch one i|s .ident|
|00002c50| 69 66 69 65 64 20 62 79 | 20 61 20 50 49 44 2c 20 |ified by| a PID, |
|00002c60| 61 20 6e 75 6d 62 65 72 | 2e 0a 2d 20 54 6f 20 6b |a number|..- To k|
|00002c70| 69 6c 6c 20 61 20 70 72 | 6f 63 65 73 73 3a 0a 09 |ill a pr|ocess:..|
|00002c80| 24 20 6b 69 6c 6c 20 3c | 50 49 44 3e 0a 59 6f 75 |$ kill <|PID>.You|
|00002c90| 20 6d 61 79 20 6e 65 65 | 64 20 74 6f 20 6b 69 6c | may nee|d to kil|
|00002ca0| 6c 20 61 20 70 72 6f 63 | 65 73 73 20 77 68 65 6e |l a proc|ess when|
|00002cb0| 20 79 6f 75 20 64 6f 6e | 27 74 20 6b 6e 6f 77 20 | you don|'t know |
|00002cc0| 68 6f 77 20 74 6f 20 71 | 75 69 74 20 69 74 20 74 |how to q|uit it t|
|00002cd0| 68 65 20 72 69 67 68 74 | 20 0a 77 61 79 2e 2e 2e |he right| .way...|
|00002ce0| 20 3b 2d 29 2e 20 53 6f | 6d 65 74 69 6d 65 73 2c | ;-). So|metimes,|
|00002cf0| 20 61 20 70 72 6f 63 65 | 73 73 20 77 69 6c 6c 20 | a proce|ss will |
|00002d00| 6f 6e 6c 79 20 62 65 20 | 6b 69 6c 6c 65 64 20 62 |only be |killed b|
|00002d10| 79 20 65 69 74 68 65 72 | 20 6f 6e 65 20 6f 66 20 |y either| one of |
|00002d20| 74 68 65 20 0a 66 6f 6c | 6c 6f 77 69 6e 67 3a 0a |the .fol|lowing:.|
|00002d30| 09 24 20 6b 69 6c 6c 20 | 2d 31 35 20 3c 50 49 44 |.$ kill |-15 <PID|
|00002d40| 3e 0a 09 24 20 6b 69 6c | 6c 20 2d 39 20 3c 50 49 |>..$ kil|l -9 <PI|
|00002d50| 44 3e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |D> | |
|00002d60| 20 20 20 0a 49 6e 20 61 | 64 64 69 74 69 6f 6e 20 | .In a|ddition |
|00002d70| 74 6f 20 74 68 69 73 2c | 20 74 68 65 20 73 68 65 |to this,| the she|
|00002d80| 6c 6c 20 28 74 68 65 20 | 65 71 75 69 76 61 6c 65 |ll (the |equivale|
|00002d90| 6e 74 20 6f 66 20 43 4f | 4d 4d 41 4e 44 2e 43 4f |nt of CO|MMAND.CO|
|00002da0| 4d 3b 20 6d 6f 73 74 20 | 66 6f 6c 6b 73 20 0a 75 |M; most |folks .u|
|00002db0| 73 65 20 61 20 73 68 65 | 6c 6c 20 63 61 6c 6c 65 |se a she|ll calle|
|00002dc0| 64 20 62 61 73 68 29 20 | 61 6c 6c 6f 77 73 20 79 |d bash) |allows y|
|00002dd0| 6f 75 20 74 6f 20 73 74 | 6f 70 20 6f 72 20 74 65 |ou to st|op or te|
|00002de0| 6d 70 6f 72 61 72 69 6c | 79 20 73 75 73 70 65 6e |mporaril|y suspen|
|00002df0| 64 20 61 20 0a 70 72 6f | 63 65 73 73 2c 20 73 65 |d a .pro|cess, se|
|00002e00| 6e 64 20 61 20 70 72 6f | 63 65 73 73 20 74 6f 20 |nd a pro|cess to |
|00002e10| 62 61 63 6b 67 72 6f 75 | 6e 64 2c 20 61 6e 64 20 |backgrou|nd, and |
|00002e20| 62 72 69 6e 67 20 61 20 | 70 72 6f 63 65 73 73 20 |bring a |process |
|00002e30| 66 72 6f 6d 20 62 61 63 | 6b 67 72 6f 75 6e 64 20 |from bac|kground |
|00002e40| 0a 74 6f 20 66 6f 72 65 | 67 72 6f 75 6e 64 2e 20 |.to fore|ground. |
|00002e50| 49 6e 20 74 68 69 73 20 | 63 6f 6e 74 65 78 74 2c |In this |context,|
|00002e60| 20 70 72 6f 63 65 73 73 | 65 73 20 61 72 65 20 63 | process|es are c|
|00002e70| 61 6c 6c 65 64 20 22 6a | 6f 62 73 22 2e 0a 2d 20 |alled "j|obs"..- |
|00002e80| 54 6f 20 73 65 65 20 68 | 6f 77 20 6d 61 6e 79 20 |To see h|ow many |
|00002e90| 6a 6f 62 73 20 74 68 65 | 72 65 20 61 72 65 3a 0a |jobs the|re are:.|
|00002ea0| 09 24 20 6a 6f 62 73 0a | 68 65 72 65 20 6a 6f 62 |.$ jobs.|here job|
|00002eb0| 73 20 61 72 65 20 69 64 | 65 6e 74 69 66 69 65 64 |s are id|entified|
|00002ec0| 20 62 79 20 74 68 65 20 | 6e 75 6d 62 65 72 73 20 | by the |numbers |
|00002ed0| 74 68 65 20 73 68 65 6c | 6c 20 67 69 76 65 73 20 |the shel|l gives |
|00002ee0| 74 68 65 6d 2c 20 6e 6f | 74 20 62 79 20 74 68 65 |them, no|t by the|
|00002ef0| 69 72 20 0a 50 49 44 2e | 0a 2d 20 54 6f 20 73 74 |ir .PID.|.- To st|
|00002f00| 6f 70 20 61 20 70 72 6f | 63 65 73 73 20 72 75 6e |op a pro|cess run|
|00002f10| 6e 69 6e 67 20 69 6e 20 | 66 6f 72 65 67 72 6f 75 |ning in |foregrou|
|00002f20| 6e 64 3a 0a 09 24 20 3c | 43 54 52 4c 2d 43 3e 0a |nd:..$ <|CTRL-C>.|
|00002f30| 28 69 74 20 64 6f 65 73 | 6e 27 74 20 61 6c 77 61 |(it does|n't alwa|
|00002f40| 79 73 20 77 6f 72 6b 29 | 0a 2d 20 54 6f 20 73 75 |ys work)|.- To su|
|00002f50| 73 70 65 6e 64 20 61 20 | 70 72 6f 63 65 73 73 20 |spend a |process |
|00002f60| 72 75 6e 6e 69 6e 67 20 | 69 6e 20 66 6f 72 65 67 |running |in foreg|
|00002f70| 72 6f 75 6e 64 3a 0a 09 | 24 20 3c 43 54 52 4c 2d |round:..|$ <CTRL-|
|00002f80| 5a 3e 0a 28 64 69 74 74 | 6f 29 0a 2d 20 54 6f 20 |Z>.(ditt|o).- To |
|00002f90| 73 65 6e 64 20 61 20 73 | 75 73 70 65 6e 64 65 64 |send a s|uspended|
|00002fa0| 20 70 72 6f 63 65 73 73 | 20 69 6e 74 6f 20 62 61 | process| into ba|
|00002fb0| 63 6b 67 72 6f 75 6e 64 | 3a 0a 09 24 20 62 67 20 |ckground|:..$ bg |
|00002fc0| 3c 6a 6f 62 3e 0a 2d 20 | 54 6f 20 62 72 69 6e 67 |<job>.- |To bring|
|00002fd0| 20 61 20 70 72 6f 63 65 | 73 73 20 74 6f 20 66 6f | a proce|ss to fo|
|00002fe0| 72 65 67 72 6f 75 6e 64 | 3a 0a 09 24 20 66 67 20 |reground|:..$ fg |
|00002ff0| 3c 6a 6f 62 3e 0a 2d 20 | 41 67 61 69 6e 2c 20 74 |<job>.- |Again, t|
|00003000| 6f 20 6b 69 6c 6c 20 61 | 20 70 72 6f 63 65 73 73 |o kill a| process|
|00003010| 3a 0a 09 24 20 6b 69 6c | 6c 20 25 3c 6a 6f 62 3e |:..$ kil|l %<job>|
|00003020| 0a 77 68 65 72 65 20 3c | 6a 6f 62 3e 20 6d 61 79 |.where <|job> may|
|00003030| 20 62 65 20 31 2c 20 32 | 2c 20 33 2c 20 2e 2e 2e | be 1, 2|, 3, ...|
|00003040| 20 20 55 73 69 6e 67 20 | 74 68 65 73 65 20 63 6f | Using |these co|
|00003050| 6d 6d 61 6e 64 73 20 79 | 6f 75 20 63 61 6e 20 66 |mmands y|ou can f|
|00003060| 6f 72 6d 61 74 20 61 20 | 0a 64 69 73 6b 2c 20 7a |ormat a |.disk, z|
|00003070| 69 70 20 61 20 62 75 6e | 63 68 20 6f 66 20 66 69 |ip a bun|ch of fi|
|00003080| 6c 65 73 2c 20 63 6f 6d | 70 69 6c 65 20 61 20 70 |les, com|pile a p|
|00003090| 72 6f 67 72 61 6d 2c 20 | 61 6e 64 20 75 6e 7a 69 |rogram, |and unzi|
|000030a0| 70 20 61 6e 20 61 72 63 | 68 69 76 65 20 61 6c 6c |p an arc|hive all|
|000030b0| 20 61 74 20 0a 74 68 65 | 20 73 61 6d 65 20 74 69 | at .the| same ti|
|000030c0| 6d 65 2c 20 61 6e 64 20 | 73 74 69 6c 6c 20 68 61 |me, and |still ha|
|000030d0| 76 65 20 74 68 65 20 70 | 72 6f 6d 70 74 20 61 74 |ve the p|rompt at|
|000030e0| 20 79 6f 75 72 20 64 69 | 73 70 6f 73 61 6c 2e 20 | your di|sposal. |
|000030f0| 54 72 79 20 74 68 69 73 | 20 77 69 74 68 20 0a 44 |Try this| with .D|
|00003100| 4f 53 21 20 41 6e 64 20 | 74 72 79 20 77 69 74 68 |OS! And |try with|
|00003110| 20 57 69 6e 64 6f 77 73 | 2c 20 6a 75 73 74 20 74 | Windows|, just t|
|00003120| 6f 20 73 65 65 20 74 68 | 65 20 64 69 66 66 65 72 |o see th|e differ|
|00003130| 65 6e 63 65 20 69 6e 20 | 70 65 72 66 6f 72 6d 61 |ence in |performa|
|00003140| 6e 63 65 2e 20 0a 0a 0a | 53 65 63 74 69 6f 6e 20 |nce. ...|Section |
|00003150| 32 3a 20 55 73 69 6e 67 | 20 44 69 72 65 63 74 6f |2: Using| Directo|
|00003160| 72 69 65 73 0a 0a 32 2e | 31 2e 20 44 69 72 65 63 |ries..2.|1. Direc|
|00003170| 74 6f 72 69 65 73 3a 20 | 50 72 65 6c 69 6d 69 6e |tories: |Prelimin|
|00003180| 61 72 79 20 4e 6f 74 69 | 6f 6e 73 0a 0a 57 65 20 |ary Noti|ons..We |
|00003190| 68 61 76 65 20 73 65 65 | 6e 20 74 68 65 20 64 69 |have see|n the di|
|000031a0| 66 66 65 72 65 6e 63 65 | 73 20 62 65 74 77 65 65 |fference|s betwee|
|000031b0| 6e 20 66 69 6c 65 73 20 | 75 6e 64 65 72 20 44 4f |n files |under DO|
|000031c0| 53 20 61 6e 64 20 4c 69 | 6e 75 78 2e 20 41 73 20 |S and Li|nux. As |
|000031d0| 66 6f 72 20 0a 64 69 72 | 65 63 74 6f 72 69 65 73 |for .dir|ectories|
|000031e0| 2c 20 75 6e 64 65 72 20 | 44 4f 53 20 74 68 65 20 |, under |DOS the |
|000031f0| 72 6f 6f 74 20 64 69 72 | 65 63 74 6f 72 79 20 69 |root dir|ectory i|
|00003200| 73 20 5c 2c 20 75 6e 64 | 65 72 20 4c 69 6e 75 78 |s \, und|er Linux|
|00003210| 20 2f 20 69 73 2e 20 0a | 53 69 6d 69 6c 61 72 6c | / is. .|Similarl|
|00003220| 79 2c 20 6e 65 73 74 65 | 64 20 64 69 72 65 63 74 |y, neste|d direct|
|00003230| 6f 72 69 65 73 20 61 72 | 65 20 73 65 70 61 72 61 |ories ar|e separa|
|00003240| 74 65 64 20 62 79 20 5c | 20 75 6e 64 65 72 20 44 |ted by \| under D|
|00003250| 4f 53 2c 20 62 79 20 2f | 20 75 6e 64 65 72 20 0a |OS, by /| under .|
|00003260| 4c 69 6e 75 78 2e 20 45 | 78 61 6d 70 6c 65 20 6f |Linux. E|xample o|
|00003270| 66 20 66 69 6c 65 20 70 | 61 74 68 73 3a 0a 09 44 |f file p|aths:..D|
|00003280| 4f 53 3a 20 20 20 20 5c | 50 52 4f 47 52 41 4d 53 |OS: \|PROGRAMS|
|00003290| 5c 43 2b 2b 5c 53 4f 55 | 52 43 45 53 5c 48 45 4c |\C++\SOU|RCES\HEL|
|000032a0| 4c 4f 2e 43 50 50 0a 09 | 4c 69 6e 75 78 3a 20 20 |LO.CPP..|Linux: |
|000032b0| 2f 68 6f 6d 65 2f 67 75 | 69 64 6f 2f 70 61 70 65 |/home/gu|ido/pape|
|000032c0| 72 73 2f 67 65 6f 6c 6f | 67 79 2f 6d 69 64 5f 65 |rs/geolo|gy/mid_e|
|000032d0| 6f 63 65 6e 65 2e 74 65 | 78 0a 41 73 20 75 73 75 |ocene.te|x.As usu|
|000032e0| 61 6c 2c 20 2e 2e 20 69 | 73 20 74 68 65 20 70 61 |al, .. i|s the pa|
|000032f0| 72 65 6e 74 20 64 69 72 | 65 63 74 6f 72 79 2c 20 |rent dir|ectory, |
|00003300| 2e 20 69 73 20 74 68 65 | 20 63 75 72 72 65 6e 74 |. is the| current|
|00003310| 20 64 69 72 65 63 74 6f | 72 79 2e 20 52 65 6d 65 | directo|ry. Reme|
|00003320| 6d 62 65 72 20 0a 74 68 | 61 74 20 74 68 65 20 73 |mber .th|at the s|
|00003330| 79 73 74 65 6d 20 77 6f | 6e 27 74 20 6c 65 74 20 |ystem wo|n't let |
|00003340| 79 6f 75 20 63 64 2c 20 | 72 64 2c 20 6f 72 20 6d |you cd, |rd, or m|
|00003350| 64 20 65 76 65 72 79 77 | 68 65 72 65 20 79 6f 75 |d everyw|here you|
|00003360| 20 77 61 6e 74 2e 20 45 | 76 65 72 79 20 75 73 65 | want. E|very use|
|00003370| 72 20 0a 73 74 61 72 74 | 73 20 66 72 6f 6d 20 68 |r .start|s from h|
|00003380| 69 73 20 6f 72 20 68 65 | 72 20 6f 77 6e 20 64 69 |is or he|r own di|
|00003390| 72 65 63 74 6f 72 79 20 | 63 61 6c 6c 65 64 20 68 |rectory |called h|
|000033a0| 6f 6d 65 2c 20 67 69 76 | 65 6e 20 62 79 20 74 68 |ome, giv|en by th|
|000033b0| 65 20 73 79 73 74 65 6d | 20 0a 61 64 6d 69 6e 69 |e system| .admini|
|000033c0| 73 74 72 61 74 6f 72 3b | 20 66 6f 72 20 69 6e 73 |strator;| for ins|
|000033d0| 74 61 6e 63 65 2c 20 6f | 6e 20 6d 79 20 50 43 20 |tance, o|n my PC |
|000033e0| 6d 79 20 68 6f 6d 65 20 | 64 69 72 20 69 73 20 2f |my home |dir is /|
|000033f0| 68 6f 6d 65 2f 67 75 69 | 64 6f 2e 0a 0a 32 2e 32 |home/gui|do...2.2|
|00003400| 2e 20 54 72 61 6e 73 6c | 61 74 69 6e 67 20 43 6f |. Transl|ating Co|
|00003410| 6d 6d 61 6e 64 73 20 66 | 72 6f 6d 20 44 4f 53 20 |mmands f|rom DOS |
|00003420| 74 6f 20 4c 69 6e 75 78 | 0a 0a 44 49 52 3a 20 20 |to Linux|..DIR: |
|00003430| 20 20 6c 73 2c 20 66 69 | 6e 64 2c 20 64 75 0a 43 | ls, fi|nd, du.C|
|00003440| 44 3a 20 20 20 20 20 63 | 64 2c 20 70 77 64 0a 4d |D: c|d, pwd.M|
|00003450| 44 3a 20 20 20 20 20 6d | 6b 64 69 72 0a 52 44 3a |D: m|kdir.RD:|
|00003460| 20 20 20 20 20 72 6d 64 | 69 72 0a 0a 2d 20 45 58 | rmd|ir..- EX|
|00003470| 41 4d 50 4c 45 53 20 2d | 0a 0a 44 4f 53 20 20 20 |AMPLES -|..DOS |
|00003480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000034a0| 20 20 4c 69 6e 75 78 0a | 0a 43 3a 5c 47 55 49 44 | Linux.|.C:\GUID|
|000034b0| 4f 3e 64 69 72 20 20 20 | 20 20 20 20 20 20 20 20 |O>dir | |
|000034c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000034d0| 20 24 20 6c 73 0a 43 3a | 5c 47 55 49 44 4f 3e 64 | $ ls.C:|\GUIDO>d|
|000034e0| 69 72 20 66 69 6c 65 2e | 74 78 74 20 20 20 20 20 |ir file.|txt |
|000034f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 24 20 | | $ |
|00003500| 6c 73 20 66 69 6c 65 2e | 74 78 74 0a 43 3a 5c 47 |ls file.|txt.C:\G|
|00003510| 55 49 44 4f 3e 64 69 72 | 20 2a 2e 68 20 2a 2e 63 |UIDO>dir| *.h *.c|
|00003520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003530| 20 20 20 20 24 20 6c 73 | 20 2a 2e 68 20 2a 2e 63 | $ ls| *.h *.c|
|00003540| 0a 43 3a 5c 47 55 49 44 | 4f 3e 64 69 72 2f 70 20 |.C:\GUID|O>dir/p |
|00003550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003560| 20 20 20 20 20 20 20 20 | 20 24 20 6c 73 20 7c 20 | | $ ls | |
|00003570| 6d 6f 72 65 0a 43 3a 5c | 47 55 49 44 4f 3e 64 69 |more.C:\|GUIDO>di|
|00003580| 72 20 5c 2a 2e 74 6d 70 | 20 2f 73 20 20 20 20 20 |r \*.tmp| /s |
|00003590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 24 20 66 | | $ f|
|000035a0| 69 6e 64 20 2f 20 2d 6e | 61 6d 65 20 22 2a 2e 74 |ind / -n|ame "*.t|
|000035b0| 6d 70 22 0a 43 3a 5c 47 | 55 49 44 4f 3e 63 64 20 |mp".C:\G|UIDO>cd |
|000035c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000035d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 24 20 70 77 | | $ pw|
|000035e0| 64 0a 09 6e 2f 61 20 2d | 20 73 65 65 20 6e 6f 74 |d..n/a -| see not|
|000035f0| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e | |
|00003600| 20 20 20 24 20 63 64 0a | 09 6e 2f 61 20 2d 20 73 | $ cd.|.n/a - s|
|00003610| 65 65 20 6e 6f 74 65 20 | 20 20 20 20 20 20 20 20 |ee note | |
|00003620| 20 20 20 20 20 20 20 20 | 20 24 20 63 64 20 7e 0a | | $ cd ~.|
|00003630| 09 6e 2f 61 20 2d 20 73 | 65 65 20 6e 6f 74 65 20 |.n/a - s|ee note |
|00003640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003650| 20 24 20 63 64 20 7e 2f | 74 65 6d 70 0a 43 3a 5c | $ cd ~/|temp.C:\|
|00003660| 47 55 49 44 4f 3e 63 64 | 20 5c 6f 74 68 65 72 20 |GUIDO>cd| \other |
|00003670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003680| 20 20 20 20 20 24 20 63 | 64 20 2f 6f 74 68 65 72 | $ c|d /other|
|00003690| 0a 43 3a 5c 47 55 49 44 | 4f 3e 63 64 20 2e 2e 5c |.C:\GUID|O>cd ..\|
|000036a0| 74 65 6d 70 5c 74 72 61 | 73 68 20 20 20 20 20 20 |temp\tra|sh |
|000036b0| 20 20 20 20 20 20 20 20 | 20 24 20 63 64 20 2e 2e | | $ cd ..|
|000036c0| 2f 74 65 6d 70 2f 74 72 | 61 73 68 0a 43 3a 5c 47 |/temp/tr|ash.C:\G|
|000036d0| 55 49 44 4f 3e 6d 64 20 | 6e 65 77 70 72 6f 67 73 |UIDO>md |newprogs|
|000036e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000036f0| 20 20 20 20 24 20 6d 6b | 64 69 72 20 6e 65 77 70 | $ mk|dir newp|
|00003700| 72 6f 67 73 0a 43 3a 5c | 47 55 49 44 4f 3e 6d 64 |rogs.C:\|GUIDO>md|
|00003710| 20 5c 70 72 6f 67 73 5c | 74 75 72 62 6f 20 20 20 | \progs\|turbo |
|00003720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 24 20 6d | | $ m|
|00003730| 6b 64 69 72 20 2f 70 72 | 6f 67 73 2f 74 75 72 62 |kdir /pr|ogs/turb|
|00003740| 6f 0a 43 3a 5c 47 55 49 | 44 4f 3e 72 64 20 6e 65 |o.C:\GUI|DO>rd ne|
|00003750| 77 70 72 6f 67 73 20 20 | 20 20 20 20 20 20 20 20 |wprogs | |
|00003760| 20 20 20 20 20 20 20 20 | 20 20 24 20 72 6d 64 69 | | $ rmdi|
|00003770| 72 20 6e 65 77 70 72 6f | 67 73 0a 43 3a 5c 47 55 |r newpro|gs.C:\GU|
|00003780| 49 44 4f 3e 72 64 20 5c | 70 72 6f 67 73 5c 74 75 |IDO>rd \|progs\tu|
|00003790| 72 62 6f 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |rbo | |
|000037a0| 20 20 20 24 20 72 6d 64 | 69 72 20 2f 70 72 6f 67 | $ rmd|ir /prog|
|000037b0| 73 2f 74 75 72 62 6f 0a | 0a 4e 6f 74 65 3a 20 74 |s/turbo.|.Note: t|
|000037c0| 68 65 20 63 68 61 72 61 | 63 74 65 72 20 7e 20 69 |he chara|cter ~ i|
|000037d0| 73 20 61 20 73 68 6f 72 | 74 63 75 74 20 66 6f 72 |s a shor|tcut for|
|000037e0| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 79 6f 75 | the nam|e of you|
|000037f0| 72 20 68 6f 6d 65 20 64 | 69 72 65 63 74 6f 72 79 |r home d|irectory|
|00003800| 2e 20 0a 54 68 65 20 63 | 6f 6d 6d 61 6e 64 73 20 |. .The c|ommands |
|00003810| 63 64 20 6f 72 20 63 64 | 20 7e 20 77 69 6c 6c 20 |cd or cd| ~ will |
|00003820| 74 61 6b 65 20 79 6f 75 | 20 74 6f 20 79 6f 75 72 |take you| to your|
|00003830| 20 68 6f 6d 65 20 64 69 | 72 65 63 74 6f 72 79 20 | home di|rectory |
|00003840| 66 72 6f 6d 20 77 68 65 | 72 65 76 65 72 20 0a 79 |from whe|rever .y|
|00003850| 6f 75 20 61 72 65 3b 20 | 74 68 65 20 63 6f 6d 6d |ou are; |the comm|
|00003860| 61 6e 64 20 63 64 20 7e | 2f 74 6d 70 20 77 69 6c |and cd ~|/tmp wil|
|00003870| 6c 20 74 61 6b 65 20 79 | 6f 75 20 74 6f 20 2f 68 |l take y|ou to /h|
|00003880| 6f 6d 65 2f 79 6f 75 72 | 5f 68 6f 6d 65 2f 74 6d |ome/your|_home/tm|
|00003890| 70 2e 20 47 6f 74 20 0a | 74 68 65 20 68 61 6e 67 |p. Got .|the hang|
|000038a0| 20 6f 66 20 69 74 3f 0a | 0a 0a 53 65 63 74 69 6f | of it?.|..Sectio|
|000038b0| 6e 20 33 3a 20 46 6c 6f | 70 70 69 65 73 2c 20 48 |n 3: Flo|ppies, H|
|000038c0| 61 72 64 20 44 69 73 6b | 73 2c 20 61 6e 64 20 74 |ard Disk|s, and t|
|000038d0| 68 65 20 4c 69 6b 65 0a | 0a 33 2e 31 2e 20 55 73 |he Like.|.3.1. Us|
|000038e0| 69 6e 67 20 61 20 66 6c | 6f 70 70 79 20 64 69 73 |ing a fl|oppy dis|
|000038f0| 6b 0a 0a 59 6f 75 20 68 | 61 76 65 20 6e 65 76 65 |k..You h|ave neve|
|00003900| 72 20 74 68 6f 75 67 68 | 74 20 61 62 6f 75 74 20 |r though|t about |
|00003910| 69 74 2c 20 62 75 74 20 | 74 68 65 20 44 4f 53 20 |it, but |the DOS |
|00003920| 63 6f 6d 6d 61 6e 64 20 | 46 4f 52 4d 41 54 20 41 |command |FORMAT A|
|00003930| 3a 20 64 6f 65 73 20 61 | 20 6c 6f 74 20 0a 6d 6f |: does a| lot .mo|
|00003940| 72 65 20 77 6f 72 6b 20 | 74 68 61 6e 20 69 74 20 |re work |than it |
|00003950| 73 65 65 6d 73 2e 20 49 | 6e 20 66 61 63 74 2c 20 |seems. I|n fact, |
|00003960| 77 68 65 6e 20 79 6f 75 | 20 69 73 73 75 65 20 74 |when you| issue t|
|00003970| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 46 4f 52 4d 41 |he comma|nd FORMA|
|00003980| 54 20 69 74 20 0a 77 69 | 6c 6c 3a 0a 31 29 20 70 |T it .wi|ll:.1) p|
|00003990| 68 79 73 69 63 61 6c 6c | 79 20 66 6f 72 6d 61 74 |hysicall|y format|
|000039a0| 20 74 68 65 20 64 69 73 | 6b 3b 0a 32 29 20 63 72 | the dis|k;.2) cr|
|000039b0| 65 61 74 65 20 74 68 65 | 20 41 3a 5c 20 64 69 72 |eate the| A:\ dir|
|000039c0| 65 63 74 6f 72 79 20 28 | 3d 20 63 72 65 61 74 65 |ectory (|= create|
|000039d0| 20 61 20 66 69 6c 65 73 | 79 73 74 65 6d 29 3b 0a | a files|ystem);.|
|000039e0| 33 29 20 6d 61 6b 65 20 | 74 68 65 20 64 69 73 6b |3) make |the disk|
|000039f0| 20 61 76 61 69 6c 61 62 | 6c 65 20 74 6f 20 74 68 | availab|le to th|
|00003a00| 65 20 75 73 65 72 20 28 | 3d 20 6d 6f 75 6e 74 20 |e user (|= mount |
|00003a10| 74 68 65 20 64 69 73 6b | 29 2e 0a 0a 54 68 65 73 |the disk|)...Thes|
|00003a20| 65 20 74 68 72 65 65 20 | 73 74 65 70 73 20 61 72 |e three |steps ar|
|00003a30| 65 20 61 64 64 72 65 73 | 73 65 64 20 73 65 70 61 |e addres|sed sepa|
|00003a40| 72 61 74 65 6c 79 20 75 | 6e 64 65 72 20 4c 69 6e |rately u|nder Lin|
|00003a50| 75 78 2e 20 49 74 20 69 | 73 20 70 6f 73 73 69 62 |ux. It i|s possib|
|00003a60| 6c 65 20 74 6f 20 0a 70 | 72 65 70 61 72 65 20 61 |le to .p|repare a|
|00003a70| 6e 64 20 75 73 65 20 66 | 6c 6f 70 70 69 65 73 20 |nd use f|loppies |
|00003a80| 69 6e 20 4d 53 2d 44 4f | 53 20 66 6f 72 6d 61 74 |in MS-DO|S format|
|00003a90| 2c 20 74 68 6f 75 67 68 | 20 6f 74 68 65 72 20 66 |, though| other f|
|00003aa0| 6f 72 6d 61 74 73 20 61 | 72 65 20 0a 61 76 61 69 |ormats a|re .avai|
|00003ab0| 6c 61 62 6c 65 3b 20 74 | 68 65 20 6d 6f 73 74 20 |lable; t|he most |
|00003ac0| 63 6f 6d 6d 6f 6e 20 69 | 73 20 70 65 72 68 61 70 |common i|s perhap|
|00003ad0| 73 20 65 78 74 32 2e 20 | 48 65 72 65 20 69 73 20 |s ext2. |Here is |
|00003ae0| 68 6f 77 20 74 6f 20 70 | 72 65 70 61 72 65 20 61 |how to p|repare a|
|00003af0| 20 64 69 73 6b 20 0a 28 | 79 6f 75 27 6c 6c 20 6e | disk .(|you'll n|
|00003b00| 65 65 64 20 74 6f 20 73 | 74 61 72 74 20 61 20 73 |eed to s|tart a s|
|00003b10| 65 73 73 69 6f 6e 20 61 | 73 20 72 6f 6f 74 29 3a |ession a|s root):|
|00003b20| 0a 0a 2d 20 54 6f 20 66 | 6f 72 6d 61 74 20 61 20 |..- To f|ormat a |
|00003b30| 73 74 61 6e 64 61 72 64 | 20 31 2c 34 34 20 4d 65 |standard| 1,44 Me|
|00003b40| 67 20 66 6c 6f 70 70 79 | 20 64 69 73 6b 20 28 41 |g floppy| disk (A|
|00003b50| 3a 29 3a 0a 09 23 20 66 | 64 66 6f 72 6d 61 74 20 |:):..# f|dformat |
|00003b60| 2f 64 65 76 2f 66 64 30 | 48 31 34 34 30 0a 2d 20 |/dev/fd0|H1440.- |
|00003b70| 54 6f 20 63 72 65 61 74 | 65 20 61 20 66 69 6c 65 |To creat|e a file|
|00003b80| 73 79 73 74 65 6d 3a 0a | 09 23 20 6d 6b 66 73 20 |system:.|.# mkfs |
|00003b90| 2d 74 20 65 78 74 32 20 | 2d 63 20 2f 64 65 76 2f |-t ext2 |-c /dev/|
|00003ba0| 66 64 30 48 31 34 34 30 | 0a 6f 72 0a 09 23 20 6d |fd0H1440|.or..# m|
|00003bb0| 66 6f 72 6d 61 74 20 61 | 3a 0a 74 6f 20 63 72 65 |format a|:.to cre|
|00003bc0| 61 74 65 20 61 6e 20 4d | 53 2d 44 4f 53 20 66 69 |ate an M|S-DOS fi|
|00003bd0| 6c 65 73 79 73 74 65 6d | 2e 0a 0a 42 65 6f 72 65 |lesystem|...Beore|
|00003be0| 20 75 73 69 6e 67 20 74 | 68 65 20 64 69 73 6b 2c | using t|he disk,|
|00003bf0| 20 79 6f 75 20 6d 75 73 | 74 20 6d 6f 75 6e 74 20 | you mus|t mount |
|00003c00| 69 74 2e 0a 2d 20 54 6f | 20 6d 6f 75 6e 74 20 74 |it..- To| mount t|
|00003c10| 68 65 20 64 69 73 6b 3a | 0a 09 23 20 6d 6f 75 6e |he disk:|..# moun|
|00003c20| 74 20 2d 74 20 65 78 74 | 32 20 2f 64 65 76 2f 66 |t -t ext|2 /dev/f|
|00003c30| 64 30 20 2f 6d 6e 74 0a | 6f 72 0a 09 23 20 6d 6f |d0 /mnt.|or..# mo|
|00003c40| 75 6e 74 20 2d 74 20 6d | 73 64 6f 73 20 2f 64 65 |unt -t m|sdos /de|
|00003c50| 76 2f 66 64 30 20 2f 6d | 6e 74 0a 0a 4e 6f 77 20 |v/fd0 /m|nt..Now |
|00003c60| 79 6f 75 20 63 61 6e 20 | 61 64 64 72 65 73 73 20 |you can |address |
|00003c70| 74 68 65 20 66 69 6c 65 | 73 20 69 6e 20 74 68 65 |the file|s in the|
|00003c80| 20 66 6c 6f 70 70 79 2e | 20 57 68 65 6e 20 79 6f | floppy.| When yo|
|00003c90| 75 27 76 65 20 66 69 6e | 69 73 68 65 64 2c 20 62 |u've fin|ished, b|
|00003ca0| 65 66 6f 72 65 20 0a 65 | 78 74 72 61 63 74 69 6e |efore .e|xtractin|
|00003cb0| 67 20 74 68 65 20 64 69 | 73 6b 20 79 6f 75 20 6d |g the di|sk you m|
|00003cc0| 75 73 74 20 75 6e 6d 6f | 75 6e 74 20 69 74 2e 20 |ust unmo|unt it. |
|00003cd0| 28 2a 76 65 72 79 20 69 | 6d 70 6f 72 74 61 6e 74 |(*very i|mportant|
|00003ce0| 21 2a 29 0a 2d 20 54 6f | 20 75 6e 6d 6f 75 6e 74 |!*).- To| unmount|
|00003cf0| 20 74 68 65 20 64 69 73 | 6b 3a 0a 09 23 20 75 6d | the dis|k:..# um|
|00003d00| 6f 75 6e 74 20 2f 6d 6e | 74 0a 4e 6f 77 20 79 6f |ount /mn|t.Now yo|
|00003d10| 75 20 63 61 6e 20 65 78 | 74 72 61 63 74 20 74 68 |u can ex|tract th|
|00003d20| 65 20 64 69 73 6b 2e 20 | 4f 62 76 69 6f 75 73 6c |e disk. |Obviousl|
|00003d30| 79 2c 20 79 6f 75 20 68 | 61 76 65 20 74 6f 20 66 |y, you h|ave to f|
|00003d40| 64 66 6f 72 6d 61 74 20 | 61 6e 64 20 6d 6b 66 73 |dformat |and mkfs|
|00003d50| 20 6f 6e 6c 79 20 0a 75 | 6e 66 6f 72 6d 61 74 74 | only .u|nformatt|
|00003d60| 65 64 20 64 69 73 6b 73 | 2c 20 6e 6f 74 20 70 72 |ed disks|, not pr|
|00003d70| 65 76 69 6f 75 73 6c 79 | 20 75 73 65 64 20 6f 6e |eviously| used on|
|00003d80| 65 73 2e 20 49 66 20 79 | 6f 75 20 77 61 6e 74 20 |es. If y|ou want |
|00003d90| 74 6f 20 75 73 65 20 64 | 72 69 76 65 20 42 3a 2c |to use d|rive B:,|
|00003da0| 20 0a 72 65 66 65 72 20 | 74 6f 20 66 64 31 48 31 | .refer |to fd1H1|
|00003db0| 34 34 30 20 61 6e 64 20 | 66 64 31 20 69 6e 73 74 |440 and |fd1 inst|
|00003dc0| 65 61 64 20 6f 66 20 66 | 64 30 48 31 34 34 30 20 |ead of f|d0H1440 |
|00003dd0| 61 6e 64 20 66 64 30 20 | 69 6e 20 74 68 65 20 65 |and fd0 |in the e|
|00003de0| 78 61 6d 70 6c 65 73 20 | 0a 61 62 6f 76 65 2e 0a |xamples |.above..|
|00003df0| 0a 41 6c 6c 20 79 6f 75 | 20 75 73 65 64 20 74 6f |.All you| used to|
|00003e00| 20 64 6f 20 77 69 74 68 | 20 41 3a 20 6f 72 20 42 | do with| A: or B|
|00003e10| 3a 20 69 73 20 6e 6f 77 | 20 64 6f 6e 65 20 75 73 |: is now| done us|
|00003e20| 69 6e 67 20 2f 6d 6e 74 | 20 69 6e 73 74 65 61 64 |ing /mnt| instead|
|00003e30| 2e 20 45 78 61 6d 70 6c | 65 73 3a 0a 0a 44 4f 53 |. Exampl|es:..DOS|
|00003e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 4c 69 6e | | Lin|
|00003e60| 75 78 0a 0a 43 3a 5c 47 | 55 49 44 4f 3e 64 69 72 |ux..C:\G|UIDO>dir|
|00003e70| 20 61 3a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | a: | |
|00003e80| 20 20 20 20 24 20 6c 73 | 20 2f 6d 6e 74 0a 43 3a | $ ls| /mnt.C:|
|00003e90| 5c 47 55 49 44 4f 3e 63 | 6f 70 79 20 61 3a 2a 2e |\GUIDO>c|opy a:*.|
|00003ea0| 2a 20 5c 64 6f 63 73 5c | 74 65 6d 70 20 20 24 20 |* \docs\|temp $ |
|00003eb0| 63 70 20 2f 6d 6e 74 2f | 2a 20 2f 64 6f 63 73 2f |cp /mnt/|* /docs/|
|00003ec0| 74 65 6d 70 0a 43 3a 5c | 47 55 49 44 4f 3e 63 6f |temp.C:\|GUIDO>co|
|00003ed0| 70 79 20 2a 2e 7a 69 70 | 20 61 3a 5c 7a 69 70 20 |py *.zip| a:\zip |
|00003ee0| 20 20 20 20 20 24 20 63 | 70 20 2a 2e 7a 69 70 20 | $ c|p *.zip |
|00003ef0| 2f 6d 6e 74 2f 7a 69 70 | 0a 43 3a 5c 47 55 49 44 |/mnt/zip|.C:\GUID|
|00003f00| 4f 3e 61 3a 20 20 20 20 | 20 20 20 20 20 20 20 20 |O>a: | |
|00003f10| 20 20 20 20 20 20 20 20 | 20 24 20 63 64 20 2f 6d | | $ cd /m|
|00003f20| 6e 74 0a 41 3a 5c 3e 20 | 20 20 20 20 20 20 20 20 |nt.A:\> | |
|00003f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f40| 20 20 20 2f 6d 6e 74 24 | 0a 0a 4e 65 65 64 6c 65 | /mnt$|..Needle|
|00003f50| 73 73 20 74 6f 20 73 61 | 79 2c 20 77 68 61 74 20 |ss to sa|y, what |
|00003f60| 68 6f 6c 64 73 20 66 6f | 72 20 66 6c 6f 70 70 69 |holds fo|r floppi|
|00003f70| 65 73 20 68 6f 6c 64 73 | 20 66 6f 72 20 77 68 61 |es holds| for wha|
|00003f80| 74 65 76 65 72 20 64 65 | 76 69 63 65 20 79 6f 75 |tever de|vice you|
|00003f90| 20 63 61 6e 20 0a 74 68 | 69 6e 6b 20 6f 66 3b 20 | can .th|ink of; |
|00003fa0| 66 6f 72 20 69 6e 73 74 | 61 6e 63 65 2c 20 79 6f |for inst|ance, yo|
|00003fb0| 75 20 6d 61 79 20 77 61 | 6e 74 20 74 6f 20 6d 6f |u may wa|nt to mo|
|00003fc0| 75 6e 74 20 61 6e 6f 74 | 68 65 72 20 68 61 72 64 |unt anot|her hard|
|00003fd0| 20 64 69 73 6b 20 6f 72 | 20 61 20 43 44 2d 52 4f | disk or| a CD-RO|
|00003fe0| 4d 20 0a 64 72 69 76 65 | 2e 20 48 61 76 65 20 61 |M .drive|. Have a|
|00003ff0| 20 6c 6f 6f 6b 20 61 74 | 20 74 68 65 20 6c 69 73 | look at| the lis|
|00004000| 74 20 6f 66 20 64 65 76 | 69 63 65 73 20 69 6e 20 |t of dev|ices in |
|00004010| 64 69 72 65 63 74 6f 72 | 79 20 2f 64 65 76 2e 20 |director|y /dev. |
|00004020| 48 65 72 65 27 73 20 68 | 6f 77 20 74 6f 20 0a 6d |Here's h|ow to .m|
|00004030| 6f 75 6e 74 20 74 68 65 | 20 43 44 2d 52 4f 4d 3a |ount the| CD-ROM:|
|00004040| 0a 09 23 20 6d 6f 75 6e | 74 20 2d 74 20 69 73 6f |..# moun|t -t iso|
|00004050| 39 36 36 30 20 2f 64 65 | 76 2f 63 64 72 6f 6d 20 |9660 /de|v/cdrom |
|00004060| 2f 63 64 72 6f 6d 0a 0a | 0a 53 65 63 74 69 6f 6e |/cdrom..|.Section|
|00004070| 20 34 3a 20 54 61 79 6c | 6f 72 69 6e 67 20 74 68 | 4: Tayl|oring th|
|00004080| 65 20 53 79 73 74 65 6d | 0a 0a 34 2e 31 2e 20 53 |e System|..4.1. S|
|00004090| 79 73 74 65 6d 20 49 6e | 69 74 69 61 6c 69 7a 61 |ystem In|itializa|
|000040a0| 74 69 6f 6e 20 46 69 6c | 65 73 0a 0a 54 77 6f 20 |tion Fil|es..Two |
|000040b0| 69 6d 70 6f 72 74 61 6e | 74 20 66 69 6c 65 73 20 |importan|t files |
|000040c0| 75 6e 64 65 72 20 44 4f | 53 20 61 72 65 20 41 55 |under DO|S are AU|
|000040d0| 54 4f 45 58 45 43 2e 42 | 41 54 20 61 6e 64 20 43 |TOEXEC.B|AT and C|
|000040e0| 4f 4e 46 49 47 2e 53 59 | 53 2c 20 77 68 69 63 68 |ONFIG.SY|S, which|
|000040f0| 20 61 72 65 20 0a 75 73 | 65 64 20 61 74 20 62 6f | are .us|ed at bo|
|00004100| 6f 74 20 74 69 6d 65 20 | 74 6f 20 69 6e 69 74 69 |ot time |to initi|
|00004110| 61 6c 69 73 65 20 74 68 | 65 20 73 79 73 74 65 6d |alise th|e system|
|00004120| 2c 20 73 65 74 20 73 6f | 6d 65 20 65 6e 76 69 72 |, set so|me envir|
|00004130| 6f 6e 6d 65 6e 74 20 76 | 61 72 69 61 62 6c 65 73 |onment v|ariables|
|00004140| 20 0a 6c 69 6b 65 20 50 | 41 54 48 20 61 6e 64 20 | .like P|ATH and |
|00004150| 46 49 4c 45 53 2c 20 61 | 6e 64 20 70 6f 73 73 69 |FILES, a|nd possi|
|00004160| 62 6c 79 20 6c 61 75 6e | 63 68 20 61 20 70 72 6f |bly laun|ch a pro|
|00004170| 67 72 61 6d 20 6f 72 20 | 62 61 74 63 68 20 66 69 |gram or |batch fi|
|00004180| 6c 65 2e 0a 0a 55 6e 64 | 65 72 20 4c 69 6e 75 78 |le...Und|er Linux|
|00004190| 20 74 68 65 72 65 20 61 | 72 65 20 73 65 76 65 72 | there a|re sever|
|000041a0| 61 6c 20 69 6e 69 74 69 | 61 6c 69 73 61 74 69 6f |al initi|alisatio|
|000041b0| 6e 20 66 69 6c 65 73 2c | 20 73 6f 6d 65 20 6f 66 |n files,| some of|
|000041c0| 20 77 68 69 63 68 20 79 | 6f 75 20 68 61 64 20 0a | which y|ou had .|
|000041d0| 62 65 74 74 65 72 20 6e | 6f 74 20 74 61 6d 70 65 |better n|ot tampe|
|000041e0| 72 20 77 69 74 68 20 75 | 6e 74 69 6c 20 79 6f 75 |r with u|ntil you|
|000041f0| 20 6b 6e 6f 77 20 65 78 | 61 63 74 6c 79 20 77 68 | know ex|actly wh|
|00004200| 61 74 20 79 6f 75 20 61 | 72 65 20 64 6f 69 6e 67 |at you a|re doing|
|00004210| 2e 20 49 27 6c 6c 20 74 | 65 6c 6c 20 0a 79 6f 75 |. I'll t|ell .you|
|00004220| 20 77 68 61 74 20 74 68 | 65 20 6d 6f 73 74 20 69 | what th|e most i|
|00004230| 6d 70 6f 72 74 61 6e 74 | 20 61 72 65 2c 20 61 6e |mportant| are, an|
|00004240| 79 77 61 79 3a 0a 0a 46 | 49 4c 45 53 20 20 20 20 |yway:..F|ILES |
|00004250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004260| 20 20 20 20 20 20 20 4e | 4f 54 45 53 0a 0a 2f 65 | N|OTES../e|
|00004270| 74 63 2f 69 6e 69 74 74 | 61 62 20 20 20 20 20 20 |tc/initt|ab |
|00004280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 64 6f | | do|
|00004290| 6e 27 74 20 74 6f 75 63 | 68 20 66 6f 72 20 6e 6f |n't touc|h for no|
|000042a0| 77 21 0a 2f 65 74 63 2f | 72 63 2e 64 2f 2a 20 20 |w!./etc/|rc.d/* |
|000042b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000042c0| 20 20 20 64 69 74 74 6f | 0a 0a 49 66 20 61 6c 6c | ditto|..If all|
|000042d0| 20 79 6f 75 20 6e 65 65 | 64 20 69 73 20 73 65 74 | you nee|d is set|
|000042e0| 74 69 6e 67 20 74 68 65 | 20 50 41 54 48 20 61 6e |ting the| PATH an|
|000042f0| 64 20 6f 74 68 65 72 20 | 65 6e 76 69 72 6f 6e 6d |d other |environm|
|00004300| 65 6e 74 20 76 61 72 69 | 61 62 6c 65 73 2c 20 6f |ent vari|ables, o|
|00004310| 72 20 79 6f 75 20 0a 77 | 61 6e 74 20 74 6f 20 63 |r you .w|ant to c|
|00004320| 68 61 6e 67 65 20 74 68 | 65 20 6c 6f 67 69 6e 20 |hange th|e login |
|00004330| 6d 65 73 73 61 67 65 73 | 20 6f 72 20 61 75 74 6f |messages| or auto|
|00004340| 6d 61 74 69 63 61 6c 6c | 79 20 6c 61 75 6e 63 68 |maticall|y launch|
|00004350| 20 61 20 70 72 6f 67 72 | 61 6d 20 61 66 74 65 72 | a progr|am after|
|00004360| 20 0a 74 68 65 20 6c 6f | 67 69 6e 2c 20 68 61 76 | .the lo|gin, hav|
|00004370| 65 20 61 20 6c 6f 6f 6b | 20 61 74 20 74 68 65 20 |e a look| at the |
|00004380| 66 6f 6c 6c 6f 77 69 6e | 67 20 66 69 6c 65 73 3a |followin|g files:|
|00004390| 0a 0a 46 49 4c 45 53 20 | 20 20 20 20 20 20 20 20 |..FILES | |
|000043a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000043b0| 20 20 4e 4f 54 45 53 0a | 0a 2f 65 74 63 2f 69 73 | NOTES.|./etc/is|
|000043c0| 73 75 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |sue | |
|000043d0| 20 20 20 20 20 20 20 20 | 20 73 65 74 73 20 70 72 | | sets pr|
|000043e0| 65 2d 6c 6f 67 69 6e 20 | 6d 65 73 73 61 67 65 0a |e-login |message.|
|000043f0| 2f 65 74 63 2f 6d 6f 74 | 64 20 20 20 20 20 20 20 |/etc/mot|d |
|00004400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004410| 73 65 74 73 20 70 6f 73 | 74 2d 6c 6f 67 69 6e 20 |sets pos|t-login |
|00004420| 6d 65 73 73 61 67 65 0a | 2f 65 74 63 2f 70 72 6f |message.|/etc/pro|
|00004430| 66 69 6c 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |file | |
|00004440| 20 20 20 20 20 20 20 20 | 73 65 74 73 20 50 41 54 | |sets PAT|
|00004450| 48 20 61 6e 64 20 6f 74 | 68 65 72 20 76 61 72 69 |H and ot|her vari|
|00004460| 61 62 6c 65 73 2c 20 65 | 74 63 2e 0a 2f 68 6f 6d |ables, e|tc../hom|
|00004470| 65 2f 79 6f 75 72 5f 68 | 6f 6d 65 2f 2e 70 72 6f |e/your_h|ome/.pro|
|00004480| 66 69 6c 65 20 20 20 20 | 20 20 20 20 64 6f 65 73 |file | does|
|00004490| 20 77 68 61 74 65 76 65 | 72 20 79 6f 75 20 77 61 | whateve|r you wa|
|000044a0| 6e 74 0a 0a 49 66 20 74 | 68 65 20 6c 61 74 74 65 |nt..If t|he latte|
|000044b0| 72 20 66 69 6c 65 20 65 | 78 69 73 74 73 20 28 6e |r file e|xists (n|
|000044c0| 6f 74 65 20 74 68 61 74 | 20 69 74 20 69 73 20 61 |ote that| it is a|
|000044d0| 20 68 69 64 64 65 6e 20 | 66 69 6c 65 29 2c 20 69 | hidden |file), i|
|000044e0| 74 20 77 69 6c 6c 20 62 | 65 20 72 65 61 64 20 0a |t will b|e read .|
|000044f0| 61 66 74 65 72 20 74 68 | 65 20 6c 6f 67 69 6e 20 |after th|e login |
|00004500| 61 6e 64 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 73 |and the |commands|
|00004510| 20 69 6e 20 69 74 20 77 | 69 6c 6c 20 62 65 20 65 | in it w|ill be e|
|00004520| 78 65 63 75 74 65 64 2e | 0a 0a 45 78 61 6d 70 6c |xecuted.|..Exampl|
|00004530| 65 20 2d 20 6c 6f 6f 6b | 20 61 74 20 74 68 69 73 |e - look| at this|
|00004540| 20 2e 70 72 6f 66 69 6c | 65 3a 0a 0a 09 23 20 49 | .profil|e:...# I|
|00004550| 20 61 6d 20 61 20 63 6f | 6d 6d 65 6e 74 0a 09 65 | am a co|mment..e|
|00004560| 63 68 6f 20 45 6e 76 69 | 72 6f 6e 6d 65 6e 74 3a |cho Envi|ronment:|
|00004570| 0a 09 70 72 69 6e 74 65 | 6e 76 20 7c 20 6d 6f 72 |..printe|nv | mor|
|00004580| 65 20 20 20 23 20 65 71 | 75 69 76 61 6c 65 6e 74 |e # eq|uivalent|
|00004590| 20 6f 66 20 63 6f 6d 6d | 61 6e 64 20 53 45 54 20 | of comm|and SET |
|000045a0| 75 6e 64 65 72 20 44 4f | 53 0a 09 61 6c 69 61 73 |under DO|S..alias|
|000045b0| 20 64 3d 27 6c 73 20 2d | 6c 27 20 20 20 23 20 65 | d='ls -|l' # e|
|000045c0| 61 73 79 20 74 6f 20 75 | 6e 64 65 72 73 74 61 6e |asy to u|nderstan|
|000045d0| 64 20 77 68 61 74 20 61 | 6e 20 61 6c 69 61 73 20 |d what a|n alias |
|000045e0| 69 73 0a 09 61 6c 69 61 | 73 20 75 70 3d 27 63 64 |is..alia|s up='cd|
|000045f0| 20 2e 2e 27 0a 09 65 63 | 68 6f 20 22 49 20 72 65 | ..'..ec|ho "I re|
|00004600| 6d 69 6e 64 20 79 6f 75 | 20 74 68 61 74 20 74 68 |mind you| that th|
|00004610| 65 20 70 61 74 68 20 69 | 73 20 22 24 50 41 54 48 |e path i|s "$PATH|
|00004620| 0a 09 65 63 68 6f 20 22 | 48 61 76 65 20 61 20 67 |..echo "|Have a g|
|00004630| 6f 6f 64 20 64 61 79 2c | 20 22 24 4c 4f 47 4e 41 |ood day,| "$LOGNA|
|00004640| 4d 45 0a 0a 50 41 54 48 | 20 61 6e 64 20 4c 4f 47 |ME..PATH| and LOG|
|00004650| 4e 41 4d 45 2c 20 79 6f | 75 20 67 75 65 73 73 65 |NAME, yo|u guesse|
|00004660| 64 20 72 69 67 68 74 2c | 20 61 72 65 20 65 6e 76 |d right,| are env|
|00004670| 69 72 6f 6e 6d 65 6e 74 | 20 76 61 72 69 61 62 6c |ironment| variabl|
|00004680| 65 73 2e 0a 0a 34 2e 32 | 2e 20 50 72 6f 67 72 61 |es...4.2|. Progra|
|00004690| 6d 20 49 6e 69 74 69 61 | 6c 69 7a 61 74 69 6f 6e |m Initia|lization|
|000046a0| 20 46 69 6c 65 73 0a 0a | 55 6e 64 65 72 20 4c 69 | Files..|Under Li|
|000046b0| 6e 75 78 2c 20 76 69 72 | 74 75 61 6c 6c 79 20 65 |nux, vir|tually e|
|000046c0| 76 65 72 79 74 68 69 6e | 67 20 63 61 6e 20 62 65 |verythin|g can be|
|000046d0| 20 74 61 69 6c 6f 72 65 | 64 20 74 6f 20 79 6f 75 | tailore|d to you|
|000046e0| 72 20 6e 65 65 64 73 2e | 20 4d 6f 73 74 20 0a 70 |r needs.| Most .p|
|000046f0| 72 6f 67 72 61 6d 73 20 | 68 61 76 65 20 6f 6e 65 |rograms |have one|
|00004700| 20 6f 72 20 6d 6f 72 65 | 20 69 6e 69 74 69 61 6c | or more| initial|
|00004710| 69 7a 61 74 69 6f 6e 20 | 66 69 6c 65 73 20 79 6f |ization |files yo|
|00004720| 75 20 63 61 6e 20 66 69 | 64 64 6c 65 20 77 69 74 |u can fi|ddle wit|
|00004730| 68 2c 20 6f 66 74 65 6e | 20 0a 61 73 20 61 20 2e |h, often| .as a .|
|00004740| 70 72 6f 67 6e 61 6d 65 | 72 63 20 69 6e 20 79 6f |progname|rc in yo|
|00004750| 75 72 20 68 6f 6d 65 20 | 64 69 72 2e 20 54 68 65 |ur home |dir. The|
|00004760| 20 66 69 72 73 74 20 6f | 6e 65 73 20 79 6f 75 27 | first o|nes you'|
|00004770| 6c 6c 20 77 61 6e 74 20 | 74 6f 20 6d 6f 64 69 66 |ll want |to modif|
|00004780| 79 20 0a 61 72 65 3a 0a | 0a 2e 78 69 6e 69 74 72 |y .are:.|..xinitr|
|00004790| 63 3a 20 75 73 65 64 20 | 62 79 20 73 74 61 72 74 |c: used |by start|
|000047a0| 78 20 74 6f 20 69 6e 69 | 74 69 61 6c 69 7a 65 20 |x to ini|tialize |
|000047b0| 58 20 57 69 6e 64 6f 77 | 20 53 79 73 74 65 6d 2e |X Window| System.|
|000047c0| 0a 2e 66 76 77 6d 72 63 | 3a 20 75 73 65 64 20 62 |..fvwmrc|: used b|
|000047d0| 79 20 74 68 65 20 77 69 | 6e 64 6f 77 20 6d 61 6e |y the wi|ndow man|
|000047e0| 61 67 65 72 20 66 76 77 | 6d 2e 20 41 20 73 61 6d |ager fvw|m. A sam|
|000047f0| 70 6c 65 20 63 61 6e 20 | 62 65 20 66 6f 75 6e 64 |ple can |be found|
|00004800| 20 69 6e 3a 0a 2f 75 73 | 72 2f 6c 69 62 2f 58 31 | in:./us|r/lib/X1|
|00004810| 31 2f 66 76 77 6d 2f 73 | 79 73 74 65 6d 2e 66 76 |1/fvwm/s|ystem.fv|
|00004820| 77 6d 72 63 0a 2e 78 66 | 6d 2f 2a 3a 20 75 73 65 |wmrc..xf|m/*: use|
|00004830| 64 20 62 79 20 78 66 6d | 2c 20 61 20 66 69 6c 65 |d by xfm|, a file|
|00004840| 20 6d 61 6e 61 67 65 72 | 20 66 6f 72 20 58 2e 0a | manager| for X..|
|00004850| 2e 58 64 65 66 61 75 6c | 74 3a 20 75 73 65 64 20 |.Xdefaul|t: used |
|00004860| 62 79 20 72 78 76 74 2c | 20 61 20 74 65 72 6d 69 |by rxvt,| a termi|
|00004870| 6e 61 6c 20 65 6d 75 6c | 61 74 6f 72 20 66 6f 72 |nal emul|ator for|
|00004880| 20 58 2e 0a 0a 46 6f 72 | 20 61 6c 6c 20 6f 66 20 | X...For| all of |
|00004890| 74 68 65 73 65 20 61 6e | 64 20 74 68 65 20 6f 74 |these an|d the ot|
|000048a0| 68 65 72 73 20 79 6f 75 | 27 6c 6c 20 63 6f 6d 65 |hers you|'ll come|
|000048b0| 20 61 63 72 6f 73 73 20 | 73 6f 6f 6e 65 72 20 6f | across |sooner o|
|000048c0| 72 20 6c 61 74 65 72 2c | 20 52 4d 50 2e 0a 0a 0a |r later,| RMP....|
|000048d0| 53 65 63 74 69 6f 6e 20 | 35 3a 20 41 20 42 69 74 |Section |5: A Bit|
|000048e0| 20 6f 66 20 50 72 6f 67 | 72 61 6d 6d 69 6e 67 0a | of Prog|ramming.|
|000048f0| 0a 35 2e 31 2e 20 57 72 | 69 74 69 6e 67 20 53 63 |.5.1. Wr|iting Sc|
|00004900| 72 69 70 74 73 3a 20 2e | 42 41 54 20 46 69 6c 65 |ripts: .|BAT File|
|00004910| 73 20 6f 6e 20 53 74 65 | 72 6f 69 64 73 0a 0a 49 |s on Ste|roids..I|
|00004920| 66 20 79 6f 75 20 75 73 | 65 64 20 2e 42 41 54 20 |f you us|ed .BAT |
|00004930| 66 69 6c 65 73 20 74 6f | 20 63 72 65 61 74 65 20 |files to| create |
|00004940| 73 68 6f 72 74 63 75 74 | 73 20 6f 66 20 6c 6f 6e |shortcut|s of lon|
|00004950| 67 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 73 20 |g comman|d lines |
|00004960| 28 49 20 64 69 64 20 61 | 20 0a 6c 6f 74 29 2c 20 |(I did a| .lot), |
|00004970| 74 68 69 73 20 67 6f 61 | 6c 20 63 61 6e 20 62 65 |this goa|l can be|
|00004980| 20 61 74 74 61 69 6e 65 | 64 20 62 79 20 69 6e 73 | attaine|d by ins|
|00004990| 65 72 74 69 6e 67 20 61 | 70 70 72 6f 70 72 69 61 |erting a|ppropria|
|000049a0| 74 65 20 61 6c 69 61 73 | 20 6c 69 6e 65 73 20 28 |te alias| lines (|
|000049b0| 73 65 65 20 0a 65 78 61 | 6d 70 6c 65 20 61 62 6f |see .exa|mple abo|
|000049c0| 76 65 29 20 69 6e 20 70 | 72 6f 66 69 6c 65 20 6f |ve) in p|rofile o|
|000049d0| 72 20 2e 70 72 6f 66 69 | 6c 65 2e 20 42 75 74 20 |r .profi|le. But |
|000049e0| 69 66 20 79 6f 75 72 20 | 2e 42 41 54 73 20 77 65 |if your |.BATs we|
|000049f0| 72 65 20 6d 6f 72 65 20 | 0a 63 6f 6d 70 6c 69 63 |re more |.complic|
|00004a00| 61 74 65 64 2c 20 74 68 | 65 6e 20 79 6f 75 27 6c |ated, th|en you'l|
|00004a10| 6c 20 6c 6f 76 65 20 74 | 68 65 20 73 63 72 69 70 |l love t|he scrip|
|00004a20| 74 69 6e 67 20 6c 61 6e | 67 75 61 67 65 20 6d 61 |ting lan|guage ma|
|00004a30| 64 65 20 61 76 61 69 6c | 61 62 6c 65 20 62 79 20 |de avail|able by |
|00004a40| 74 68 65 20 0a 73 68 65 | 6c 6c 3a 20 69 74 27 73 |the .she|ll: it's|
|00004a50| 20 61 73 20 70 6f 77 65 | 72 66 75 6c 20 61 73 20 | as powe|rful as |
|00004a60| 51 62 61 73 69 63 2c 20 | 69 66 20 6e 6f 74 20 6d |Qbasic, |if not m|
|00004a70| 6f 72 65 2e 20 49 74 20 | 68 61 73 20 76 61 72 69 |ore. It |has vari|
|00004a80| 61 62 6c 65 73 2c 20 0a | 73 74 72 75 63 74 75 72 |ables, .|structur|
|00004a90| 65 73 20 6c 69 6b 65 20 | 77 68 69 6c 65 2c 20 66 |es like |while, f|
|00004aa0| 6f 72 2c 20 63 61 73 65 | 2c 20 69 66 2e 2e 2e 20 |or, case|, if... |
|00004ab0| 74 68 65 6e 2e 2e 2e 20 | 65 6c 73 65 2c 20 61 6e |then... |else, an|
|00004ac0| 64 20 6c 6f 74 73 20 6f | 66 20 6f 74 68 65 72 20 |d lots o|f other |
|00004ad0| 0a 66 65 61 74 75 72 65 | 73 3a 20 69 74 20 63 61 |.feature|s: it ca|
|00004ae0| 6e 20 62 65 20 61 20 67 | 6f 6f 64 20 61 6c 74 65 |n be a g|ood alte|
|00004af0| 72 6e 61 74 69 76 65 20 | 74 6f 20 61 20 22 72 65 |rnative |to a "re|
|00004b00| 61 6c 22 20 70 72 6f 67 | 72 61 6d 6d 69 6e 67 20 |al" prog|ramming |
|00004b10| 6c 61 6e 67 75 61 67 65 | 2e 0a 0a 54 6f 20 77 72 |language|...To wr|
|00004b20| 69 74 65 20 61 20 73 63 | 72 69 70 74 20 2d 20 74 |ite a sc|ript - t|
|00004b30| 68 65 20 65 71 75 69 76 | 61 6c 65 6e 74 20 6f 66 |he equiv|alent of|
|00004b40| 20 61 20 2e 42 41 54 20 | 66 69 6c 65 20 75 6e 64 | a .BAT |file und|
|00004b50| 65 72 20 44 4f 53 20 2d | 20 61 6c 6c 20 79 6f 75 |er DOS -| all you|
|00004b60| 20 68 61 76 65 20 0a 74 | 6f 20 64 6f 20 69 73 20 | have .t|o do is |
|00004b70| 77 72 69 74 65 20 61 20 | 73 74 61 6e 64 61 72 64 |write a |standard|
|00004b80| 20 41 53 43 49 49 20 66 | 69 6c 65 20 63 6f 6e 74 | ASCII f|ile cont|
|00004b90| 61 69 6e 69 6e 67 20 74 | 68 65 20 69 6e 73 74 72 |aining t|he instr|
|00004ba0| 75 63 74 69 6f 6e 73 2c | 20 73 61 76 65 20 69 74 |uctions,| save it|
|00004bb0| 2c 20 0a 74 68 65 6e 20 | 6d 61 6b 65 20 69 74 20 |, .then |make it |
|00004bc0| 65 78 65 63 75 74 61 62 | 6c 65 20 77 69 74 68 20 |executab|le with |
|00004bd0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 0a 09 24 20 63 |the comm|and..$ c|
|00004be0| 68 67 6d 6f 64 20 75 2b | 78 20 3c 73 63 72 69 70 |hgmod u+|x <scrip|
|00004bf0| 74 66 69 6c 65 3e 0a 54 | 6f 20 65 78 65 63 75 74 |tfile>.T|o execut|
|00004c00| 65 20 69 74 2c 20 74 79 | 70 65 20 69 6e 20 69 74 |e it, ty|pe in it|
|00004c10| 73 20 6e 61 6d 65 2e 0a | 0a 41 20 77 6f 72 64 20 |s name..|.A word |
|00004c20| 6f 66 20 77 61 72 6e 69 | 6e 67 2e 20 54 68 65 20 |of warni|ng. The |
|00004c30| 73 79 73 74 65 6d 20 65 | 64 69 74 6f 72 20 69 73 |system e|ditor is|
|00004c40| 20 63 61 6c 6c 65 64 20 | 76 69 2c 20 69 74 27 73 | called |vi, it's|
|00004c50| 20 72 61 74 68 65 72 20 | 64 69 66 66 69 63 75 6c | rather |difficul|
|00004c60| 74 20 74 6f 20 0a 75 73 | 65 2c 20 61 6e 64 20 49 |t to .us|e, and I|
|00004c70| 27 6d 20 73 75 72 65 20 | 79 6f 75 27 6c 6c 20 66 |'m sure |you'll f|
|00004c80| 69 6e 64 20 69 74 20 6c | 6f 75 73 79 2e 20 49 27 |ind it l|ousy. I'|
|00004c90| 6d 20 6e 6f 74 20 67 6f | 69 6e 67 20 74 6f 20 65 |m not go|ing to e|
|00004ca0| 78 70 6c 61 69 6e 20 68 | 6f 77 20 74 6f 20 75 73 |xplain h|ow to us|
|00004cb0| 65 20 0a 69 74 2c 20 62 | 65 63 61 75 73 65 20 49 |e .it, b|ecause I|
|00004cc0| 20 6d 79 73 65 6c 66 20 | 63 61 6e 27 74 20 66 69 | myself |can't fi|
|00004cd0| 6e 64 20 6d 79 20 77 61 | 79 20 61 72 6f 75 6e 64 |nd my wa|y around|
|00004ce0| 20 69 6e 20 69 74 20 79 | 65 74 3b 20 73 65 65 20 | in it y|et; see |
|00004cf0| 4d 61 74 74 20 57 65 6c | 73 68 27 73 20 0a 22 4c |Matt Wel|sh's ."L|
|00004d00| 69 6e 75 78 20 69 6e 73 | 74 61 6c 6c 61 74 69 6f |inux ins|tallatio|
|00004d10| 6e 2e 2e 2e 20 22 2c 20 | 70 61 67 65 20 31 30 39 |n... ", |page 109|
|00004d20| 2e 20 59 6f 75 20 68 61 | 64 20 62 65 74 74 65 72 |. You ha|d better|
|00004d30| 20 67 65 74 20 68 6f 6c | 64 20 6f 66 20 61 6e 6f | get hol|d of ano|
|00004d40| 74 68 65 72 20 0a 65 64 | 69 74 6f 72 20 6c 69 6b |ther .ed|itor lik|
|00004d50| 65 20 6a 6f 65 20 6f 72 | 20 65 6d 61 63 73 20 66 |e joe or| emacs f|
|00004d60| 6f 72 20 58 2e 20 53 75 | 66 66 69 63 65 20 69 74 |or X. Su|ffice it|
|00004d70| 20 68 65 72 65 20 74 6f | 20 73 61 79 20 74 68 61 | here to| say tha|
|00004d80| 74 3a 0a 2d 20 74 6f 20 | 69 6e 73 65 72 74 20 73 |t:.- to |insert s|
|00004d90| 6f 6d 65 20 74 65 78 74 | 2c 20 74 79 70 65 20 69 |ome text|, type i|
|00004da0| 20 74 68 65 6e 20 79 6f | 75 72 20 74 65 78 74 3b | then yo|ur text;|
|00004db0| 0a 2d 20 74 6f 20 71 75 | 69 74 20 76 69 20 77 68 |.- to qu|it vi wh|
|00004dc0| 69 74 68 6f 75 74 20 73 | 61 76 69 6e 67 2c 20 74 |ithout s|aving, t|
|00004dd0| 79 70 65 20 45 53 43 20 | 74 68 65 6e 20 3a 71 21 |ype ESC |then :q!|
|00004de0| 0a 2d 20 74 6f 20 73 61 | 76 65 20 61 6e 64 20 71 |.- to sa|ve and q|
|00004df0| 75 69 74 2c 20 74 79 70 | 65 20 45 53 43 20 74 68 |uit, typ|e ESC th|
|00004e00| 65 6e 20 3a 77 71 0a 0a | 57 72 69 74 69 6e 67 20 |en :wq..|Writing |
|00004e10| 73 63 72 69 70 74 73 20 | 75 6e 64 65 72 20 4c 69 |scripts |under Li|
|00004e20| 6e 75 78 20 69 73 20 73 | 75 63 68 20 61 20 76 61 |nux is s|uch a va|
|00004e30| 73 74 20 73 75 62 6a 65 | 63 74 20 69 74 20 77 6f |st subje|ct it wo|
|00004e40| 75 6c 64 20 72 65 71 75 | 69 72 65 20 61 20 62 6f |uld requ|ire a bo|
|00004e50| 6f 6b 20 0a 62 79 20 69 | 74 73 65 6c 66 2c 20 61 |ok .by i|tself, a|
|00004e60| 6e 64 20 49 20 77 69 6c | 6c 20 6e 6f 74 20 64 65 |nd I wil|l not de|
|00004e70| 6c 76 65 20 69 6e 74 6f | 20 74 68 65 20 73 75 62 |lve into| the sub|
|00004e80| 6a 65 63 74 20 61 6e 79 | 20 66 75 72 74 68 65 72 |ject any| further|
|00004e90| 2e 20 49 27 6c 6c 20 6a | 75 73 74 20 0a 67 69 76 |. I'll j|ust .giv|
|00004ea0| 65 20 79 6f 75 20 61 20 | 66 65 77 20 28 68 6f 70 |e you a |few (hop|
|00004eb0| 65 66 75 6c 6c 79 29 20 | 75 73 65 66 75 6c 20 65 |efully) |useful e|
|00004ec0| 78 61 6d 70 6c 65 73 20 | 66 72 6f 6d 20 77 68 69 |xamples |from whi|
|00004ed0| 63 68 20 79 6f 75 20 63 | 61 6e 20 65 78 74 72 61 |ch you c|an extra|
|00004ee0| 63 74 20 73 6f 6d 65 20 | 0a 62 61 73 69 63 20 72 |ct some |.basic r|
|00004ef0| 75 6c 65 73 2e 0a 0a 45 | 58 41 4d 50 4c 45 20 31 |ules...E|XAMPLE 1|
|00004f00| 3a 20 66 69 72 73 74 5f | 73 63 72 69 70 74 0a 0a |: first_|script..|
|00004f10| 09 23 21 2f 62 69 6e 2f | 73 68 0a 09 23 20 49 20 |.#!/bin/|sh..# I |
|00004f20| 61 6d 20 61 20 63 6f 6d | 6d 65 6e 74 0a 09 23 20 |am a com|ment..# |
|00004f30| 64 6f 6e 27 74 20 63 68 | 61 6e 67 65 20 74 68 65 |don't ch|ange the|
|00004f40| 20 66 69 72 73 74 20 6c | 69 6e 65 20 2d 20 69 74 | first l|ine - it|
|00004f50| 27 73 20 67 6f 74 20 74 | 6f 20 62 65 20 74 68 65 |'s got t|o be the|
|00004f60| 72 65 0a 09 65 63 68 6f | 20 22 54 6f 64 61 79 20 |re..echo| "Today |
|00004f70| 69 73 20 60 64 61 74 65 | 60 22 0a 09 65 63 68 6f |is `date|`"..echo|
|00004f80| 20 22 4d 79 20 6e 61 6d | 65 20 69 73 20 22 24 30 | "My nam|e is "$0|
|00004f90| 0a 09 65 63 68 6f 20 22 | 59 6f 75 20 67 61 76 65 |..echo "|You gave|
|00004fa0| 20 6d 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | me the |followin|
|00004fb0| 67 20 22 24 23 22 20 70 | 61 72 61 6d 65 74 65 72 |g "$#" p|arameter|
|00004fc0| 73 3a 20 22 24 2a 0a 09 | 65 63 68 6f 20 22 46 69 |s: "$*..|echo "Fi|
|00004fd0| 72 73 74 20 70 61 72 61 | 6d 65 74 65 72 20 69 73 |rst para|meter is|
|00004fe0| 20 22 24 31 0a 09 65 63 | 68 6f 20 22 48 61 76 65 | "$1..ec|ho "Have|
|00004ff0| 20 79 6f 75 20 67 72 61 | 73 70 65 64 20 74 68 65 | you gra|sped the|
|00005000| 20 74 72 69 63 6b 3f 22 | 0a 0a 45 58 41 4d 50 4c | trick?"|..EXAMPL|
|00005010| 45 20 32 3a 20 32 65 78 | 65 0a 0a 09 23 21 2f 62 |E 2: 2ex|e...#!/b|
|00005020| 69 6e 2f 73 68 0a 09 65 | 63 68 6f 20 22 6d 61 6b |in/sh..e|cho "mak|
|00005030| 69 6e 67 20 22 24 31 22 | 20 65 78 65 63 75 74 61 |ing "$1"| executa|
|00005040| 62 6c 65 2e 2e 2e 20 22 | 0a 09 63 68 6d 6f 64 20 |ble... "|..chmod |
|00005050| 75 2b 78 20 24 31 0a 0a | 45 58 41 4d 50 4c 45 20 |u+x $1..|EXAMPLE |
|00005060| 33 3a 20 62 61 63 6b 75 | 70 0a 0a 09 23 21 2f 62 |3: backu|p...#!/b|
|00005070| 69 6e 2f 73 68 0a 09 65 | 63 68 6f 20 22 43 6f 70 |in/sh..e|cho "Cop|
|00005080| 79 69 6e 67 20 66 69 6c | 65 73 20 69 6e 20 7e 2f |ying fil|es in ~/|
|00005090| 62 61 6b 2e 2e 2e 20 22 | 0a 09 66 6f 72 20 6e 61 |bak... "|..for na|
|000050a0| 6d 65 20 69 6e 20 24 2a | 0a 09 64 6f 0a 09 20 20 |me in $*|..do.. |
|000050b0| 63 70 20 24 7b 6e 61 6d | 65 7d 20 7e 2f 62 61 6b |cp ${nam|e} ~/bak|
|000050c0| 0a 09 64 6f 6e 65 0a 0a | 45 58 41 4d 50 4c 45 20 |..done..|EXAMPLE |
|000050d0| 34 3a 20 66 6d 74 61 0a | 0a 09 23 21 2f 62 69 6e |4: fmta.|..#!/bin|
|000050e0| 2f 73 68 0a 09 65 63 68 | 6f 20 22 49 20 72 65 6d |/sh..ech|o "I rem|
|000050f0| 69 6e 64 20 79 6f 75 20 | 74 68 61 74 20 6f 6e 6c |ind you |that onl|
|00005100| 79 20 72 6f 6f 74 20 63 | 61 6e 20 66 6f 72 6d 61 |y root c|an forma|
|00005110| 74 20 64 69 73 6b 73 22 | 0a 09 66 64 66 6f 72 6d |t disks"|..fdform|
|00005120| 61 74 20 2f 64 65 76 2f | 66 64 30 48 31 34 34 30 |at /dev/|fd0H1440|
|00005130| 0a 09 6d 6b 66 73 20 2d | 74 20 65 78 74 32 20 2d |..mkfs -|t ext2 -|
|00005140| 63 20 2f 64 65 76 2f 66 | 64 30 48 31 34 34 30 0a |c /dev/f|d0H1440.|
|00005150| 09 65 63 68 6f 20 22 64 | 69 73 6b 20 66 6f 72 6d |.echo "d|isk form|
|00005160| 61 74 74 65 64 2e 22 0a | 0a 45 58 41 4d 50 4c 45 |atted.".|.EXAMPLE|
|00005170| 20 35 3a 20 6d 6e 74 61 | 0a 0a 09 23 21 2f 62 69 | 5: mnta|...#!/bi|
|00005180| 6e 2f 73 68 0a 09 65 63 | 68 6f 20 22 49 20 72 65 |n/sh..ec|ho "I re|
|00005190| 6d 69 6e 64 20 79 6f 75 | 20 74 68 61 74 20 6f 6e |mind you| that on|
|000051a0| 6c 79 20 72 6f 6f 74 20 | 63 61 6e 20 6d 6f 75 6e |ly root |can moun|
|000051b0| 74 20 64 69 73 6b 73 22 | 0a 09 6d 6f 75 6e 74 20 |t disks"|..mount |
|000051c0| 2d 74 20 6d 73 64 6f 73 | 20 2f 64 65 76 2f 66 64 |-t msdos| /dev/fd|
|000051d0| 30 20 2f 6d 6e 74 0a 09 | 65 63 68 6f 20 22 64 6f |0 /mnt..|echo "do|
|000051e0| 6e 27 74 20 66 6f 72 67 | 65 74 20 74 6f 20 75 6d |n't forg|et to um|
|000051f0| 6f 75 6e 74 20 77 68 65 | 6e 20 79 6f 75 27 76 65 |ount whe|n you've|
|00005200| 20 64 6f 6e 65 2e 22 0a | 0a 35 2e 32 2e 20 43 20 | done.".|.5.2. C |
|00005210| 66 6f 72 20 59 6f 75 72 | 73 65 6c 66 0a 0a 59 6f |for Your|self..Yo|
|00005220| 75 27 72 65 20 6e 6f 74 | 20 65 78 70 65 63 74 69 |u're not| expecti|
|00005230| 6e 67 20 74 6f 20 66 69 | 6e 64 20 47 57 2f 51 62 |ng to fi|nd GW/Qb|
|00005240| 61 73 69 63 20 75 6e 64 | 65 72 20 4c 69 6e 75 78 |asic und|er Linux|
|00005250| 2c 20 61 72 65 20 79 6f | 75 3f 20 55 6e 64 65 72 |, are yo|u? Under|
|00005260| 20 55 6e 2a 78 2c 20 0a | 74 68 65 20 73 79 73 74 | Un*x, .|the syst|
|00005270| 65 6d 20 6c 61 6e 67 75 | 61 67 65 20 69 73 20 43 |em langu|age is C|
|00005280| 2c 20 6c 6f 76 65 20 69 | 74 20 6f 72 20 68 61 74 |, love i|t or hat|
|00005290| 65 20 69 74 2e 20 4c 6f | 74 73 20 6f 66 20 6f 74 |e it. Lo|ts of ot|
|000052a0| 68 65 72 20 6c 61 6e 67 | 75 61 67 65 73 20 0a 28 |her lang|uages .(|
|000052b0| 46 4f 52 54 52 41 4e 2c | 20 50 61 73 63 61 6c 2c |FORTRAN,| Pascal,|
|000052c0| 20 4c 69 73 70 2c 20 42 | 61 73 69 63 2e 2e 2e 20 | Lisp, B|asic... |
|000052d0| 62 75 74 20 6e 6f 74 20 | 54 75 72 62 6f 20 50 61 |but not |Turbo Pa|
|000052e0| 73 63 61 6c 2c 20 68 65 | 6c 61 73 29 20 61 72 65 |scal, he|las) are|
|000052f0| 20 61 6c 73 6f 20 0a 61 | 76 61 69 6c 61 62 6c 65 | also .a|vailable|
|00005300| 2e 0a 0a 54 61 6b 65 6e | 20 66 6f 72 20 67 72 61 |...Taken| for gra|
|00005310| 6e 74 65 64 20 74 68 61 | 74 20 79 6f 75 20 6b 6e |nted tha|t you kn|
|00005320| 6f 77 20 43 2c 20 68 65 | 72 65 20 61 72 65 20 61 |ow C, he|re are a|
|00005330| 20 63 6f 75 70 6c 65 20 | 6f 66 20 67 75 69 64 65 | couple |of guide|
|00005340| 6c 69 6e 65 73 20 66 6f | 72 20 0a 74 68 6f 73 65 |lines fo|r .those|
|00005350| 20 6f 66 20 79 6f 75 20 | 77 68 6f 20 68 61 76 65 | of you |who have|
|00005360| 20 62 65 65 6e 20 70 61 | 6d 70 65 72 65 64 20 62 | been pa|mpered b|
|00005370| 79 20 54 75 72 62 6f 20 | 43 2b 2b 20 6f 72 20 6f |y Turbo |C++ or o|
|00005380| 6e 65 20 6f 66 20 69 74 | 73 20 44 4f 53 20 0a 62 |ne of it|s DOS .b|
|00005390| 72 6f 74 68 65 72 73 2e | 20 4c 69 6e 75 78 27 73 |rothers.| Linux's|
|000053a0| 20 43 20 63 6f 6d 70 69 | 6c 65 72 20 69 73 20 63 | C compi|ler is c|
|000053b0| 61 6c 6c 65 64 20 67 63 | 63 20 61 6e 64 20 6c 61 |alled gc|c and la|
|000053c0| 63 6b 73 20 61 6c 6c 20 | 74 68 65 20 62 65 6c 6c |cks all |the bell|
|000053d0| 73 20 61 6e 64 20 0a 77 | 68 69 73 74 6c 65 73 20 |s and .w|histles |
|000053e0| 74 68 61 74 20 75 73 75 | 61 6c 6c 79 20 61 63 63 |that usu|ally acc|
|000053f0| 6f 6d 70 61 6e 79 20 69 | 74 73 20 44 4f 53 20 63 |ompany i|ts DOS c|
|00005400| 6f 75 6e 74 65 72 70 61 | 72 74 73 3a 20 6e 6f 20 |ounterpa|rts: no |
|00005410| 49 44 45 2c 20 6f 6e 2d | 6c 69 6e 65 20 68 65 6c |IDE, on-|line hel|
|00005420| 70 2c 20 0a 69 6e 74 65 | 67 72 61 74 65 64 20 64 |p, .inte|grated d|
|00005430| 65 62 75 67 67 65 72 2c | 20 65 74 63 2e 20 49 74 |ebugger,| etc. It|
|00005440| 27 73 20 6a 75 73 74 20 | 61 20 72 6f 75 67 68 20 |'s just |a rough |
|00005450| 63 6f 6d 6d 61 6e 64 2d | 6c 69 6e 65 20 63 6f 6d |command-|line com|
|00005460| 70 69 6c 65 72 2c 20 76 | 65 72 79 20 0a 70 6f 77 |piler, v|ery .pow|
|00005470| 65 72 66 75 6c 20 61 6e | 64 20 65 66 66 69 63 69 |erful an|d effici|
|00005480| 65 6e 74 2e 20 54 6f 20 | 63 6f 6d 70 69 6c 65 20 |ent. To |compile |
|00005490| 79 6f 75 72 20 73 74 61 | 6e 64 61 72 64 20 68 65 |your sta|ndard he|
|000054a0| 6c 6c 6f 2e 63 20 79 6f | 75 27 6c 6c 20 64 6f 3a |llo.c yo|u'll do:|
|000054b0| 0a 09 24 20 67 63 63 20 | 68 65 6c 6c 6f 2e 63 0a |..$ gcc |hello.c.|
|000054c0| 77 68 69 63 68 20 77 69 | 6c 6c 20 63 72 65 61 74 |which wi|ll creat|
|000054d0| 65 20 61 6e 20 65 78 65 | 63 75 74 61 62 6c 65 20 |e an exe|cutable |
|000054e0| 66 69 6c 65 20 63 61 6c | 6c 65 64 20 61 2e 6f 75 |file cal|led a.ou|
|000054f0| 74 2e 20 54 6f 20 67 69 | 76 65 20 74 68 65 20 65 |t. To gi|ve the e|
|00005500| 78 65 63 75 74 61 62 6c | 65 20 61 20 0a 64 69 66 |xecutabl|e a .dif|
|00005510| 66 65 72 65 6e 74 20 6e | 61 6d 65 2c 20 64 6f 0a |ferent n|ame, do.|
|00005520| 09 24 20 67 63 63 20 2d | 6f 20 68 6f 6c 61 20 68 |.$ gcc -|o hola h|
|00005530| 65 6c 6c 6f 2e 63 0a 54 | 6f 20 6c 69 6e 6b 20 61 |ello.c.T|o link a|
|00005540| 20 70 72 6f 67 72 61 6d | 20 77 69 74 68 20 61 20 | program| with a |
|00005550| 6c 69 62 72 61 72 79 2c | 20 61 64 64 20 74 68 65 |library,| add the|
|00005560| 20 73 77 69 74 63 68 20 | 2d 6c 3c 61 72 67 3e 2e | switch |-l<arg>.|
|00005570| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 74 6f | For exa|mple, to|
|00005580| 20 0a 6c 69 6e 6b 20 74 | 68 65 20 6d 61 74 68 20 | .link t|he math |
|00005590| 6c 69 62 72 61 72 79 20 | 64 6f 0a 09 24 20 67 63 |library |do..$ gc|
|000055a0| 63 20 2d 6f 20 6d 61 74 | 68 70 72 6f 67 20 6d 61 |c -o mat|hprog ma|
|000055b0| 74 68 70 72 6f 67 2e 63 | 20 2d 6c 6d 0a 28 54 68 |thprog.c| -lm.(Th|
|000055c0| 65 20 2d 6c 3c 61 72 67 | 3e 20 73 77 69 74 63 68 |e -l<arg|> switch|
|000055d0| 20 66 6f 72 63 65 73 20 | 67 63 63 20 74 6f 20 6c | forces |gcc to l|
|000055e0| 69 6e 6b 20 74 68 65 20 | 6c 69 62 72 61 72 79 20 |ink the |library |
|000055f0| 2f 75 73 72 2f 6c 69 62 | 2f 6c 69 62 3c 61 72 67 |/usr/lib|/lib<arg|
|00005600| 3e 2e 61 3b 20 73 6f 20 | 0a 2d 6c 6d 20 6c 69 6e |>.a; so |.-lm lin|
|00005610| 6b 73 20 2f 75 73 72 2f | 6c 69 62 2f 6c 69 62 6d |ks /usr/|lib/libm|
|00005620| 2e 61 29 2e 0a 0a 41 6c | 6c 20 74 68 69 73 20 69 |.a)...Al|l this i|
|00005630| 73 20 67 6f 6f 64 20 66 | 6f 72 20 73 6d 61 6c 6c |s good f|or small|
|00005640| 20 70 72 6f 67 72 61 6d | 73 2e 20 42 75 74 20 77 | program|s. But w|
|00005650| 68 65 6e 20 79 6f 75 72 | 20 70 72 6f 67 20 69 73 |hen your| prog is|
|00005660| 20 6d 61 64 65 20 6f 66 | 20 73 65 76 65 72 61 6c | made of| several|
|00005670| 20 0a 73 6f 75 72 63 65 | 20 66 69 6c 65 73 2c 20 | .source| files, |
|00005680| 79 6f 75 27 6c 6c 20 6e | 65 65 64 20 74 6f 20 75 |you'll n|eed to u|
|00005690| 73 65 20 74 68 65 20 75 | 74 69 6c 69 74 79 20 6d |se the u|tility m|
|000056a0| 61 6b 65 2e 20 4c 65 74 | 27 73 20 73 75 70 70 6f |ake. Let|'s suppo|
|000056b0| 73 65 20 79 6f 75 20 68 | 61 76 65 20 0a 77 72 69 |se you h|ave .wri|
|000056c0| 74 74 65 6e 20 61 6e 20 | 65 78 70 72 65 73 73 69 |tten an |expressi|
|000056d0| 6f 6e 20 70 61 72 73 65 | 72 3a 20 69 74 73 20 73 |on parse|r: its s|
|000056e0| 6f 75 72 63 65 20 66 69 | 6c 65 20 69 73 20 63 61 |ource fi|le is ca|
|000056f0| 6c 6c 65 64 20 70 61 72 | 73 65 72 2e 63 20 61 6e |lled par|ser.c an|
|00005700| 64 20 0a 23 69 6e 63 6c | 75 64 65 73 20 74 77 6f |d .#incl|udes two|
|00005710| 20 68 65 61 64 65 72 20 | 66 69 6c 65 73 2c 20 70 | header |files, p|
|00005720| 61 72 73 65 72 2e 68 20 | 61 6e 64 20 78 79 2e 68 |arser.h |and xy.h|
|00005730| 2e 20 54 68 65 6e 20 79 | 6f 75 20 77 61 6e 74 20 |. Then y|ou want |
|00005740| 74 6f 20 75 73 65 20 74 | 68 65 20 0a 72 6f 75 74 |to use t|he .rout|
|00005750| 69 6e 65 73 20 69 6e 20 | 70 61 72 73 65 72 2e 63 |ines in |parser.c|
|00005760| 20 69 6e 20 61 20 70 72 | 6f 67 72 61 6d 2c 20 73 | in a pr|ogram, s|
|00005770| 61 79 2c 20 63 61 6c 63 | 2e 63 2c 20 77 68 69 63 |ay, calc|.c, whic|
|00005780| 68 20 69 6e 20 74 75 72 | 6e 20 23 69 6e 63 6c 75 |h in tur|n #inclu|
|00005790| 64 65 73 20 0a 70 61 72 | 73 65 72 2e 68 2e 20 57 |des .par|ser.h. W|
|000057a0| 68 61 74 20 61 20 6d 65 | 73 73 21 20 57 68 61 74 |hat a me|ss! What|
|000057b0| 20 64 6f 20 79 6f 75 20 | 68 61 76 65 20 74 6f 20 | do you |have to |
|000057c0| 64 6f 20 74 6f 20 63 6f | 6d 70 69 6c 65 20 63 61 |do to co|mpile ca|
|000057d0| 6c 63 2e 63 3f 20 0a 0a | 59 6f 75 27 6c 6c 20 68 |lc.c? ..|You'll h|
|000057e0| 61 76 65 20 74 6f 20 77 | 72 69 74 65 20 61 20 73 |ave to w|rite a s|
|000057f0| 6f 2d 63 61 6c 6c 65 64 | 20 6d 61 6b 65 66 69 6c |o-called| makefil|
|00005800| 65 2c 20 77 68 69 63 68 | 20 74 65 6c 6c 73 20 74 |e, which| tells t|
|00005810| 68 65 20 63 6f 6d 70 69 | 6c 65 72 20 74 68 65 20 |he compi|ler the |
|00005820| 0a 64 65 70 65 6e 64 65 | 6e 63 69 65 73 20 62 65 |.depende|ncies be|
|00005830| 74 77 65 65 6e 20 73 6f | 75 72 63 65 73 20 61 6e |tween so|urces an|
|00005840| 64 20 6f 62 6a 65 63 74 | 73 20 66 69 6c 65 73 2e |d object|s files.|
|00005850| 20 49 6e 20 6f 75 72 20 | 65 78 61 6d 70 6c 65 3a | In our |example:|
|00005860| 0a 0a 09 23 20 20 54 68 | 69 73 20 69 73 20 6d 61 |...# Th|is is ma|
|00005870| 6b 65 66 69 6c 65 2c 20 | 75 73 65 64 20 74 6f 20 |kefile, |used to |
|00005880| 63 6f 6d 70 69 6c 65 20 | 63 61 6c 63 2e 63 0a 09 |compile |calc.c..|
|00005890| 23 20 20 50 72 65 73 73 | 20 74 68 65 20 3c 54 41 |# Press| the <TA|
|000058a0| 42 3e 20 6b 65 79 20 61 | 74 20 61 70 70 72 6f 70 |B> key a|t approp|
|000058b0| 72 69 61 74 65 20 70 6f | 73 69 74 69 6f 6e 73 21 |riate po|sitions!|
|000058c0| 0a 0a 09 63 61 6c 63 3a | 20 63 61 6c 63 2e 6f 20 |...calc:| calc.o |
|000058d0| 70 61 72 73 65 72 2e 6f | 0a 09 3c 54 41 42 3e 67 |parser.o|..<TAB>g|
|000058e0| 63 63 20 2d 6f 20 63 61 | 6c 63 20 63 61 6c 63 2e |cc -o ca|lc calc.|
|000058f0| 6f 20 70 61 72 73 65 72 | 2e 6f 20 2d 6c 6d 0a 09 |o parser|.o -lm..|
|00005900| 23 20 63 61 6c 63 20 64 | 65 70 65 6e 64 73 20 6f |# calc d|epends o|
|00005910| 6e 20 74 77 6f 20 6f 62 | 6a 65 63 74 20 66 69 6c |n two ob|ject fil|
|00005920| 65 73 3a 20 63 61 6c 63 | 2e 6f 20 61 6e 64 20 70 |es: calc|.o and p|
|00005930| 61 72 73 65 72 2e 6f 0a | 0a 09 63 61 6c 63 2e 6f |arser.o.|..calc.o|
|00005940| 3a 20 63 61 6c 63 2e 63 | 20 70 61 72 73 65 72 2e |: calc.c| parser.|
|00005950| 68 0a 09 3c 54 41 42 3e | 67 63 63 20 2d 63 20 63 |h..<TAB>|gcc -c c|
|00005960| 61 6c 63 2e 63 0a 09 23 | 20 63 61 6c 63 2e 6f 20 |alc.c..#| calc.o |
|00005970| 64 65 70 65 6e 64 73 20 | 6f 6e 20 74 77 6f 20 73 |depends |on two s|
|00005980| 6f 75 72 63 65 20 66 69 | 6c 65 73 0a 0a 09 70 61 |ource fi|les...pa|
|00005990| 72 73 65 72 2e 6f 3a 20 | 20 70 61 72 73 65 72 2e |rser.o: | parser.|
|000059a0| 63 20 70 61 72 73 65 72 | 2e 68 20 78 79 2e 68 0a |c parser|.h xy.h.|
|000059b0| 09 3c 54 41 42 3e 67 63 | 63 20 2d 63 20 70 61 72 |.<TAB>gc|c -c par|
|000059c0| 73 65 72 2e 63 0a 09 23 | 20 70 61 72 73 65 72 2e |ser.c..#| parser.|
|000059d0| 6f 20 64 65 70 65 6e 64 | 73 20 6f 6e 20 74 68 72 |o depend|s on thr|
|000059e0| 65 65 20 73 6f 75 72 63 | 65 20 66 69 6c 65 73 0a |ee sourc|e files.|
|000059f0| 0a 09 23 20 65 6e 64 20 | 6f 66 20 6d 61 6b 65 66 |..# end |of makef|
|00005a00| 69 6c 65 2e 0a 0a 53 61 | 76 65 20 74 68 69 73 20 |ile...Sa|ve this |
|00005a10| 66 69 6c 65 20 61 73 20 | 6d 61 6b 65 66 69 6c 65 |file as |makefile|
|00005a20| 20 61 6e 64 20 74 68 65 | 6e 20 74 79 70 65 0a 09 | and the|n type..|
|00005a30| 24 20 6d 61 6b 65 0a 74 | 6f 20 63 6f 6d 70 69 6c |$ make.t|o compil|
|00005a40| 65 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 3b 20 |e your p|rogram; |
|00005a50| 61 6c 74 65 72 6e 61 74 | 69 76 65 6c 79 2c 20 73 |alternat|ively, s|
|00005a60| 61 76 65 20 69 74 20 61 | 73 20 63 61 6c 63 2e 6d |ave it a|s calc.m|
|00005a70| 61 6b 20 61 6e 64 20 74 | 68 65 6e 20 74 79 70 65 |ak and t|hen type|
|00005a80| 0a 09 24 20 6d 61 6b 65 | 20 2d 66 20 63 61 6c 63 |..$ make| -f calc|
|00005a90| 2e 6d 61 6b 0a 41 6e 64 | 20 6f 66 20 63 6f 75 72 |.mak.And| of cour|
|00005aa0| 73 65 2c 20 52 4d 50 2e | 0a 0a 49 6e 20 61 64 64 |se, RMP.|..In add|
|00005ab0| 69 74 69 6f 6e 20 74 6f | 20 61 6c 6c 20 74 68 69 |ition to| all thi|
|00005ac0| 73 2c 20 72 65 6d 65 6d | 62 65 72 20 74 68 61 74 |s, remem|ber that|
|00005ad0| 20 79 6f 75 20 63 61 6e | 20 69 6e 76 6f 6b 65 20 | you can| invoke |
|00005ae0| 73 6f 6d 65 20 68 65 6c | 70 20 61 62 6f 75 74 20 |some hel|p about |
|00005af0| 74 68 65 20 43 20 0a 66 | 75 6e 63 74 69 6f 6e 73 |the C .f|unctions|
|00005b00| 2c 20 77 68 69 63 68 20 | 61 72 65 20 63 6f 76 65 |, which |are cove|
|00005b10| 72 65 64 20 62 79 20 6d | 61 6e 20 70 61 67 65 73 |red by m|an pages|
|00005b20| 3b 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 2c 0a 09 |; for ex|ample,..|
|00005b30| 24 20 6d 61 6e 20 70 72 | 69 6e 74 66 0a 0a 0a 53 |$ man pr|intf...S|
|00005b40| 65 63 74 69 6f 6e 20 36 | 3a 20 54 68 65 20 52 65 |ection 6|: The Re|
|00005b50| 6d 61 69 6e 69 6e 67 20 | 31 25 0a 0a 36 2e 31 2e |maining |1%..6.1.|
|00005b60| 20 55 6e 72 6f 6f 74 20 | 59 6f 75 72 73 65 6c 66 | Unroot |Yourself|
|00005b70| 0a 0a 49 74 27 73 20 61 | 20 76 65 72 79 20 62 61 |..It's a| very ba|
|00005b80| 64 20 69 64 65 61 20 74 | 6f 20 6c 6f 67 69 6e 20 |d idea t|o login |
|00005b90| 61 73 20 72 6f 6f 74 20 | 74 6f 20 64 6f 20 65 76 |as root |to do ev|
|00005ba0| 65 72 79 64 61 79 20 77 | 6f 72 6b 3b 20 73 75 63 |eryday w|ork; suc|
|00005bb0| 68 20 61 63 63 6f 75 6e | 74 20 69 73 20 0a 64 61 |h accoun|t is .da|
|00005bc0| 6e 67 65 72 6f 75 73 20 | 61 6e 64 20 73 68 6f 75 |ngerous |and shou|
|00005bd0| 6c 64 20 62 65 20 75 73 | 65 64 20 66 6f 72 20 73 |ld be us|ed for s|
|00005be0| 79 73 74 65 6d 20 61 64 | 6d 69 6e 69 73 74 72 61 |ystem ad|ministra|
|00005bf0| 74 69 6f 6e 20 6f 6e 6c | 79 2e 20 54 6f 20 67 69 |tion onl|y. To gi|
|00005c00| 76 65 20 0a 79 6f 75 72 | 73 65 6c 66 20 61 20 6e |ve .your|self a n|
|00005c10| 65 77 20 61 63 63 6f 75 | 6e 74 2c 20 6c 6f 67 69 |ew accou|nt, logi|
|00005c20| 6e 20 61 73 20 72 6f 6f | 74 20 61 6e 64 20 69 73 |n as roo|t and is|
|00005c30| 73 75 65 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 0a |sue the |command.|
|00005c40| 09 23 20 61 64 64 75 73 | 65 72 0a 65 6e 74 65 72 |.# addus|er.enter|
|00005c50| 69 6e 67 20 74 68 65 6e | 20 74 68 65 20 69 6e 66 |ing then| the inf|
|00005c60| 6f 72 6d 61 74 69 6f 6e | 20 74 68 65 20 73 79 73 |ormation| the sys|
|00005c70| 74 65 6d 20 77 69 6c 6c | 20 61 73 6b 20 79 6f 75 |tem will| ask you|
|00005c80| 2e 20 28 45 6e 74 65 72 | 20 3c 52 45 54 3e 20 74 |. (Enter| <RET> t|
|00005c90| 6f 20 74 68 65 20 0a 71 | 75 65 73 74 69 6f 6e 73 |o the .q|uestions|
|00005ca0| 20 79 6f 75 20 64 6f 6e | 27 74 20 75 6e 64 65 72 | you don|'t under|
|00005cb0| 73 74 61 6e 64 3b 20 64 | 65 66 61 75 6c 74 20 76 |stand; d|efault v|
|00005cc0| 61 6c 75 65 73 20 77 69 | 6c 6c 20 62 65 20 75 73 |alues wi|ll be us|
|00005cd0| 65 64 2e 29 0a 0a 36 2e | 32 2e 20 4d 61 6b 69 6e |ed.)..6.|2. Makin|
|00005ce0| 67 20 56 69 72 74 75 61 | 6c 20 4d 65 6d 6f 72 79 |g Virtua|l Memory|
|00005cf0| 0a 0a 41 6c 74 68 6f 75 | 67 68 20 4c 69 6e 75 78 |..Althou|gh Linux|
|00005d00| 20 63 61 6e 20 74 68 65 | 6f 72 65 74 69 63 61 6c | can the|oretical|
|00005d10| 6c 79 20 72 75 6e 20 77 | 69 74 68 20 6f 6e 6c 79 |ly run w|ith only|
|00005d20| 20 32 20 6d 65 67 73 20 | 6f 66 20 52 41 4d 2c 20 | 2 megs |of RAM, |
|00005d30| 74 68 65 20 6d 6f 72 65 | 20 79 6f 75 20 0a 68 61 |the more| you .ha|
|00005d40| 76 65 2c 20 74 68 65 20 | 6d 6f 72 65 20 79 6f 75 |ve, the |more you|
|00005d50| 20 63 61 6e 20 64 6f 2e | 20 58 20 57 69 6e 64 6f | can do.| X Windo|
|00005d60| 77 20 53 79 73 74 65 6d | 20 77 6f 6e 27 74 20 72 |w System| won't r|
|00005d70| 75 6e 20 75 6e 6c 65 73 | 73 20 79 6f 75 20 68 61 |un unles|s you ha|
|00005d80| 76 65 20 61 74 20 0a 6c | 65 61 73 74 20 38 20 6d |ve at .l|east 8 m|
|00005d90| 65 67 73 2e 20 54 6f 20 | 63 72 65 61 74 65 20 61 |egs. To |create a|
|00005da0| 6e 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 38 20 6d |n additi|onal 8 m|
|00005db0| 65 67 73 20 6f 66 20 76 | 69 72 74 75 61 6c 20 6d |egs of v|irtual m|
|00005dc0| 65 6d 6f 72 79 2c 20 74 | 79 70 65 20 61 73 20 0a |emory, t|ype as .|
|00005dd0| 72 6f 6f 74 3a 20 20 20 | 20 20 20 20 20 20 20 20 |root: | |
|00005de0| 20 0a 09 23 20 64 64 20 | 69 66 3d 2f 64 65 76 2f | ..# dd |if=/dev/|
|00005df0| 7a 65 72 6f 20 6f 66 3d | 2f 73 77 61 70 66 69 6c |zero of=|/swapfil|
|00005e00| 65 20 62 73 3d 31 30 32 | 34 20 63 6f 75 6e 74 3d |e bs=102|4 count=|
|00005e10| 38 31 39 32 0a 09 23 20 | 6d 6b 73 77 61 70 20 2f |8192..# |mkswap /|
|00005e20| 73 77 61 70 66 69 6c 65 | 20 38 31 39 32 0a 09 23 |swapfile| 8192..#|
|00005e30| 20 73 79 6e 63 0a 09 23 | 20 73 77 61 70 6f 6e 20 | sync..#| swapon |
|00005e40| 2f 73 77 61 70 66 69 6c | 65 0a 41 64 64 20 74 68 |/swapfil|e.Add th|
|00005e50| 65 20 6c 61 73 74 20 6c | 69 6e 65 20 69 6e 20 2f |e last l|ine in /|
|00005e60| 65 74 63 2f 72 63 2e 64 | 2f 72 63 2e 6c 6f 63 61 |etc/rc.d|/rc.loca|
|00005e70| 6c 20 74 6f 20 6d 61 6b | 65 20 74 68 65 20 73 77 |l to mak|e the sw|
|00005e80| 61 70 66 69 6c 65 20 61 | 76 61 69 6c 61 62 6c 65 |apfile a|vailable|
|00005e90| 20 74 68 65 20 0a 6e 65 | 78 74 20 74 69 6d 65 20 | the .ne|xt time |
|00005ea0| 79 6f 75 20 62 6f 6f 74 | 2e 0a 0a 36 2e 33 2e 20 |you boot|...6.3. |
|00005eb0| 55 73 69 6e 67 20 74 61 | 72 20 26 20 67 7a 69 70 |Using ta|r & gzip|
|00005ec0| 0a 0a 55 6e 64 65 72 20 | 55 6e 2a 78 20 74 68 65 |..Under |Un*x the|
|00005ed0| 72 65 20 61 72 65 20 73 | 6f 6d 65 20 77 69 64 65 |re are s|ome wide|
|00005ee0| 6c 79 20 75 73 65 64 20 | 61 70 70 6c 69 63 61 74 |ly used |applicat|
|00005ef0| 69 6f 6e 73 20 74 6f 20 | 61 72 63 68 69 76 65 20 |ions to |archive |
|00005f00| 61 6e 64 20 63 6f 6d 70 | 72 65 73 73 20 0a 66 69 |and comp|ress .fi|
|00005f10| 6c 65 73 2e 20 74 61 72 | 20 69 73 20 75 73 65 64 |les. tar| is used|
|00005f20| 20 74 6f 20 6d 61 6b 65 | 20 61 72 63 68 69 76 65 | to make| archive|
|00005f30| 73 20 2d 20 69 74 27 73 | 20 6c 69 6b 65 20 50 4b |s - it's| like PK|
|00005f40| 5a 49 50 20 62 75 74 20 | 64 6f 65 73 6e 27 74 20 |ZIP but |doesn't |
|00005f50| 63 6f 6d 70 72 65 73 73 | 2c 20 0a 69 74 20 6f 6e |compress|, .it on|
|00005f60| 6c 79 20 61 72 63 68 69 | 76 65 73 2e 20 54 6f 20 |ly archi|ves. To |
|00005f70| 6d 61 6b 65 20 61 20 6e | 65 77 20 61 72 63 68 69 |make a n|ew archi|
|00005f80| 76 65 3a 0a 09 24 20 74 | 61 72 20 2d 63 76 66 20 |ve:..$ t|ar -cvf |
|00005f90| 3c 61 72 63 68 69 76 65 | 5f 6e 61 6d 65 2e 74 61 |<archive|_name.ta|
|00005fa0| 72 3e 20 3c 66 69 6c 65 | 3e 20 5b 66 69 6c 65 2e |r> <file|> [file.|
|00005fb0| 2e 2e 5d 0a 54 6f 20 65 | 78 74 72 61 63 74 20 66 |..].To e|xtract f|
|00005fc0| 69 6c 65 73 20 66 72 6f | 6d 20 61 6e 20 61 72 63 |iles fro|m an arc|
|00005fd0| 68 69 76 65 3a 0a 09 24 | 20 74 61 72 20 2d 78 70 |hive:..$| tar -xp|
|00005fe0| 76 66 20 3c 61 72 63 68 | 69 76 65 5f 6e 61 6d 65 |vf <arch|ive_name|
|00005ff0| 2e 74 61 72 3e 20 5b 66 | 69 6c 65 2e 2e 2e 5d 0a |.tar> [f|ile...].|
|00006000| 54 6f 20 6c 69 73 74 20 | 74 68 65 20 63 6f 6e 74 |To list |the cont|
|00006010| 65 6e 74 73 20 6f 66 20 | 61 6e 20 61 72 63 68 69 |ents of |an archi|
|00006020| 76 65 3a 0a 09 24 20 74 | 61 72 20 2d 74 66 20 3c |ve:..$ t|ar -tf <|
|00006030| 61 72 63 68 69 76 65 5f | 6e 61 6d 65 2e 74 61 72 |archive_|name.tar|
|00006040| 3e 20 7c 20 6c 65 73 73 | 0a 59 6f 75 20 63 61 6e |> | less|.You can|
|00006050| 20 63 6f 6d 70 72 65 73 | 73 20 66 69 6c 65 73 20 | compres|s files |
|00006060| 75 73 69 6e 67 20 63 6f | 6d 70 72 65 73 73 2c 20 |using co|mpress, |
|00006070| 77 68 69 63 68 20 69 73 | 20 6f 62 73 6f 6c 65 74 |which is| obsolet|
|00006080| 65 20 61 6e 64 20 73 68 | 6f 75 6c 64 6e 27 74 20 |e and sh|ouldn't |
|00006090| 62 65 20 0a 75 73 65 64 | 20 61 6e 79 20 6d 6f 72 |be .used| any mor|
|000060a0| 65 2c 20 6f 72 20 67 7a | 69 70 3a 0a 09 24 20 63 |e, or gz|ip:..$ c|
|000060b0| 6f 6d 70 72 65 73 73 20 | 3c 66 69 6c 65 3e 0a 6f |ompress |<file>.o|
|000060c0| 72 3a 0a 09 24 20 67 7a | 69 70 20 3c 66 69 6c 65 |r:..$ gz|ip <file|
|000060d0| 3e 0a 74 68 61 74 20 63 | 72 65 61 74 65 73 20 61 |>.that c|reates a|
|000060e0| 20 63 6f 6d 70 72 65 73 | 73 65 64 20 66 69 6c 65 | compres|sed file|
|000060f0| 20 77 69 74 68 20 65 78 | 74 65 6e 73 69 6f 6e 20 | with ex|tension |
|00006100| 2e 5a 20 28 63 6f 6d 70 | 72 65 73 73 29 20 6f 72 |.Z (comp|ress) or|
|00006110| 20 2e 67 7a 20 28 67 7a | 69 70 29 2e 20 0a 54 68 | .gz (gz|ip). .Th|
|00006120| 65 73 65 20 70 72 6f 67 | 72 61 6d 73 20 63 61 6e |ese prog|rams can|
|00006130| 20 63 6f 6d 70 72 65 73 | 73 20 6f 6e 6c 79 20 6f | compres|s only o|
|00006140| 6e 65 20 66 69 6c 65 20 | 61 74 20 61 20 74 69 6d |ne file |at a tim|
|00006150| 65 2e 20 54 6f 20 64 65 | 63 6f 6d 70 72 65 73 73 |e. To de|compress|
|00006160| 2c 20 75 73 65 0a 09 24 | 20 63 6f 6d 70 72 65 73 |, use..$| compres|
|00006170| 73 20 2d 64 20 3c 66 69 | 6c 65 3e 0a 6f 72 0a 09 |s -d <fi|le>.or..|
|00006180| 24 20 67 7a 69 70 20 2d | 64 20 3c 66 69 6c 65 3e |$ gzip -|d <file>|
|00006190| 0a 52 4d 50 2e 0a 0a 54 | 68 65 20 61 72 6a 2c 20 |.RMP...T|he arj, |
|000061a0| 7a 69 70 20 61 6e 64 20 | 75 6e 7a 69 70 20 28 50 |zip and |unzip (P|
|000061b0| 4b 3f 3f 5a 49 50 20 63 | 6f 6d 70 61 74 69 62 6c |K??ZIP c|ompatibl|
|000061c0| 65 29 20 75 74 69 6c 69 | 74 69 65 73 20 61 72 65 |e) utili|ties are|
|000061d0| 20 61 6c 73 6f 20 61 76 | 61 69 6c 61 62 6c 65 2e | also av|ailable.|
|000061e0| 20 0a 46 69 6c 65 73 20 | 77 69 74 68 20 65 78 74 | .Files |with ext|
|000061f0| 65 6e 73 69 6f 6e 20 2e | 74 61 72 2e 67 7a 20 6f |ension .|tar.gz o|
|00006200| 72 20 2e 74 67 7a 20 28 | 61 72 63 68 69 76 65 64 |r .tgz (|archived|
|00006210| 20 77 69 74 68 20 74 61 | 72 2c 20 74 68 65 6e 20 | with ta|r, then |
|00006220| 63 6f 6d 70 72 65 73 73 | 65 64 20 0a 77 69 74 68 |compress|ed .with|
|00006230| 20 67 7a 69 70 29 20 61 | 72 65 20 61 73 20 63 6f | gzip) a|re as co|
|00006240| 6d 6d 6f 6e 20 69 6e 20 | 74 68 65 20 55 6e 2a 78 |mmon in |the Un*x|
|00006250| 20 77 6f 72 6c 64 20 61 | 73 20 2e 5a 49 50 20 66 | world a|s .ZIP f|
|00006260| 69 6c 65 73 20 61 72 65 | 20 75 6e 64 65 72 20 44 |iles are| under D|
|00006270| 4f 53 2e 20 0a 48 65 72 | 65 27 73 20 68 6f 77 20 |OS. .Her|e's how |
|00006280| 74 6f 20 6c 69 73 74 20 | 74 68 65 20 63 6f 6e 74 |to list |the cont|
|00006290| 65 6e 74 73 20 6f 66 20 | 61 20 2e 74 61 72 2e 67 |ents of |a .tar.g|
|000062a0| 7a 20 61 72 63 68 69 76 | 65 3a 0a 09 24 20 67 7a |z archiv|e:..$ gz|
|000062b0| 69 70 20 2d 64 63 20 3c | 66 69 6c 65 2e 74 61 72 |ip -dc <|file.tar|
|000062c0| 2e 67 7a 3e 20 7c 20 74 | 61 72 20 74 66 20 2d 20 |.gz> | t|ar tf - |
|000062d0| 7c 20 6c 65 73 73 0a 0a | 36 2e 34 2e 20 49 6e 73 || less..|6.4. Ins|
|000062e0| 74 61 6c 6c 69 6e 67 20 | 41 70 70 6c 69 63 61 74 |talling |Applicat|
|000062f0| 69 6f 6e 73 0a 0a 4d 6f | 73 74 20 4c 69 6e 75 78 |ions..Mo|st Linux|
|00006300| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 61 72 | applica|tions ar|
|00006310| 65 20 64 69 73 74 72 69 | 62 75 74 65 64 20 61 73 |e distri|buted as|
|00006320| 20 2e 74 61 72 2e 67 7a | 20 61 72 63 68 69 76 65 | .tar.gz| archive|
|00006330| 73 2c 20 73 70 65 63 69 | 66 69 63 61 6c 6c 79 20 |s, speci|fically |
|00006340| 0a 70 72 65 70 61 72 65 | 64 20 73 6f 20 74 68 61 |.prepare|d so tha|
|00006350| 74 20 74 68 65 79 20 63 | 61 6e 20 62 65 20 64 65 |t they c|an be de|
|00006360| 63 6f 6d 70 72 65 73 73 | 65 64 20 66 72 6f 6d 20 |compress|ed from |
|00006370| 2f 20 74 79 70 69 6e 67 | 20 74 68 65 20 66 6f 6c |/ typing| the fol|
|00006380| 6c 6f 77 69 6e 67 20 0a | 63 6f 6d 6d 61 6e 64 3a |lowing .|command:|
|00006390| 0a 09 23 20 67 7a 69 70 | 20 2d 64 63 20 3c 66 69 |..# gzip| -dc <fi|
|000063a0| 6c 65 2e 74 61 72 2e 67 | 7a 3e 20 7c 20 74 61 72 |le.tar.g|z> | tar|
|000063b0| 20 78 76 66 20 2d 0a 54 | 68 65 20 66 69 6c 65 73 | xvf -.T|he files|
|000063c0| 20 77 69 6c 6c 20 62 65 | 20 64 65 63 6f 6d 70 72 | will be| decompr|
|000063d0| 65 73 73 65 64 20 69 6e | 20 74 68 65 20 72 69 67 |essed in| the rig|
|000063e0| 68 74 20 64 69 72 65 63 | 74 6f 72 79 2c 20 77 68 |ht direc|tory, wh|
|000063f0| 69 63 68 20 77 69 6c 6c | 20 62 65 20 0a 63 72 65 |ich will| be .cre|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.