linux命令之find (1)

環境:ubuntu10


命令find:

使用方法:find findpath  -name  filename    

舉例如下圖:


說明:創建testfind.txt,執行locate testfind.txt,沒有任何結果

說明database沒有被刷新

執行find /home..../shell -name testfind.txt有了結果

find命令比較強大,如果將上面的路徑改爲/,那麼需找時間將會大大加大


發佈了34 篇原創文章 · 獲贊 2 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章