May 16, 2009

Using Shell commands to manage your directories and change working paths —— Chinese Simplified

mkdirÃëΩâ°ÂªÂ§

ÃäüÃÃΩúöÃàõêâ«â°âÃâ°ââ¢ÃõÃÃΩïúàñªâ°ÂºÂºMSDOSâ°âãÃöÃmdÃëΩâ°ÂªÂ§ÃºââÃÃ

ÃÃâ Ãâ¥Ã¯Ãºömkdir [ÃÃâðÏ] dir-name

ÃÃÂ¥ÃòéúöÃÃâ¢ÃëΩâ°ÂªÂ§Ãàõêâ«Ãî±dir-nameÃëΩÃêçÃöÃÃõÃÃΩïâÃÃöÃñÃÃàõêâ«ÃõÃÃΩïÃöÃÃî®ÃàâÃú®ÃΩìÃâçÃõÃÃΩïâ°ââ Ãºàdir-nameÃöÃÃàâÃõÃÃΩïâ°ââ ÃºâÃÃâÃúâÃÃôÃùÃÃôêúåÃÏââ°âîdirnameâ°âçÃÃΩÃòÃÃΩìÃâçÃõÃÃΩïâ°ââ Ãââ¤ÃúâÃöÃÃõÃÃΩïÃàñ Ãñáâ°ÂªâÃêçÃÃââÃÃ

ÃëΩâ°ÂªÂ§â°ââ ÃêÃÃÃâðÏÃöÃÃê´â°Ïââ°ââ«Ãºö

- m ÃÃÏÃñâêâ«ÃõÃÃΩïÃÃæÃΩÃÃâ Ã²ÃèñÃùÃÃôêâÃÃâ°ÏüÃèÃâ°Âªâ¢Ãî®chmodÃëΩâ°ÂªÂ§ÃÃæÃΩÃâÃÃ

- p ÃèÃâ°Âªâ¢ÃòÃâ°âÃâ°ââ¢ÃâÃÃæÃÃêçÃÃââÃÃÃâ Â§ÃóâÃãâ¢ÃâÃÃæÃâ°ââ ÃöÃÃüêâ°â«ÃµÃõÃÃΩïÃâöâ°âçÃâ Ã²Ãú®Ãºå Ãäâ â°âäÃâ Â§ÃÃâðÏÃêéúå Ãâ¥ÂªÃªüÃâÃÃáâ¢Ãä®Ãªâ«Ã´ãÃâ¢Î©Ããâ°â«ÃµÃâöâ°âçÃâ Ã²Ãú®ÃöÃÃõÃÃΩïúåÃçâ¥â°âÃè°ÃèÃâ°Âªâ¢Ãªâ«Ã´ãçöâ°ââ¢ÃõÃÃΩïâÃÃ

rmdir ÃëΩâ°ÂªÂ§

ÃäüÃÃΩúöÃàâ Ãô§Ã©â«ÃõÃÃΩïâÃÃ

ÃÃâ Ãâ¥Ã¯Ãºörmdir [ÃÃâðÏ] dir-name

ÃÃÂ¥Ãòéúödir-nameð®Ã§â«ÃõÃÃΩïÃêçâÃÃÃÃâ¢ÃëΩâ°ÂªÂ§â°ÂªÃ©â°âÃâ°ââ¢ÃõÃÃΩïâ°ââ Ãàâ Ãô§â°âÃâ°ââ¢Ãàñçöâ°ââ¢Ãâ ÃªÃõÃÃΩïðÏâÃÃÃúÃöà ÃâÏÃà´Ãâ¥Â®ÃÃèÃöÃÃòÃúåâ°âÃâ°ââ¢ÃõÃÃΩïâ´Ãàâ Ãô§â°ÏãÃâçÃøÃðªÃòÃéâ«ÃöÃâÃÃrm - r dirÃëΩâ°ÂªÂ§ÃèÃâ°ÂªÂ£Ãõø rmdirúåâ°Î©ÃÃòÃÃúâÃç±Ãô©ÃÃÃâÃÃÃàâ Ãô§ÃüêÃõÃÃΩïÃóââ°ÏüÃøÃðªÃÃâÃúâÃÃÏÃàâÃõÃÃΩïÃöÃÃÃôÃùÃÃôêâÃÃ

ÃëΩâ°ÂªÂ§â°ââ ÃêÃÃÃâðÏÃöÃÃê´â°Ïââ°ââ«Ãºö

- p ÃÃíÃΩíÃàâ Ãô§ÃõÃÃΩïdirnameúåÃΩìÃâ ÃªÃõÃÃΩïÃàâ Ãô§ÃêéÃÃâÃàâÃõÃÃΩïâ°ââ«Ã©â«Ãóâúåâ°Ïüâ°âÃÃêåâ´Ãàâ Ãô§âÃÃöÃÃûúÃï¥â°ââ¢ÃâÃÃæÃâ´Ãàâ Ãô§ÃàñÃÃÃÃî±â°â«Ã©ÃüêÃÃçÃéüÃõâ â°Ã¸Ã¹ÃïôÃîÃàÃÃâÃÃæÃúåÃàôÃâ¥ÂªÃªüÃú®Ãâ Ã¡ÃáÃÃæìÃáâ«â°âäÃòæçâ«ÃõâÃâ«Ã® ÃöÃâ°Ã¸Â°ÃÃÃâÃÃ

cd ÃëΩâ°ÂªÂ§

ÃäüÃÃΩúöÃîÏÃèòÃââ¢â°Î©ÃºÃõÃÃΩïâÃÃ

ÃÃâ Ãâ¥Ã¯Ãºöcd [directory]

ÃÃÂ¥ÃòéúöÃÃâ¢ÃëΩâ°ÂªÂ§ÃâÃÃΩìÃâçÃõÃÃΩïÃîÏÃèòÃáâ¥directoryÃâÃÃåáÃÃöÃöÃÃõÃÃΩïâÃÃÃãâ¢Ãâ¤Â°ÃúâÃåáÃÃödirectoryúå ÃàôÃõûÃàâÃî®ÃàâÃöÃâ°âªÃõÃÃΩïâÃÃâ°ââ«â°â«ÃÃîÏÃèòÃàâÃåáÃÃöÃõÃÃΩïúåÃî®ÃàâÃøÃðªÃãâ¢ÃúâÃÃÏÃåáÃÃöÃõÃÃΩïÃöÃÃâÃðåÃíåÃê ÃùÃÃôêâÃÃ

ÃÃâ¢ÃëΩâ°ÂªÂ§ÃèÃâ°Âªâ¢â°Î©Ã¸Ãî®ÃÃöÃÃçè¶ÃºàÃÃöÃÃçè¶Ãê´â°ÏâÃÃâÃèÃÃÃÃè¨ÃçÃôâ ÃºââÃÃ

pwd ÃëΩâ°ÂªÂ§

Ãú®LinuxñÃè°ÃõÃÃΩïêìÃûÃâ°ââ ÃºåÃî®ÃàâÃèÃâ°Âªâ¢Ãú®Ã¢´ÃéàÃùÃÃöÃâ°ÂªÂªÃÃèÃõÃÃΩïâ°âãÃà©Ãî®mkdirÃëΩâ°ÂªÂ§Ãàõêâ«ÃñâÃõÃÃΩïúåâ°ÏüÃèÃâ°Âªâ¢Ãà©Ãî®cdÃëΩâ°ÂªÂ§â°ÂªÃ©â°âÃâ°ââ¢ÃõÃÃΩïÃΩ¨Ãç¢ÃàâÃè¶â°âÃâ°ââ¢ÃõÃÃΩïâÃÃÃÃâÃÃåúåÃâ¤Â°ÃúâÃèêçâ«Ã¨¶Ãùâ¢ÃëäÃüâ¢Ãî® ÃàâÃõÃÃâççÃâ°â«Ã©Ãìâ¢â°âÃâ°ââ¢ÃõÃÃΩïâ°ââ âÃÃöÃÃÃâ¥Ãüâ¢ÃÃìÃΩìÃâçÃâÃçÃÃöÃÃõÃÃΩïúåÃèÃâ°Âªâ¢â°Î©Ã¸Ãî®pwdÃëΩâ°ÂªÂ§ÃºåÃÃâ¢ÃëΩâ°ÂªÂ§Ãòæçâ«Ãï¥â°ââ¢ÃâÃÃæÃÃêçâÃÃ

ÃÃâ Ãâ¥Ã¯Ãºöpwd

ÃÃÂ¥ÃòéúöÃâ Â§ÃëΩâ°ÂªÂ§Ãòæçâ«Ãáâ«ÃΩìÃâçÃââ¢â°Î©ÃºÃõÃÃΩïÃöÃêùÃÃÏÃâÃÃæÃâÃÃ

ls ÃëΩâ°ÂªÂ§

lsÃòÃÃã±ÃñáÃçïÃÃçlistÃöÃÃÃÃÃÃôúåÃÃâÃäüÃÃΩâ°ââ«ÃàóÃáâ«ÃõÃÃΩïÃöÃÃÃÃÃÃÏâÃÃÃøôÃòÃÃî®ÃàâÃúÃÃââÃî®ÃöÃâ°âÃâ°ââ¢ÃëΩâ°ÂªÂ§â°Ïãâ°âÃúåÃõâ â°ââ«Ãî®ÃàâÃúÃöÃâ°âçÃóâÃúâÃüâ¢ÃúãÃüêâ°ââ¢ÃõÃÃΩïÃöÃÃÃÃÃÃÏâÃÃÃÃâ¢ÃëΩâ°ÂªÂ§Ã±ªâ°ÂºÂºâ°â«Ã©DOSâ°âãÃöÃdirÃëΩâ°ÂªÂ§âÃÃ

ÃÃâ Ãâ¥Ã¯Ãºöls [ÃÃâðÏ] [ÃõÃÃΩïÃàñÃòÃÃñáâ°Âªâ]

ÃÃÏâ°â«Ã©ÃÃèâ°ââ¢ÃõÃÃΩïúåÃÃâ¢ÃëΩâ°ÂªÂ§ÃâÃÃàóÃáâ«ÃÃââ°ââ ÃöÃÃâÃÃúâÃâ ÃªÃõÃÃΩïâ°âéÃñáâ°ÂªââÃÃÃÃÏâ°â«Ã©ÃÃèâ°ââ¢Ãñáâ°ÂªâúålsÃâÃÃæìÃá⫠ÃÃâÃñáâ°ÂªâÃêçâ°Âªâ¢ÃèäÃâÃöÃñÃÃöÃÃÃââ°ÂªÃ±â°Ã¸Â°ÃÃÃâÃÃêòÃçÃÃÃÃõâ°âãúåÃæìÃáâ«Ãù°ÃõÃÃåâÃâ Ã³ÃÃçðâ«Ãâ«Ã¨ÃéíÃâ«Ã¨âÃÃÃΩìÃúâ¢ÃªôÃáâ«ÃõÃÃΩïÃêçÃàñÃòÃÃñáâ°ÂªâÃêçÃóâúåÃâ±Ãòæçâ«ÃΩìÃâçÃõÃÃΩïÃöÃâ°Ã¸Â°ÃÃÃâÃÃ

ÃëΩâ°ÂªÂ§â°ââ ÃêÃÃÃâðÏÃöÃÃê´â°ÏâöÃâ°âãúö

- a Ãòæçâ«ÃåáÃÃöÃõÃÃΩïâ°âãÃâÃÃúâÃâ ÃªÃõÃÃΩïâ°âéÃñáâ°ÂªâúåÃÃ¥ÃÃã¨ÃöêÃóèÃñáâ°ÂªââÃÃ

- A Ãòæçâ«ÃåáÃÃöÃõÃÃΩïâ°âãÃâÃÃúâÃâ ÃªÃõÃÃΩïâ°âéÃñáâ°ÂªâúåÃÃ¥ÃÃã¨ÃöêÃóèÃñáâ°ÂªââÃÃâ°Î©Ãâ°âçÃàóÃáâ«"."Ãíå ".."âÃÃ

- b ÃÃÏÃñáâ°ÂªâÃêçâ°ââ ÃöÃâ°âçÃèÃÃòæçâ«Ãâ Ã³Ã¨¶Ãî®ÃôÃøõÃàâÃÃÃÃÃâÃâ Ã³Ã¨¶Ãòæçâ«âÃÃ

- c ÃåâÃñáâ°ÂªâÃöÃâ°Ã¸ÃÃîÏÃóâÃó¥ÃéíÃâ«Ã¨âÃÃ

- C ÃàÃÃàêçöÃàóÃòæçâ«ÃêÃðÏâÃÃ

- d öÃÃûúÃèÃÃïâÃòÃÃõÃÃΩïúåÃèâ¢Ãòæçâ«ÃÃâÃêçÃÃâÃÃÃ¥â°âçÃòæçâ«ÃÃââ°âãÃöÃÃêÃÃñáâ°ÂªââÃÃÃæÃÃæÃâ°âélÃÃâðÏâ°âÃõââ°Î©Ã¸ Ãî®Ãºåâ°Âªâ¢ÃæóÃàâÃõÃÃΩïÃöÃÃöêÃâ°Ã¸Â°ÃÃÃâÃÃ

- f â°âçÃéíÃâ«Ã¨âÃÃÃÃâ¢ÃÃâðÏÃâÃâ°Î©Ã¸ltsÃÃâðÏç±ÃïàúåÃÏââ°Î©Ã¸aUÃÃâðÏÃúâÃïàâÃÃ

- F Ãú®ÃõÃÃΩïÃêçÃêéÃù¢Ãâ Ã¡ÃÃâ"/"úåÃèÃÃâÃðåÃñáâ°ÂªâÃêéÃù¢Ãâ Ã¡ÃÃâ"*"úåè¶ÃèâÃìæÃéâ¢ÃêéÃù¢Ãâ Ã¡ÃÃâ "@"úåÃðÃÃìúàÃàñFIFOúâÃêéÃù¢Ãâ Ã¡ÃÃâ"|"úåsocketÃñáâ°ÂªâÃêéÃù¢Ãâ Ã¡ÃÃâ"="âÃÃ

- i Ãú®ÃæìÃáâ«ÃöÃè¨â°âÃÃàóÃòæçâ«Ãñáâ°ÂªâÃöÃiÃäÃÃÃÏÃèââÃÃ

- l â°Âªâ¢ÃïøÃâ ÂºÃºèÃùâ¢Ãòæçâ«Ãñáâ°ÂªâÃöÃÃöêÃâ°Ã¸Â°ÃÃÃâÃÃÃøôâ°ââ¢ÃÃâðÏÃúÃÃââÃî®âÃÃ

ÃÃèðåÃàóÃáâ«ÃöÃâ°Ã¸Â°ÃÃÃâ°Ã¦Ã¹Ã¨°ÃòÃúö Ãñáâ°ÂªâñªÃûãâ°âéÃùÃÃôê ÃìæÃéâ¢Ãïâ Ãñáâ°Âªâñûâ°âª Ãñáâ°Âªâñûêà Ãñáâ°ÂªâçÃÃâè êâ«Ã´ãÃàñÃúÃÃøëâ°Ã¸ÃÃîÏÃöÃÃóâÃó¥ ÃêçÃâ Ã³

ÃÃÏâ°â«Ã©Ã¨¶ÃèâÃìæÃéâ¢Ãñáâ°ÂªâúåÃòæçâ«ÃöÃÃñáâ°ÂªâÃêçâ°ÏãÃêéÃúâ"-âÃâ"ÃíåúïÃî®Ãñáâ°ÂªâÃâÃÃæÃÃêçâÃÃ

ÃÃÏâ°â«Ã©ÃÃæçáÃñáâ°ÂªâúåÃÃâ"Ãñáâ°ÂªâçÃÃâè"Ãâ Ã³ÃõÃòæçâ«â°âªâÃÃè°ÃÃæçáÃèâúåÃÃÃ¥â°âçÃòÃÃñáâ°ÂªâçÃÃâèâÃÃ

ÃõÃÃΩïâ°ââ ÃöÃÃêÃùóÃïâÃòæçâ«Ãú®ÃïøÃâ ÂºÃºèÃàóð®ÃöÃúÃç¥ÃºåÃÃââ°ââ ÃÃ¥ÃÃê´Ãó¥Ãéâ¢ÃùóâÃÃ

- L Ããâ¢ÃåáÃÃöÃöÃÃêçÃÃââ°ââ«â°âÃâ°ââ¢Ã¨¶ÃèâÃìæÃéâ¢Ãñáâ°ÂªâúåÃàôÃòæçâ«ÃìæÃéâ¢ÃâÃÃåáÃêëÃöÃÃñáâ°ÂªââÃÃ

- m ÃæìÃáâ«ÃåâÃâ Ã³Ã¨¶ÃµÃÃâ ÂºÃºèúåÃñáâ°ÂªâÃâ®Ã°µÃòæçâ«Ãºåâ°Âªâ¢ÃÃóÃèâÃàÃúÃâÃÃ

- n ÃæìÃáâ«Ãâ ÂºÃºèâ°âélÃÃâðÏÃõâÃêåúåÃèâ¢â°âçÃøáÃú®ÃæìÃáâ«â°ââ Ãñáâ°Âªâñûâ°âªÃíåñûêÃÃòÃÃî®ÃõâÃâ«Ã®ÃöÃUIDÃèâÃíå GIDÃèâÃùâ¢Ã°®Ã§â«ÃºåÃÃÃ¥â°âçÃòÃÃÃûÃôÃÃöÃÃêçÃÃââÃÃ

- o â°âélÃÃâðÏÃõâÃêåúåÃèâ¢ÃòÃâ°âçÃòæçâ«Ããâ¢ÃúâÃÃÃâ°Ã¸Â°ÃÃÃâÃÃ

- p Ãú®ÃõÃÃΩïÃêéÃù¢Ãäâ â°âÃâ°ââ¢"/"âÃÃ

- q ÃâÃÃñáâ°ÂªâÃêçâ°ââ ÃöÃâ°âçÃèÃÃòæçâ«Ãâ Ã³Ã¨¶Ãî®"?"â°ÂªÂ£ÃõøâÃÃ

- r ÃåâÃâ Ã³ÃÃçÃÃÃÃâ«Ã¨ÃàñÃúÃÃó©â°ÂºÃ²ÃÃàÃöÃðâ«Ãâ«Ã¨Ãòæçâ«ÃæìÃáâ«ÃªìÃûúâÃÃ

- R ÃÃíÃΩíúèÃúâÃòæçâ«ÃåáÃÃöÃõÃÃΩïÃöÃÃêÃâ°ââ¢Ãâ ÃªÃõÃÃΩïâ°ââ ÃöÃÃñáâ°ÂªââÃÃ

- s êôÃáâ«ÃÃèâ°ââ¢ÃõÃÃΩïðÏÃâÃÃî®ÃöÃÃùóÃïâúåÃÃ¥ÃÃã¨Ãó¥Ãéâ¢ÃùóâÃÃ

- t Ãòæçâ«ÃóâÃåââ°Ã¸ÃÃîÏÃóâÃó¥ÃºàÃúÃÃøëâ°ÂºÃ²ÃÃàúâÃÃÃ¥â°âçÃòÃÃåâÃêçÃâ Ã³ÃéíÃâ«Ã¨âÃÃÃãâ¢Ãñáâ°Âªââ°Ã¸ÃÃîÏÃóâÃó¥ÃõâÃêåúåÃàô ÃåâÃâ Ã³ÃÃâðâ«Ãâ«Ã¨âÃÃâ°Ã¸ÃÃîÏÃóâÃó¥ÃèñÃÃâ¥â°â«Ã©ÃòÃÃê¶â°Î©Ã¸Ãî®â°â«ÃcÃàñuÃÃâðââÃÃúâ«ÃúÃÃöÃÃóâÃó¥Ãâ Ã¡ÃÃâÃòÃÃúÃÃêéâ°âÃè°â°Ã¸Ã ÃîÏÃóâÃó¥âÃÃ

- u Ãòæçâ«ÃóâÃåâÃñáâ°Âªââ°âäè°Ãâ Ã²ÃèñÃöÃÃóâÃó¥ÃºàÃúÃÃøëâ°ÂºÃ²ÃÃàúâÃÃÃ¥â°âçÃòÃÃåâÃêçÃâ Ã³ÃéíÃâ«Ã¨âÃÃÃçâ¥ÃâÃ-tÃöÃÃóâÃó¥ Ãâ Ã¡ÃÃââ°Ã¸ÃÃîÏâ°ââ«ÃúÃÃêéâ°âÃè°ÃÃøÃóÃÃöÃÃóâÃó¥âÃÃ

- x ÃåâðåÃòæçâ«Ãáâ«ÃêÃÃéíÃâ«Ã¨Ã°ÏÃöÃâ°Ã¸Â°ÃÃÃâÃÃ

Ãî®ls - lÃëΩâ°ÂªÂ§Ãòæçâ«ÃöÃâ°Ã¸Â°ÃÃÃâ°ââ ÃºåúÃç¥ÃòÃÃî±10â°ââ¢Ãâ Ã³Ã¨¶ÃûÃÃàêÃöÃÃâ Ã³Ã¨¶â°ââ¤ÃºåÃÃââ°ââ Ã¨¨â°âÃâ°ââ¢Ãâ Ã³Ã¨¶Ã°®Ã§â«Ãñáâ°ÂªâñªÃûãúåÃÃÃÃèÃâ°Âªâ¢ÃòÃâ°âãÃøâñªÃûãâ°Ïãâ°âÃúö

- ÃôÃÃÃöÃñáâ°Âªâ

d ÃõÃÃΩï

l è¶ÃèâÃìæÃéâ¢

b ÃùóÃÃæçáÃñáâ°Âªâ

c Ãâ Ã³Ã¨¶ÃÃæçáÃñáâ°Âªâ

ÃêéÃù¢ÃöÃ9â°ââ¢Ãâ Ã³Ã¨¶Ã°®Ã§â«Ãñáâ°ÂªâÃöÃÃÃøÃóÃÃùÃÃôêúåÃàÃâ°ââ«3êÃúåÃÃèêÃ3â°Î©Ã§âÃÃ

è¨â°âÃêÃð®Ã§â«Ãñáâ°Âªâñûâ°âªÃöÃÃùÃÃôêúåè¨â°â«Ã¥ÃªÃð®Ã§â«ÃêåêÃÃî®ÃàâÃöÃÃùÃÃôêúåè¨â°ââêÃð®Ã§â«ÃÃââ°ÂªÃ±Ãî®ÃàâÃöÃÃùÃÃôêâÃÃÃÃèâ°âÃêÃÃöÃâ°âââ°ââ¢Ãâ Ã³ è¶ÃàÃÃà´Ã°®Ã§â«ÃÃÏÃñáâ°ÂªâÃöÃÃêâÃÃÃÃôÃíåÃâÃðåÃùÃÃôêâÃÃ

ÃêÃÃùÃÃôêöÃâ°âãÃâÃçâ«Ãºö

r Ãê

w ÃÃô

x ÃâÃðåâÃÃÃÃÏâ°â«Ã©ÃõÃÃΩïúåð®Ã§â«ÃøõÃÃâ¢ÃùÃÃôêâÃÃ

s ÃΩìÃñáâ°Âªââ´ÃâÃðåÃóâúåÃääÃÃâ¢Ãñáâ°ÂªâÃöÃUIDÃàñGIDõãâ°â«Ã ÃâÃðåÃøõîãÃöÃUIDúàÃî®ÃàâIDúâÃàñGIDúàêà IDúââÃÃ

t ÃÃæÃΩÃÃâ Ã¡Ãøóâ°Î©Ã§ÃºàÃïôÃú®ÃÃÃÃâ Ã²Ãºåâ°âçâ´Ãç¢Ãáâ«ÃºââÃÃöÃÃûúÃÃâ¢Ãñáâ°ÂªâÃòÃÃõÃÃΩïúåÃú®ÃÃâ¢ÃõÃÃΩïâ°ââ ÃöÃÃñáâ°ÂªâÃèâ¢ÃÃΩâ´ÃâÃÃâ«ÃÃî®ÃàââÃÃÃõÃÃΩïÃãâ¢ÃúâÃÃÃÃàñÃñáâ°Âªâñûâ°âªÃàâ Ãô§âÃÃöÃÃûúÃÃÃÃòÃÃèÃÃâÃðåÃñáâ°ÂªâúåÃú®ÃÃâ¢Ãñáâ°ÂªâÃâÃðå ÃêéúåÃåáÃêëÃÃâÃâ Â£ÃñáÃõÃöÃÃåáÃíàâ°ÂªÃ§ÃïôÃú®ÃÃÃÃâ Ã²âÃÃÃøôÃâ âÃÃçè°ÃâÃðåÃÃÃÃóâúåÃâ¥ÂªÃªüÃâ±ÃÃΩÃõ¥Ãø´ÃúâãÃÃÃâ¢ÃÃâ¢Ãñáâ°ÂªââÃÃ

Click Here!