/l3/users/16-07-2018/NT-Ladm/debian2.net.nt/root :1 :2 :3 :4 :5 |
|
#ps -aux | grep -v USER,*PID,*%CPU | sort -n +3
![]() sort: операция открытия завершилась неудачно: +3: Нет такого файла или каталога warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ |
#man sort
|
#ps -aux | grep -v USER,*PID,*%CPU | sort -n 3
![]() sort: операция открытия завершилась неудачно: 3: Нет такого файла или каталога warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ |
#ps -aux | grep -v USER,*PID,*%CPU | sort -k 3
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ root 21 0.0 0.0 0 0 ? SN Июл16 0:00 [ksmd] root 95 0.0 0.0 0 0 ? S< Июл16 0:00 [ata_sff] root 15 0.0 0.0 0 0 ? S Июл16 0:00 [bdi-default] root 8 0.0 0.0 0 0 ? S< Июл16 0:00 [cpuset] root 23 0.0 0.0 0 0 ? S< Июл16 0:00 [crypto] root 136 0.0 0.0 0 0 ? S< Июл16 0:00 [ext4-dio-unwrit] root 22 0.0 0.0 0 0 ? S Июл16 0:00 [fsnotify_mark] root 17 0.0 0.0 0 0 ? S< Июл16 0:00 [kblockd] ... user 18276 0.0 0.3 71288 1748 ? S 09:22 0:00 sshd: user@pts/4 root 15383 0.0 0.4 21708 2396 pts/1 Ss+ Июл19 0:00 l3script root 18160 0.0 0.4 21876 2376 pts/3 Ss 09:04 0:00 l3script user 18277 0.0 0.5 22108 2772 pts/4 Ss+ 09:22 0:00 -bash root 18083 0.0 0.5 22132 2816 pts/2 Ss 09:04 0:00 -bash root 18274 0.0 0.7 71288 3600 ? Ss 09:22 0:00 sshd: user [priv] root 18081 0.0 0.7 71288 3680 ? Ss 09:04 0:00 sshd: root@pts/2 root 2338 0.2 2.3 49124 11744 ? Ss Июл16 16:27 l3-agent user 2823 0.2 3.8 56992 19392 ? Ss Июл16 15:05 l3-agent USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND |
#man sort
|
#pstree
init─┬─acpid ├─cron ├─exim4 ├─6*[getty] ├─2*[l3-agent] ├─rpc.idmapd ├─rpc.statd ├─rpcbind ├─rsyslogd───3*[{rsyslogd}] ├─script───l3script ├─sshd─┬─sshd───bash───script───script───l3script───pstree │ └─sshd───sshd───bash └─udevd───2*[udevd] |
#pstree -p
init(1)─┬─acpid(1917) ├─cron(11832) ├─exim4(2252) ├─getty(2279) ├─getty(2280) ├─getty(2281) ├─getty(2282) ├─getty(2283) ├─getty(2284) ├─l3-agent(2338) ... ├─rpc.statd(17136) ├─rpcbind(16906) ├─rsyslogd(1877)─┬─{rsyslogd}(1878) │ ├─{rsyslogd}(1880) │ └─{rsyslogd}(1881) ├─script(15382)───l3script(15383) ├─sshd(17778)─┬─sshd(18081)───bash(18083)───script(18128)───script(18159)───l3script(18160)───pstree(18613+ │ └─sshd(18274)───sshd(18276)───bash(18277) └─udevd(279)─┬─udevd(370) └─udevd(375) |
#uptime
09:34:27 up 4 days, 20 min, 2 users, load average: 0,03, 0,02, 0,05 |
#top
![]() top - 09:34:57 up 4 days, 21 min, 2 users, load average: 0,02, 0,02, 0,05 Tasks: 63 total, 2 running, 61 sleeping, 0 stopped, 0 zombie %Cpu(s): 0,0 us, 0,2 sy, 0,0 ni, 99,2 id, 0,6 wa, 0,0 hi, 0,0 si, 0,0 st Change delay from 3,0 to 1 KiB Mem: 507368 total, 483824 used, 23544 free, 136588 buffers KiB Swap: 0 total, 0 used, 0 free, 228872 cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 18629 root 20 0 25288 1588 1128 R 0,2 0,3 0:00.01 top 1 root 20 0 10648 836 696 S 0,0 0,2 0:06.92 init 2 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kthreadd ... 2823 user 20 0 56992 18m 1704 S 0,0 3,8 15:06.74 l3-agent 11832 root 20 0 22520 1072 824 S 0,0 0,2 0:00.22 cron 15382 root 20 0 18168 472 308 S 0,0 0,1 0:00.31 script 15383 root 20 0 21708 2388 1712 S 0,0 0,5 0:00.47 l3script 16906 root 20 0 18972 960 696 S 0,0 0,2 0:00.13 rpcbind 17136 statd 20 0 23344 1356 896 S 0,0 0,3 0:00.00 rpc.statd 17141 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 rpciod 17143 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 nfsiod 17150 root 20 0 25296 420 204 S 0,0 0,1 0:00.00 rpc.idmapd 17778 root 20 0 49932 1204 600 S 0,0 0,2 0:00.00 sshd |
#^C
![]() |
#pstree -p
init(1)─┬─acpid(1917) ├─cron(11832) ├─exim4(2252) ├─getty(2279) ├─getty(2280) ├─getty(2281) ├─getty(2282) ├─getty(2283) ├─getty(2284) ├─l3-agent(2338) ... ├─rpc.statd(17136) ├─rpcbind(16906) ├─rsyslogd(1877)─┬─{rsyslogd}(1878) │ ├─{rsyslogd}(1880) │ └─{rsyslogd}(1881) ├─script(15382)───l3script(15383) ├─sshd(17778)─┬─sshd(18081)───bash(18083)───script(18128)───script(18159)───l3script(18160)───pstree(18821+ │ └─sshd(18274)───sshd(18276)───bash(18277)───script(18631)───script(18702)───l3script(18703)─+++ └─udevd(279)─┬─udevd(370) └─udevd(375) |
#ps -aux | grep -v USER,*PID,*%CPU | sort -k 3
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ root 2295 0.0 0.0 0 0 ? D Июл16 0:03 [flush-202:0] root 135 0.0 0.0 0 0 ? D Июл16 0:07 [jbd2/xvda1-8] root 21 0.0 0.0 0 0 ? SN Июл16 0:00 [ksmd] root 95 0.0 0.0 0 0 ? S< Июл16 0:00 [ata_sff] root 15 0.0 0.0 0 0 ? S Июл16 0:00 [bdi-default] root 8 0.0 0.0 0 0 ? S< Июл16 0:00 [cpuset] root 23 0.0 0.0 0 0 ? S< Июл16 0:00 [crypto] root 136 0.0 0.0 0 0 ? S< Июл16 0:00 [ext4-dio-unwrit] ... root 18160 0.0 0.4 21880 2364 pts/3 Ss 09:04 0:00 l3script user 18277 0.0 0.5 22108 2800 pts/4 Ss 09:22 0:00 -bash root 18083 0.0 0.5 22132 2808 pts/2 Ss 09:04 0:00 -bash user 18703 0.0 0.6 22356 3144 pts/5 Ss 09:36 0:00 l3script root 18274 0.0 0.7 71288 3600 ? Ss 09:22 0:00 sshd: user [priv] root 18081 0.0 0.7 71288 3680 ? Ss 09:04 0:00 sshd: root@pts/2 user 2823 0.2 3.8 56992 19392 ? Ss Июл16 15:06 l3-agent root 2338 0.3 2.4 50156 12668 ? Ss Июл16 18:03 l3-agent user 18795 3.1 0.1 11976 632 pts/5 D+ 09:37 0:01 dd if=/dev/zero of=/tmp/file1 bs=4096 count=409600 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND |
#htop
|
# Mem[|||||||||||||||||||||||||||||||||||||||79/495MB] Load average: 2.43 1.14 0.48
![]() |
#^C
![]() |
#ps -t tty1
PID TTY TIME CMD 2279 tty1 00:00:00 getty |
#ps -t tty2
PID TTY TIME CMD 2280 tty2 00:00:00 getty |
#who
root pts/2 2018-07-20 09:04 (192.168.15.128) user pts/4 2018-07-20 09:22 (192.168.15.128) |
#ps -ta tty2
![]() error: TTY could not be found Usage: ps [options] Try 'ps --help <simple|list|output|threads|misc|all>' or 'ps --help <s|l|o|t|m|a>' for additional help text. For more details see ps(1). |
#ps -ta tty1
![]() error: TTY could not be found Usage: ps [options] Try 'ps --help <simple|list|output|threads|misc|all>' or 'ps --help <s|l|o|t|m|a>' for additional help text. For more details see ps(1). |
#ps -t tty1
PID TTY TIME CMD 2279 tty1 00:00:00 getty |
#ps -ax
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ PID TTY STAT TIME COMMAND 1 ? Ss 0:06 init [2] 2 ? S 0:00 [kthreadd] 3 ? S 0:06 [ksoftirqd/0] 4 ? S 0:09 [kworker/0:0] 5 ? S 0:00 [kworker/u:0] 6 ? S 0:00 [migration/0] 7 ? S 0:03 [watchdog/0] ... 18159 pts/2 S+ 0:00 script -f -c l3script -q /root/.lilalo//15834199522385123276-1532066654.script 18160 pts/3 Ss 0:00 l3script 18274 ? Ss 0:00 sshd: user [priv] 18276 ? S 0:00 sshd: user@pts/4 18277 pts/4 Ss 0:00 -bash 18631 pts/4 S+ 0:00 script -f -c l3script -q /home/user/.lilalo//8918171212027832622-1532068581.script 18702 pts/4 S+ 0:00 script -f -c l3script -q /home/user/.lilalo//8918171212027832622-1532068581.script 18703 pts/5 Ss 0:00 l3script 18933 pts/5 S+ 0:00 top 18934 pts/3 R+ 0:00 ps -ax |
#ps -lax
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND 4 0 1 0 20 0 10648 836 - Ss ? 0:06 init [2] 1 0 2 0 20 0 0 0 - S ? 0:00 [kthreadd] 1 0 3 2 20 0 0 0 - S ? 0:06 [ksoftirqd/0] 1 0 4 2 20 0 0 0 - S ? 0:09 [kworker/0:0] 1 0 5 2 20 0 0 0 - S ? 0:00 [kworker/u:0] 1 0 6 2 -100 - 0 0 - S ? 0:00 [migration/0] 5 0 7 2 -100 - 0 0 - S ? 0:03 [watchdog/0] ... 1 0 18159 18128 20 0 18168 472 - S+ pts/2 0:00 script -f -c l3script -q /root/.lilalo//158341 0 0 18160 18159 20 0 21880 2364 - Ss pts/3 0:00 l3script 4 0 18274 17778 20 0 71288 3600 - Ss ? 0:00 sshd: user [priv] 5 1000 18276 18274 20 0 71288 1748 - S ? 0:00 sshd: user@pts/4 0 1000 18277 18276 20 0 22108 2800 - Ss pts/4 0:00 -bash 0 1000 18631 18277 20 0 18164 836 - S+ pts/4 0:00 script -f -c l3script -q /home/user/.lilalo//8 1 1000 18702 18631 20 0 18168 468 - S+ pts/4 0:00 script -f -c l3script -q /home/user/.lilalo//8 0 1000 18703 18702 20 0 22356 3144 - Ss pts/5 0:00 l3script 0 1000 18933 18703 20 0 25296 1568 - S+ pts/5 0:00 top 4 0 18942 18160 20 0 10536 840 - R+ pts/3 0:00 ps -lax |
#ps -lax
warning: bad ps syntax, perhaps a bogus '-'? See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND 4 0 1 0 20 0 10648 836 - Ss ? 0:06 init [2] 1 0 2 0 20 0 0 0 - S ? 0:00 [kthreadd] 1 0 3 2 20 0 0 0 - S ? 0:06 [ksoftirqd/0] 1 0 4 2 20 0 0 0 - S ? 0:09 [kworker/0:0] 1 0 5 2 20 0 0 0 - S ? 0:00 [kworker/u:0] 1 0 6 2 -100 - 0 0 - S ? 0:00 [migration/0] 5 0 7 2 -100 - 0 0 - S ? 0:03 [watchdog/0] |