ps
The ps command is used to show the status of the running processes. This command reports the process ID, the related terminal type, the amount of time a procedure has used and the command being executed.
Syntax
ps [options]
Options:
-u <username> Displays the process status for a particular user
-e Displays the information about every process
-f Displays the full listing of header information
-t <terminal> Displays the process status for a particular terminal
The column headers are:
UID user's ID no. of the process's owner
PID process ID of the process
PPID process ID of the parent process
C for scheduling purposes the processor utilization used
STIME time the command started
TTY terminal from which the process was started
TIME for the process cumulative execution time
COMMAND name of the process started
The subsequent example displays how to get the procedure status of the processes executed from the current terminal
# ps
PID TTY TIME CMD
1077 pts/2 0:11 ls
1070 pts/2 0:00 sh
1072 pts/2 0:00 jsh
Note : A ? mark in the TTY column represents in which the process is begin automatically and there is no controlling terminal.