ps

report a snapshot of the current processes.

copy
21
12
ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,commTo see every process with a user-defined format:

details |

copy
11
1
ps -eLfTo get information about threads

details |

copy
9
1
ps -elyTo list every process on the system in long format.

details |

copy
9
3
ps axTo list every process on the system in BSD syntax

details |

copy
8
0
ps -elyTo list every process on the system in long format

details |

copy
8
0
ps -ejHTo print the process tree.

details |

copy
8
3
ps -eo euser,ruser,suser,fuser,f,comm,labelTo get security info:

details |

copy
4
0
ps -C syslogd -o pid=Print only the process IDs of syslogd

details |

copy
3
0
ps -p 2935 -o comm=Print only the name of PID 2935

details |

copy
3
1
ps axjfPrint the process tree in BSD form.

details |

copy
2
0
ps -p 2935 -o comm=Print only the name of PID 2935:

details |

copy
2
2
ps -eTo list every process on the system using standard syntax.

details |

copy
3
0
ps -eo pid,user,args --sort userHere are the different keywords that may be used to control the output format (e.g. with option -o) or to sort the selected processes with the GNU-style --sort option.

details |