Журнал лабораторных работ

Содержание

Журнал

Четверг (10/01/15)

/dev/pts/4
13:41:53
#ps alx
F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
4     0     1     0  20   0  10648   832 -      Ss   ?          0:02 init [2]
1     0     2     0  20   0      0     0 -      S    ?          0:00 [kthreadd]
1     0     3     2  20   0      0     0 -      S    ?          0:00 [ksoftirqd/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:00 [watchdog/0]
1     0     8     2   0 -20      0     0 -      S<   ?          0:00 [cpuset]
1     0     9     2   0 -20      0     0 -      S<   ?          0:00 [khelper]
5     0    10     2  20   0      0     0 -      S    ?          0:00 [kdevtmpfs]
...
1  1000  2504     1  20   0  48612 11264 -      Ss   ?          1:31 l3-agent
1  1000  5015     1  20   0  18168   468 -      S    ?          0:00 script -f -c l3script -q /home/user/
0  1000  5016  5015  20   0  24444  3224 -      Ss+  pts/3      0:00 l3script
4     0  6342  2249  20   0  71292  3748 -      Ss   ?          0:00 sshd: root@pts/4
4     0  6344  6342  20   0  22152  2772 -      Ss   pts/4      0:00 -bash
0     0  6389  6344  20   0  18164   840 -      S+   pts/4      0:00 script -f -c l3script -q /root/.lila
1     0  6420  6389  20   0  18168   468 -      S+   pts/4      0:00 script -f -c l3script -q /root/.lila
0     0  6421  6420  20   0  23800  2444 -      Ss   pts/5      0:00 l3script
0     0  6597  6421  20   0   7708   324 -      T    pts/5      0:00 sleep 1000
4     0  6700  6421  20   0  10536   840 -      R+   pts/5      0:00 ps alx
13:42:19
#ps u -u user
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
user      2504  0.1  2.2  48612 11264 ?        Ss   Сен30   1:31 l3-agent
user      5015  0.0  0.0  18168   468 ?        S    Сен30   0:00 script -f -c l3script -q /home/user/.
user      5016  0.0  0.6  24444  3224 pts/3    Ss+  Сен30   0:00 l3script
13:43:09
#ps u -u root
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1  10648   832 ?        Ss   Сен30   0:02 init [2]
root         2  0.0  0.0      0     0 ?        S    Сен30   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    Сен30   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S    Сен30   0:00 [kworker/u:0]
root         6  0.0  0.0      0     0 ?        S    Сен30   0:00 [migration/0]
root         7  0.0  0.0      0     0 ?        S    Сен30   0:00 [watchdog/0]
root         8  0.0  0.0      0     0 ?        S<   Сен30   0:00 [cpuset]
root         9  0.0  0.0      0     0 ?        S<   Сен30   0:00 [khelper]
root        10  0.0  0.0      0     0 ?        S    Сен30   0:00 [kdevtmpfs]
...
root      2321  0.1  2.1  48504 11072 ?        Ss   Сен30   2:45 l3-agent
root      2414  0.0  0.0  18168   464 ?        S    Сен30   0:00 script -f -c l3script -q /root/.lilal
root      2415  0.0  0.4  21712  2392 pts/1    Ss+  Сен30   0:01 l3script
root      6342  0.0  0.7  71292  3748 ?        Ss   10:04   0:00 sshd: root@pts/4
root      6344  0.0  0.5  22152  2772 pts/4    Ss   10:04   0:00 -bash
root      6389  0.0  0.1  18164   840 pts/4    S+   10:07   0:00 script -f -c l3script -q /root/.lilalo//
root      6420  0.0  0.0  18168   468 pts/4    S+   10:07   0:00 script -f -c l3script -q /root/.lilalo//
root      6421  0.0  0.4  23800  2444 pts/5    Ss   10:07   0:00 l3script
root      6597  0.0  0.0   7708   324 pts/5    T    14:36   0:00 sleep 1000
root      6716  0.0  0.2  18948  1264 pts/5    R+   14:43   0:00 ps u -u root
13:43:38
#ps -u user -o "$%u %p %y %a"
$RUSER      PID TTY      COMMAND
$user      2504 ?        l3-agent
$user      5015 ?        script -f -c l3script -q /home/user/.lilalo//21591130272540327020-1443620234.scr
$user      5016 pts/3    l3script
13:44:36
#ps -u user -o "$%u %U %p %y %a"
$RUSER    USER       PID TTY      COMMAND
$user     user      2504 ?        l3-agent
$user     user      5015 ?        script -f -c l3script -q /home/user/.lilalo//21591130272540327020-14436
$user     user      5016 pts/3    l3script
13:45:02
#ps -ax -o "$%u %U %p %y %a" | awk '$1!=$2'
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
$RUSER    USER       PID TTY      COMMAND
$root     root         1 ?        init [2]
$root     root         2 ?        [kthreadd]
$root     root         3 ?        [ksoftirqd/0]
$root     root         5 ?        [kworker/u:0]
$root     root         6 ?        [migration/0]
$root     root         7 ?        [watchdog/0]
$root     root         8 ?        [cpuset]
...
$user     user      5015 ?        script -f -c l3script -q /home/user/.lilalo//21591130272540327020-1443620234.script
$user     user      5016 pts/3    l3script
$root     root      6342 ?        sshd: root@pts/4
$root     root      6344 pts/4    -bash
$root     root      6389 pts/4    script -f -c l3script -q /root/.lilalo//1513747822533332554-1443683242.script
$root     root      6420 pts/4    script -f -c l3script -q /root/.lilalo//1513747822533332554-1443683242.script
$root     root      6421 pts/5    l3script
$root     root      6597 pts/5    sleep 1000
$root     root      6740 pts/5    ps -ax -o $%u %U %p %y %a
$root     root      6741 pts/5    awk $1!=$2
13:47:57
#ps -ax -o "$%u %U %p %y %a" | awk '$1!=$2{print $3}'
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
PID
1
2
3
5
6
7
8
...
5015
5016
6342
6344
6389
6420
6421
6597
6749
6750
13:48:21
#top
top - 14:48:48 up 1 day,  2:40,  2 users,  load average: 0,06, 0,04, 0,05
Tasks:  59 total,   1 running,  57 sleeping,   1 stopped,   0 zombie
%Cpu(s):  0,3 us,  0,0 sy,  0,0 ni, 99,3 id,  0,0 wa,  0,0 hi,  0,0 si,  0,3 st
KiB Mem:    507368 total,   368700 used,   138668 free,    89860 buffers
KiB Swap:        0 total,        0 used,        0 free,   174624 cached
  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
    1 root      20   0 10648  832  696 S   0,0  0,2   0:02.23 init
    2 root      20   0     0    0    0 S   0,0  0,0   0:00.00 kthreadd
    3 root      20   0     0    0    0 S   0,0  0,0   0:00.62 ksoftirqd/0
    5 root      20   0     0    0    0 S   0,0  0,0   0:00.00 kworker/u:0
...
  Flags   = Task Flags <sched.h>
  CGROUPS = Control Groups
  SUPGIDS = Supp Groups IDs
  SUPGRPS = Supp Groups Names
  TGID    = Thread Group Id
top - 14:53:36 up 1 day,  2:45,  2 users,  load average: 0,92, 0,53, 0,25
%Cpu(s): 68,5 us,  0,0 sy,  0,0 ni,  0,0 id,  0,0 wa,  0,0 hi,  0,0 si, 31,5 st
 2504 user      1000   0 48612  11m 1632 S   0,0  2,2   1:32.21 l3-agent
   18 root         0   0     0    0    0 S   0,3  0,0   0:05.71 kworker/0:1
   18 root         0   0     0    0    0 S   0,0  0,0   0:05.71 kworker/0:1
13:53:36
#top
top - 14:53:50 up 1 day,  2:45,  2 users,  load average: 0,94, 0,56, 0,26
Tasks:  59 total,   2 running,  56 sleeping,   1 stopped,   0 zombie
%Cpu(s): 67,9 us,  0,0 sy,  0,0 ni,  0,0 id,  0,0 wa,  0,0 hi,  0,0 si, 32,1 st
KiB Mem:    507368 total,   373660 used,   133708 free,    90068 buffers
KiB Swap:        0 total,        0 used,        0 free,   178580 cached
  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
 2321 root      20   0 49188  11m 1636 R  99,5  2,3   6:25.90 l3-agent
 6342 root      20   0 71292 3748 2900 S   0,3  0,7   0:02.75 sshd
 6420 root      20   0 18168  468  308 S   0,3  0,1   0:02.06 script
    1 root      20   0 10648  832  696 S   0,0  0,2   0:02.23 init
...
   96 root      20   0     0    0    0 S   0,0  0,0   0:00.00 kworker/u:1
  125 root      20   0     0    0    0 S   0,0  0,0   0:01.72 jbd2/xvda1-8
  126 root       0 -20     0    0    0 S   0,0  0,0   0:00.00 ext4-dio-unwrit
  269 root      20   0 21248 1204  784 S   0,0  0,2   0:00.04 udevd
  362 root      20   0 21244  848  424 S   0,0  0,2   0:00.00 udevd
  365 root      20   0 21244  828  404 S   0,0  0,2   0:00.00 udevd
  389 root       0 -20     0    0    0 S   0,0  0,0   0:00.00 kpsmoused
  394 root      20   0     0    0    0 S   0,0  0,0   0:01.73 kworker/0:4
  425 root      20   0     0    0    0 S   0,0  0,0   0:00.71 flush-202:0
 1871 root      20   0 52772 1636 1204 S   0,0  0,3   0:00.03 rsyslogd
13:54:47
#top -d 1
top - 14:55:06 up 1 day,  2:46,  2 users,  load average: 0,64, 0,58, 0,29
Tasks:  59 total,   1 running,  57 sleeping,   1 stopped,   0 zombie
%Cpu(s):  0,0 us,  2,0 sy,  0,0 ni, 98,0 id,  0,0 wa,  0,0 hi,  0,0 si,  0,0 st
KiB Mem:    507368 total,   375900 used,   131468 free,    90116 buffers
KiB Swap:        0 total,        0 used,        0 free,   178664 cached
  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
    1 root      20   0 10648  832  696 S   0,0  0,2   0:02.23 init
    2 root      20   0     0    0    0 S   0,0  0,0   0:00.00 kthreadd
    3 root      20   0     0    0    0 S   0,0  0,0   0:00.63 ksoftirqd/0
    5 root      20   0     0    0    0 S   0,0  0,0   0:00.00 kworker/u:0
...
   96 root      20   0     0    0    0 S   0,0  0,0   0:00.00 kworker/u:1
  125 root      20   0     0    0    0 S   0,0  0,0   0:01.72 jbd2/xvda1-8
  126 root       0 -20     0    0    0 S   0,0  0,0   0:00.00 ext4-dio-unwrit
  269 root      20   0 21248 1204  784 S   0,0  0,2   0:00.04 udevd
  362 root      20   0 21244  848  424 S   0,0  0,2   0:00.00 udevd
  365 root      20   0 21244  828  404 S   0,0  0,2   0:00.00 udevd
  389 root       0 -20     0    0    0 S   0,0  0,0   0:00.00 kpsmoused
  394 root      20   0     0    0    0 S   0,0  0,0   0:01.73 kworker/0:4
  425 root      20   0     0    0    0 S   0,0  0,0   0:00.71 flush-202:0
 1871 root      20   0 52772 1636 1204 S   0,0  0,3   0:00.03 rsyslogd
13:56:07
#jobs

13:56:15
#jobs

прошло 10 минут
14:06:49
#fuser -v ~user/touchlist
Указанное имя файла /home/user/touchlist не существует.
14:11:13
#fuser -v ~user/touchlist

14:12:01
#fuser -v ~user/.touchlist.swp
Указанное имя файла /home/user/.touchlist.swp не существует.
14:12:16