????Linux????????????????????????????????????????????????????Linux??谓??妫�?????????????????????????校????????Linux???????琛�????????些???????3?????????????????谩?
????????????
????????????????Linux?????????????????(terminal)??shell??
??????谓?????????????????????????????????shell????????????些???????shell???????????????? 1??????????(executable file) 2??shell???????(built-in function) ) ????(alias)??????????????????????????????????????些?????路??????shell???校?????$/bin/ls??
??????些?????????????????????(???路??)???妫�?????貌??????????????????????????????????????????路??(absolute path)???????$ls(??????shell????????????ls??路??)???????些?????????邪???????????校???????????shell??????????????????????????????????????shell??????????????????????????????????????????????????????????
??????????????type???????????????????
????$type ls
????$type cd
????????????
??????????????????????????????????????路??????:
????$ls -l /home
????????????????????????????????? $??????????????????????????????????????????????????????????ls?????????ls????????谐???????????????????-l?????????????ls??谐???????????????????????/home????????????????谐???????/home??
??????????????????????????????????????????????????些?????? ??????????????????????????????????????????????????????????????????ls?????????????????????/home????????????????? (?????????:http://www.cnblogs.com/vamei/archive/2012/09/09/2676792.html)??
????vamei another
??????????????????????????????:
????$ls -l -a /home /bin
????$ls -la /home /bin
????(??????????????)
?????谐?/home??/bin???渭??????-a????谐???????(???????????????谐?)?? -l????谐?????????????????
????(?????????斜????????路???校????????????路???????)
????????Linux???????????????????????????????????????????????械??????????????????????????????????????????????????????械????????????????????????root??????????谩???????????vamei???????????????些???睢�????root??????????????????????????矛??????????vamei??????????????????????????sudo?? ????????root??????????????睢�????$sudo ls .
??????????????shell??????????????????????????$??????????????????????????rmdir??rmd???????Tab????Linux????????渭????????????rmdir??????????????????????????????Linux????????????????? $ls a.txt??????????$ls a.t???????Tab????Linux??????????????????$ls a.txt??????????????????????????rmd????????路????????????????????????rmdir???????卸???????????????????Tab??Linux????????械?????????睢�
????????????????
???????????????????????????????位???????????????些??????????????????
??????UNIX?????????????????????????shell????????????????????????????????????????????????????????Linux?????UNIX????????????????Linux????位????娌�??????????????械??????卸????????????????????位??????????????锟�??????shell?????????????????????
??????????????????? (function)???????小???????椤�??????????眉???????????????? (?????: ??????12:00????????????????????????????????)???????????????????位?????????????????????? (1. ??????锟�?2. ??????12:00)??????????????shell?????????????些???????????????????????????????????????shell?????校? ????貌??????协????? (???????date?????????????????????wget??????)??
??????????????????????
???????些?????????????????????????????????????????路????
????$which ls
????which ?????路??????????????????????路????
????$whereis ls
????whereis ??????????围??????????????????路????
????$whatis ls
????whatis ?煤??????浠�?????????睢�
????$man ls
????man ???????????????????????Linux?????????????????????写?????????????????????????????????????????????睢�
????(man??????????????Linux???????椋�???????????????Linux??????????????????????Linux??????????????谩?????????????Linux????????????????man?????????????)
????$info ls
????info ????????????????
??????????shell?校????????????????????????????械????睢�
?????????????
????$history
??????????????????械??????
?????????????????????????????????????????Ctrl + c??????????????????????Ctrl + z??????????????(signal)?泄???????????????
???????
??????????: ???shell?????????????????????谐???
????type
????sudo
????which?? whereis?? whatis?? man?? info
???????Tab?????????????????????history
????Ctrl + c?? Ctrl + z