How do i use the ps command to view every system process in bsd-format?
-
Here you can see it lists the entire command and all args without truncating the output.
To see what the STAT codes mean check this article: https://www.lightnetics.com/post/10665
$ ps ax PID TTY STAT TIME COMMAND ... ... 4756 ? Sl 0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4423x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/4423/2 ... ...
Add the u option and it provided additional columns and the user association.
vsz VSZ virtual memory size of the process in KiB (1024-byte units). Device mappings are currently excluded; this is subject to change. (alias vsize). rss RSS resident set size, the non-swapped physical memory that a task has used (in kiloBytes). (alias rssize, rsz). %cpu %CPU cpu utilization of the process in "##.#" format. Currently, it is the CPU time used divided by the time the process has been running (cputime/realtime ratio), expressed as a percentage. It will not add up to 100% unless you are lucky. (alias pcpu). %mem %MEM ratio of the process's resident set size to the physical memory on the machine, expressed as a percentage. (alias pmem).
$ ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND ... ... trainer+ 4756 0.0 0.6 807796 49756 ? Sl Jul22 0:00 /usr/lib/evolution/evolution-calendar-factory-subprocess --factory contacts --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx4423x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/4423/2
© Lightnetics 2024