在CentOS中查找文件可使用以下命令:
find /path -name "文件名"
find . -mtime -7
sudo updatedb
locate example.txt
which ls
whereis ls
提示:find適合復雜條件搜索,locate適合快速查找已知文件,which/whereis用于定位特定類型文件。
find
locate
which/whereis