Difference between Linux command ps aux|grep and ps ef|grep (transfer)

I always thought that ps aux could list all the running processes. Recently, I found that there are still some defects. The results obtained with ps aux and -ef are different. Try to use the -ef parameter in the future.
 
The situation is like this. Use /bmrt/blaph/blaph/bmgctl to start the process. Since ps aux uses BSD format to display the results, it may only be displayed to /bmrt/blaph/blap, and the rest are truncated.
 
In this way, if you use ps aux | grep bmgctl to filter the process, you may be accidentally injured and the bmgctl process cannot be obtained.
 
And ps -ef uses the full format of the System V format, the display is the process name with the full path, and bmgctl will be displayed, and the process can be completely displayed under the ps -ef | grep bmgctl command!
 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326683104&siteId=291194637