ps
Process-Monitoring
PID β the process id
TTY β terminal associated with the process
TIME β elapsed CPU utilization time for the process
CMD β the executable command
# With -f option, it'll add the following columns:
UID β the user id of the process owner
PPID β the parent process id (in this particular snippet, rcu_gp was spawned by kthread)
C β the CPU utilization in percentage
STIME β the start time of the process
Furthermore, when ps can identify the process arguments, it will also print them in the CMD column.
# Print the processes of the current user and terminal
ps
# Print all the processes within the system
ps -e
# Search for a particular process name
ps -C myProcess
# Search for a particular process ID
ps -p 1,765
# Search for a particular user
ps -u root
# Listing Threads
ps -C myProcess -L
# Listing Child Processes (can't filter by process)
ps -e -H
# List real user and effective user
ps -C passwd -o pid,tty,ruser,user,cmd
Last updated