我在Linux使用ps命令进行进程名称查找的时候出现了一个问题,我要查找的进程的名字是“ACheackSystem”当然这个进程是我自己写的一个程序,当名字过长的时候ps -e查不到这个进程,使用ps -ef的时候可以查找到这个进程,当我把程序的名称改为MAIN的时候,两个命令都可以查找到,请问这个是怎么回事?
是不是,进程的名字太长了,ps -e | grep xxxx查找不到?
关于Linux上ps -ef和ps -e命令的问题
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
oyljerry 2016-12-30 01:48关注直接ps -e能不能显示你的程序,如果可以,那么grep应该能找到
-f只是增加一些列等,-e就会显示所有进程-f Do full-format listing. This option can be combined with many other UNIX-style options to add additional columns. It also causes the command arguments to be printed. When used with -L, the NLWP (number of threads) and LWP (thread ID) columns will be added. See the c option, the format keyword args, and the format keyword comm.解决评论 打赏 举报无用 1