Sunday, May 23, 2010

檔案搜尋指令whereis, locate, find, which

給未來的裕翔

鳥哥建議先用whereis和locate, 找不到再考慮用find

當我whereis xxx的時候

會列出最後路徑最後一欄含有xxx的

如果是locate xxx

則路徑當中有etc的都會列出

ex:

which ps

=> /bin/ps

whereis

=> ps: /bin/ps /usr/share/man/man1/ps.1.gz

No comments:

Post a Comment