如何列出mlocate資料庫檔案中的所有檔案?

如何列出mlocate資料庫檔案中的所有檔案?

updatedb運行時它會產生一個mlocate.db檔案。如何列出mlocate.db檔案中的所有檔案?

locate *

它是否正確?

答案1

正確的命令是locate '*'orlocate "*"locate \*

必須*加引號以避免 shell 將其擴展為目前工作目錄中存在的名稱。

相關內容