linux常用命令學習
文件搜索命令學習
1:find————搜索命令 #占用資源
find /root -name inittab
find /root -name 'my*'
2:locate————在文件資料庫中查找 #類似于windows中的小阮家everything 搜索速度極快
locate locate
loctae inittab
但是需要和updatedb配合使用,注意:存在某些文件夾里的文件不會被更新到數(shù)據(jù)庫中如/tmp
3:which————查找命令(可以看到別名)
which ls
4:whereis————查看幫助信息
whereis ls
5:grap————在文件中搜索
grap multiuser /etc/inittab
grap -i multiuser /etc/inittab
grap -v ^# /etc/inittab 忽略行首
新聞熱點
疑難解答