在Ubuntu中搜索特定文件,可使用以下命令:
mlocate(若未安装),用sudo apt-get install mlocate,再更新数据库sudo updatedb,然后搜索文件,如locate example.txt,可加选项-i忽略大小写、-n 5限制显示5个结果等。find [路径] -name "文件名",如find / -name "example.txt",可在路径后加-type f(仅搜文件)、-type d(仅搜目录)等选项,还能用通配符*、?。