proc:status_file
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
proc:status_file [2017/04/05 09:46] – peter | proc:status_file [2022/07/16 21:04] (current) – SD1cez <a href="http://itndopuumszb.com/">itndopuumszb</a>, [url=http://acjzzkejksfj.com/]acjzzkejksfj[/url], [link=http://vbrqueefsgid.com/]vbrqueefsgid[/link], http://doxjgwysfxnx.com/ 5.188.211.10 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Proc - Status file ====== | + | SD1cez |
- | + | ||
- | To get the status information of a process, all you have to do is read the file /proc/PID/status: | + | |
- | + | ||
- | <code bash> | + | |
- | cat /proc/self/status | + | |
- | </code> | + | |
- | + | ||
- | returns: | + | |
- | + | ||
- | < | + | |
- | Name: cat | + | |
- | State: | + | |
- | Tgid: | + | |
- | Pid: 5452 | + | |
- | PPid: 743 | + | |
- | TracerPid: | + | |
- | Uid: 501 | + | |
- | Gid: 100 | + | |
- | FDSize: 256 | + | |
- | Groups: 100 14 16 | + | |
- | VmPeak: | + | |
- | VmSize: | + | |
- | VmLck: | + | |
- | VmHWM: | + | |
- | VmRSS: | + | |
- | VmData: | + | |
- | VmStk: | + | |
- | VmExe: | + | |
- | VmLib: | + | |
- | VmPTE: | + | |
- | VmSwap: | + | |
- | Threads: | + | |
- | SigQ: 0/28578 | + | |
- | SigPnd: 0000000000000000 | + | |
- | ShdPnd: 0000000000000000 | + | |
- | SigBlk: 0000000000000000 | + | |
- | SigIgn: 0000000000000000 | + | |
- | SigCgt: 0000000000000000 | + | |
- | CapInh: 00000000fffffeff | + | |
- | CapPrm: 0000000000000000 | + | |
- | CapEff: 0000000000000000 | + | |
- | CapBnd: ffffffffffffffff | + | |
- | voluntary_ctxt_switches: | + | |
- | nonvoluntary_ctxt_switches: | + | |
- | </code> | + | |
- | + | ||
- | This shows you nearly the same information you would get if you viewed it with the **ps** command. | + | |
- | + |
proc/status_file.1491385567.txt.gz · Last modified: 2020/07/15 09:30 (external edit)