????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