給未來的裕翔
如果想用cal指令看2010年7,8,9月
cal 8 2010 -3
那個-3就是以8月為中心的連續三個月
-2呢? 不行喔^^
剛看了一下, 好像只有-3可用^^"
Showing posts with label util-linux-ng. Show all posts
Showing posts with label util-linux-ng. Show all posts
Sunday, August 1, 2010
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
鳥哥建議先用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
Subscribe to:
Posts (Atom)