shell常用基础

grep 查找命令

ps -ef  查看进程

ps -ef | grep java

ps -ef | grep sshd | grep -v grep    排除命令本身

在文本里面查看特定行      cat hello.txt | grep ^h          查看以h开头的行

find     find   路径    类型   名称  

find   /  -name   hello。txt   从根路径下找

find /   -perm 777           从根路径下查找权限位777

find  / -name '*.log '      查看以log结尾的文件

find  /  -size   +100  查找文件大于100M的文件

whereis   定位可执行文件

 

https://blog.csdn.net/GabrielCP/article/details/89649651

posted on 2019-06-15 12:11  床上小老虎  阅读(135)  评论(0)    收藏  举报

导航