Отобразить все процессы в порядке нагрузки , с интревалом обновления .




Отображает процессы без обновления , и сортировки

Basic options
-A, -eall processes
-aall with tty, except session leaders
aall with tty, including other users
-dall except session leaders
-N, –deselectnegate selection
ronly running processes
Tall processes on this terminal
xprocesses without controlling ttys


Selection by list
-C <command> command name
-G, –Group <GID>  session or effective group name
-g, –group <group>  process id
-p, p, –pid <PID>  parent process id
-q, q, –quick-pid <PID> process id (quick mode)
 -s, –sid <session> session id
 -t, t, –tty <tty>  terminal
 -u, U, –user <UID> effective user id or name
 -U, –User <UID>  real user id or name
 The selection options take as their argument either: a comma-separated list e.g. ‘-u root,nobody’ or a blank-separated list e.g. ‘-p 123 4567’


Output formats
-Fextra full
-ffull-format, including command lines
f, –forestascii art process tree
-Hshow process hierarchy
-jjobs format
jBSD job control format
-llong format
lBSD long format
-M, Zadd security data (for SELinux)
-O <format> preloaded with default columns
O <format>as -O, with BSD personality
-o, o, –format <format>user-defined format
s signal format
uuser-oriented format
vvirtual memory format
Xregister format
-ydo not show flags, show rss vs. addr (used with -l)

–contextdisplay security context (for SELinux)
–headersrepeat header lines, one per page
–no-headersdo not print header at all
–cols, –columns, –width <num>set screen width
–rows, –lines <num>set screen height


Show threads
Has if they were processes
-Lpossibly with LWP and NLWP columns
-m, mafter processes
-Tpossibly with SPID column


Miscellaneous options
-cshow scheduling class with -l option
cshow true command name
eshow the environment after command
k, –sortsort order as: [+|-]key[,[+|-]key[,…]]
Lshow format specifiers
ndisplay numeric uid and wchan
S, –cumulativeinclude some dead child process data
-ydo not show flags, show rss (only with -l)
-V, V, –versiondisplay version information and exit
-w, wunlimited output width


Выводим все процессы с различных териналов

ps uax 


Пишем результат вывода в файл в домашней директории

ps uax  >> ~/process.txt

Leave a Reply

Your email address will not be published. Required fields are marked *