常用命令汇总

grep 

-s 不显示错误信息。

 

http://man.linuxde.net/grep

在grep搜索结果中包括或者排除指定文件:

#只在目录中所有的.php和.html文件中递归搜索字符"main()"
grep "main()" . -r --include *.{php,html}

#在搜索结果中排除所有README文件
grep "main()" . -r --exclude "README"

#在搜索结果中排除filelist文件列表里的文件
grep "main()" . -r --exclude-from filelist

 查找对应名称的进程Id 

pgrep命令

查找线程是否高

top -H | grep xxx_thread

 

getrlimit  setrlimit 类似于 ulimit 命令 可以设置参数信息

http://man7.org/linux/man-pages/man2/getrlimit.2.html

posted @ 2019-05-09 23:13  aerfa_liang  阅读(115)  评论(0编辑  收藏  举报