ps 下面对命令选项进行说明: -e 显示所有进程。 -f 全格式。 -h 不显示标题。 -l 长格式。 -w 宽输出。 a 显示终端上的所有进程,包括其他用户的进程。 r 只显示正在运行的进程。 x 显示没有控制终端的进程。 -elf比-ef多的就是以长格式输出,也就是信息显示的完整些ps -af 列出当前用户所有跟terminal关联的进程详细信息 ps -ax 列出所有进程的信息 ps -elf 列出所有进程长格式的详细信息 grep fgrep egrep 区别 man grep Egrep is the same as grep -E. Fgrep is the same as grep -F. -F, --fixed-strings Interpret PATTERN as a list of fixed strings, separated by new- lines, any of which is to be matched.grep -R “关键字” 目录 //可以搜素子目录 关键字的引号非常重要。
grep -A 10 -B 10 关键字 搜素日志时候用
lsof
Linux 常用命令集锦
最新推荐文章于 2024-05-20 09:02:22 发布