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

Содержание

Журнал

Пятница (03/31/17)

/dev/pts/7
08:39:39
#ps
  PID TTY          TIME CMD
 4365 pts/9    00:00:00 l3script
 4386 pts/9    00:00:00 ps
/dev/pts/6
08:39:39
#ps
  PID TTY          TIME CMD
 4365 pts/9    00:00:00 l3script
 4386 pts/9    00:00:00 ps
/dev/pts/7
08:42:33
#ps --help
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).
/dev/pts/6
08:42:33
#ps --help
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).
/dev/pts/7
08:43:46
#ps l
F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
4     0  2320     1  20   0  18368   976 -      Ss+  tty1       0:00 /sbin/getty
4     0  2321     1  20   0  18368   972 -      Ss+  tty2       0:00 /sbin/getty
4     0  2322     1  20   0  18368   976 -      Ss+  tty3       0:00 /sbin/getty
4     0  2323     1  20   0  18368   976 -      Ss+  tty4       0:00 /sbin/getty
4     0  2324     1  20   0  18368   964 -      Ss+  tty5       0:00 /sbin/getty
4     0  2325     1  20   0  18368   968 -      Ss+  tty6       0:00 /sbin/getty
4     0  4051  4049  20   0  22172  2864 -      Ss   pts/6      0:00 -bash
0     0  4208  4051  20   0  18164   840 -      S+   pts/6      0:00 script -f -
1     0  4239  4208  20   0  18168   468 -      S+   pts/6      0:00 script -f -
0     0  4240  4239  20   0  21708  2316 -      Ss   pts/7      0:00 l3script
0     0  4269  4240  20   0  21616  2228 -      S    pts/7      0:00 bash
0     0  4333  4269  20   0  18164   840 -      S+   pts/7      0:00 script -f -
1     0  4364  4333  20   0  18168   472 -      S+   pts/7      0:00 script -f -
0     0  4365  4364  20   0  21708  2320 -      Ss   pts/9      0:00 l3script
4     0  4402  4365  20   0  10536   840 -      R+   pts/9      0:00 ps l
0     0 32640 32639  20   0  21952  2520 -      Ss+  pts/1      0:01 l3script
/dev/pts/6
08:43:46
#ps l
F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
4     0  2320     1  20   0  18368   976 -      Ss+  tty1       0:00 /sbin/getty
4     0  2321     1  20   0  18368   972 -      Ss+  tty2       0:00 /sbin/getty
4     0  2322     1  20   0  18368   976 -      Ss+  tty3       0:00 /sbin/getty
4     0  2323     1  20   0  18368   976 -      Ss+  tty4       0:00 /sbin/getty
4     0  2324     1  20   0  18368   964 -      Ss+  tty5       0:00 /sbin/getty
4     0  2325     1  20   0  18368   968 -      Ss+  tty6       0:00 /sbin/getty
4     0  4051  4049  20   0  22172  2864 -      Ss   pts/6      0:00 -bash
0     0  4208  4051  20   0  18164   840 -      S+   pts/6      0:00 script -f -
1     0  4239  4208  20   0  18168   468 -      S+   pts/6      0:00 script -f -
0     0  4240  4239  20   0  21708  2316 -      Ss   pts/7      0:00 l3script
0     0  4269  4240  20   0  21616  2228 -      S    pts/7      0:00 bash
0     0  4333  4269  20   0  18164   840 -      S+   pts/7      0:00 script -f -
1     0  4364  4333  20   0  18168   472 -      S+   pts/7      0:00 script -f -
0     0  4365  4364  20   0  21708  2320 -      Ss   pts/9      0:00 l3script
4     0  4402  4365  20   0  10536   840 -      R+   pts/9      0:00 ps l
0     0 32640 32639  20   0  21952  2520 -      Ss+  pts/1      0:01 l3script
/dev/pts/7
08:44:26
#ps -l
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
0 S     0  4365  4364  0  80   0 -  5427 -      pts/9    00:00:00 l3script
4 R     0  4410  4365  0  80   0 -  2634 -      pts/9    00:00:00 ps
/dev/pts/6
08:44:26
#ps -l
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
0 S     0  4365  4364  0  80   0 -  5427 -      pts/9    00:00:00 l3script
4 R     0  4410  4365  0  80   0 -  2634 -      pts/9    00:00:00 ps
/dev/pts/7
08:44:30
#ps al
F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
4     0  2320     1  20   0  18368   976 -      Ss+  tty1       0:00 /sbin/getty
4     0  2321     1  20   0  18368   972 -      Ss+  tty2       0:00 /sbin/getty
4     0  2322     1  20   0  18368   976 -      Ss+  tty3       0:00 /sbin/getty
4     0  2323     1  20   0  18368   976 -      Ss+  tty4       0:00 /sbin/getty
4     0  2324     1  20   0  18368   964 -      Ss+  tty5       0:00 /sbin/getty
4     0  2325     1  20   0  18368   968 -      Ss+  tty6       0:00 /sbin/getty
4     0  4051  4049  20   0  22172  2864 -      Ss   pts/6      0:00 -bash
0     0  4208  4051  20   0  18164   840 -      S+   pts/6      0:00 script -f -
1     0  4239  4208  20   0  18168   468 -      S+   pts/6      0:00 script -f -
0     0  4240  4239  20   0  21708  2316 -      Ss   pts/7      0:00 l3script
0     0  4269  4240  20   0  21616  2228 -      S    pts/7      0:00 bash
0     0  4333  4269  20   0  18164   840 -      S+   pts/7      0:00 script -f -
1     0  4364  4333  20   0  18168   472 -      S+   pts/7      0:00 script -f -
0     0  4365  4364  20   0  21708  2320 -      Ss   pts/9      0:00 l3script
4     0  4418  4365  20   0  10536   840 -      R+   pts/9      0:00 ps al
0  1000  8635  8634  20   0  22272  3056 -      Ss   pts/3      0:00 l3script
0  1000  8862  8635  20   0  33768  2976 -      S+   pts/3      0:00 /usr/bin/vi
0  1000 14135 14134  20   0  22308  3120 -      Ss   pts/5      0:00 l3script
0  1000 14548 14135  20   0  33664  2672 -      S+   pts/5      0:00 /usr/bin/vi
0     0 32640 32639  20   0  21952  2520 -      Ss+  pts/1      0:01 l3script
/dev/pts/6
08:44:30
#ps al
F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
4     0  2320     1  20   0  18368   976 -      Ss+  tty1       0:00 /sbin/getty
4     0  2321     1  20   0  18368   972 -      Ss+  tty2       0:00 /sbin/getty
4     0  2322     1  20   0  18368   976 -      Ss+  tty3       0:00 /sbin/getty
4     0  2323     1  20   0  18368   976 -      Ss+  tty4       0:00 /sbin/getty
4     0  2324     1  20   0  18368   964 -      Ss+  tty5       0:00 /sbin/getty
4     0  2325     1  20   0  18368   968 -      Ss+  tty6       0:00 /sbin/getty
4     0  4051  4049  20   0  22172  2864 -      Ss   pts/6      0:00 -bash
0     0  4208  4051  20   0  18164   840 -      S+   pts/6      0:00 script -f -
1     0  4239  4208  20   0  18168   468 -      S+   pts/6      0:00 script -f -
0     0  4240  4239  20   0  21708  2316 -      Ss   pts/7      0:00 l3script
0     0  4269  4240  20   0  21616  2228 -      S    pts/7      0:00 bash
0     0  4333  4269  20   0  18164   840 -      S+   pts/7      0:00 script -f -
1     0  4364  4333  20   0  18168   472 -      S+   pts/7      0:00 script -f -
0     0  4365  4364  20   0  21708  2320 -      Ss   pts/9      0:00 l3script
4     0  4418  4365  20   0  10536   840 -      R+   pts/9      0:00 ps al
0  1000  8635  8634  20   0  22272  3056 -      Ss   pts/3      0:00 l3script
0  1000  8862  8635  20   0  33768  2976 -      S+   pts/3      0:00 /usr/bin/vi
0  1000 14135 14134  20   0  22308  3120 -      Ss   pts/5      0:00 l3script
0  1000 14548 14135  20   0  33664  2672 -      S+   pts/5      0:00 /usr/bin/vi
0     0 32640 32639  20   0  21952  2520 -      Ss+  pts/1      0:01 l3script
/dev/pts/7
08:44:44
#ps alx
F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
4     0     1     0  20   0  10648   828 -      Ss   ?          0:09 init [2]
1     0     2     0  20   0      0     0 -      S    ?          0:00 [kthreadd]
1     0     3     2  20   0      0     0 -      S    ?          0:02 [ksoftirqd/
1     0     5     2  20   0      0     0 -      S    ?          0:00 [kworker/u:
1     0     6     2 -100  -      0     0 -      S    ?          0:00 [migration/
5     0     7     2 -100  -      0     0 -      S    ?          0:05 [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  5685     1  20   0  49516 12180 -      Ss   ?          9:02 l3-agent
1  1000  8634     1  20   0  18168   468 -      S    ?          0:00 script -f -
0  1000  8635  8634  20   0  22272  3056 -      Ss   pts/3      0:00 l3script
0  1000  8862  8635  20   0  33768  2976 -      S+   pts/3      0:00 /usr/bin/vi
1  1000 14134     1  20   0  18168   468 -      S    ?          0:00 script -f -
0  1000 14135 14134  20   0  22308  3120 -      Ss   pts/5      0:00 l3script
0  1000 14548 14135  20   0  33664  2672 -      S+   pts/5      0:00 /usr/bin/vi
1     0 14993     2  20   0      0     0 -      S    ?          0:03 [kworker/0:
1     0 32639     1  20   0  18168   468 -      S    ?          0:00 script -f -
0     0 32640 32639  20   0  21952  2520 -      Ss+  pts/1      0:01 l3script
/dev/pts/6
08:44:44
#ps alx
F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
4     0     1     0  20   0  10648   828 -      Ss   ?          0:09 init [2]
1     0     2     0  20   0      0     0 -      S    ?          0:00 [kthreadd]
1     0     3     2  20   0      0     0 -      S    ?          0:02 [ksoftirqd/
1     0     5     2  20   0      0     0 -      S    ?          0:00 [kworker/u:
1     0     6     2 -100  -      0     0 -      S    ?          0:00 [migration/
5     0     7     2 -100  -      0     0 -      S    ?          0:05 [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  5685     1  20   0  49516 12180 -      Ss   ?          9:02 l3-agent
1  1000  8634     1  20   0  18168   468 -      S    ?          0:00 script -f -
0  1000  8635  8634  20   0  22272  3056 -      Ss   pts/3      0:00 l3script
0  1000  8862  8635  20   0  33768  2976 -      S+   pts/3      0:00 /usr/bin/vi
1  1000 14134     1  20   0  18168   468 -      S    ?          0:00 script -f -
0  1000 14135 14134  20   0  22308  3120 -      Ss   pts/5      0:00 l3script
0  1000 14548 14135  20   0  33664  2672 -      S+   pts/5      0:00 /usr/bin/vi
1     0 14993     2  20   0      0     0 -      S    ?          0:03 [kworker/0:
1     0 32639     1  20   0  18168   468 -      S    ?          0:00 script -f -
0     0 32640 32639  20   0  21952  2520 -      Ss+  pts/1      0:01 l3script
/dev/pts/7
08:45:51
#ps uax
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1  10648   828 ?        Ss   Мар24   0:09 init [2]
root         2  0.0  0.0      0     0 ?        S    Мар24   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    Мар24   0:02 [ksoftirqd/0
root         5  0.0  0.0      0     0 ?        S    Мар24   0:00 [kworker/u:0
root         6  0.0  0.0      0     0 ?        S    Мар24   0:00 [migration/0
root         7  0.0  0.0      0     0 ?        S    Мар24   0:05 [watchdog/0]
root         8  0.0  0.0      0     0 ?        S<   Мар24   0:00 [cpuset]
root         9  0.0  0.0      0     0 ?        S<   Мар24   0:00 [khelper]
root        10  0.0  0.0      0     0 ?        S    Мар24   0:00 [kdevtmpfs]
...
user      5685  0.1  2.4  49516 12180 ?        Ss   Мар27   9:02 l3-agent
user      8634  0.0  0.0  18168   468 ?        S    Мар28   0:00 script -f -c
user      8635  0.0  0.6  22272  3056 pts/3    Ss   Мар28   0:00 l3script
user      8862  0.0  0.5  33768  2976 pts/3    S+   Мар28   0:00 /usr/bin/vi
user     14134  0.0  0.0  18168   468 ?        S    Мар29   0:00 script -f -c
user     14135  0.0  0.6  22308  3120 pts/5    Ss   Мар29   0:00 l3script
user     14548  0.0  0.5  33664  2672 pts/5    S+   Мар29   0:00 /usr/bin/vi
root     14993  0.0  0.0      0     0 ?        S    Мар29   0:03 [kworker/0:0
root     32639  0.0  0.0  18168   468 ?        S    Мар30   0:00 script -f -c
root     32640  0.0  0.4  21952  2520 pts/1    Ss+  Мар30   0:01 l3script
/dev/pts/6
08:45:51
#ps uax
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1  10648   828 ?        Ss   Мар24   0:09 init [2]
root         2  0.0  0.0      0     0 ?        S    Мар24   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    Мар24   0:02 [ksoftirqd/0
root         5  0.0  0.0      0     0 ?        S    Мар24   0:00 [kworker/u:0
root         6  0.0  0.0      0     0 ?        S    Мар24   0:00 [migration/0
root         7  0.0  0.0      0     0 ?        S    Мар24   0:05 [watchdog/0]
root         8  0.0  0.0      0     0 ?        S<   Мар24   0:00 [cpuset]
root         9  0.0  0.0      0     0 ?        S<   Мар24   0:00 [khelper]
root        10  0.0  0.0      0     0 ?        S    Мар24   0:00 [kdevtmpfs]
...
user      5685  0.1  2.4  49516 12180 ?        Ss   Мар27   9:02 l3-agent
user      8634  0.0  0.0  18168   468 ?        S    Мар28   0:00 script -f -c
user      8635  0.0  0.6  22272  3056 pts/3    Ss   Мар28   0:00 l3script
user      8862  0.0  0.5  33768  2976 pts/3    S+   Мар28   0:00 /usr/bin/vi
user     14134  0.0  0.0  18168   468 ?        S    Мар29   0:00 script -f -c
user     14135  0.0  0.6  22308  3120 pts/5    Ss   Мар29   0:00 l3script
user     14548  0.0  0.5  33664  2672 pts/5    S+   Мар29   0:00 /usr/bin/vi
root     14993  0.0  0.0      0     0 ?        S    Мар29   0:03 [kworker/0:0
root     32639  0.0  0.0  18168   468 ?        S    Мар30   0:00 script -f -c
root     32640  0.0  0.4  21952  2520 pts/1    Ss+  Мар30   0:01 l3script
/dev/pts/7
08:47:27
#ps -o "%u %U %y %a" ax