1, ps aux: shows all process information
2, ps -u root: shows a specified user information
3, ps -ef: show all process information, along with the command line
ps -ef | grep ssh
4, ps -axjf display program tree
5, ps aux | egrep "(cron | syslog)": find out with cron and syslog services related to both the PID
6, ps aux | more: Paging View
ps -aux>>aa.txt
ps -o pid, ppid, pgrp, session, tpgid, comm: specified output Fields
7, PS - EF | grep the Apache: the process of searching by name or command.
8, process, use the "-p" option, and you can also specify multiple process id separated by commas to be displayed through the process id.
ps - f - p 3150 , 7298 , 6544
9, by using a sort of memory or cpu
ps to - out = - pcpu | head - 5
10. The process according to search for the name and construct a tree display
ps -f --forest -C java
11, displays all threads in the process id of the process of the 3150
ps -l -p 3150
12, find out all the examples from the apache process fork process.
ps -o pid,uname,comm -C apache2