Difference between revisions of "Process Snapshot"

From 6bit.ch wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:


== Useful Flags ==
== Useful Flags ==
<code>-e / -A</code> show all processes</br>
<code>-f</code> show full information</br>
<code>-f</code> show full information</br>
<code>-F</code> show fullest information</br>
<code>-F</code> show fullest information</br>
Line 13: Line 14:
<code>-g <group></code> show processes running from <group></br>
<code>-g <group></code> show processes running from <group></br>
<code>-T</code> show processes running in current terminal</br>
<code>-T</code> show processes running in current terminal</br>
<code>-L <pid></code> show only threads of <pid></br>
<code>-C <name></code> show only threads of <name></br>


= pstree =
= pstree =

Latest revision as of 17:08, 30 November 2022

ps

Shows running processes and their IDs.

Use

ps show running processes of current user in current terminal
ps aux BSD-style, show all running processes (-a) with user column (-u) inside and outside terminals (-x)

Useful Flags

-e / -A show all processes
-f show full information
-F show fullest information
-u <user> show processes running from <user>
-g <group> show processes running from <group>
-T show processes running in current terminal
-L <pid> show only threads of <pid>
-C <name> show only threads of <name>

pstree

Shows running processes in tree format.

Use

pstree show running processes sorted by starting order
pstree -a show running processes sorted by starting order with more information