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

Содержание

Журнал

Четверг (11/30/17)

/dev/pts/2
15:38:39
#cd /mnt/

15:38:48
#umount data/
umount: /mnt/data: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
15:38:53
#umount /mnt/data/
umount: /mnt/data: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
15:39:12
#fuser -v /mnt/data/
                     ПОÐID ДОСТУП КОМАНДА
/mnt/data:           root     kernel mount /mnt/data
                     user      19454 ..c.. l3script
15:39:55
#mount -o remount /dev/xvdb1 /mnt/data

15:40:51
#ls -l
итого 1
drwxr-xr-x 3 root root 1024 Ноя 30 16:08 data
15:42:13
#cd

15:42:18
#cd /mnt/data/

15:42:24
#> my

15:42:28
#ls
lost+found  my
15:42:29
#rm my

Пятница (12/01/17)

/dev/pts/6
08:21:42
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3e:00:00:04
          inet addr:192.168.13.4  Bcast:192.168.13.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe00:4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:198729 errors:0 dropped:0 overruns:0 frame:0
          TX packets:251490 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:19030792 (18.1 MiB)  TX bytes:39397874 (37.5 MiB)
          Interrupt:72
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
прошло 11 минут
/dev/pts/6
08:32:59
#cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/xvda1 during installation
UUID=92b79496-a6c3-450d-a438-766caa8504d8 /               ext4    errors=remount-ro 0       1
# swap was on /dev/xvda5 during installation
UUID=c74f7f49-4c6d-4208-81f6-14356114f2e0 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/xvdb1      /mnt/data       ext4    defaults                0       1
прошло 70 минут
09:43:21
#ps
  PID TTY          TIME CMD
21322 pts/7    00:00:00 l3script
21360 pts/7    00:00:00 ps
прошло 28 минут
10:12:15
#ps д
error: garbage option
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).
10:16:25
#ps дl
error: garbage option
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).
10:16:29
#ps Ðl
F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
4     0  2287     1  20   0  18368   968 -      Ss+  tty1       0:00 /sbin/getty 38400 tty1
4     0  2288     1  20   0  18368   972 -      Ss+  tty2       0:00 /sbin/getty 38400 tty2
4     0  2289     1  20   0  18368   972 -      Ss+  tty3       0:00 /sbin/getty 38400 tty3
4     0  2290     1  20   0  18368   972 -      Ss+  tty4       0:00 /sbin/getty 38400 tty4
4     0  2291     1  20   0  18368   968 -      Ss+  tty5       0:00 /sbin/getty 38400 tty5
4     0  2292     1  20   0  18368   972 -      Ss+  tty6       0:00 /sbin/getty 38400 tty6
0     0 16031 16030  20   0  21676  2372 -      Ss+  pts/1      0:00 l3script
0     0 18422 18421  20   0  21896  2488 -      Ss+  pts/3      0:01 l3script
4     0 21245 21243  20   0  22128  2820 -      Ss   pts/6      0:00 -bash
0     0 21290 21245  20   0  18164   844 -      S+   pts/6      0:00 script -f -c l3script -q /root/.lilalo//1137160292790729986-1512113578.script
1     0 21321 21290  20   0  18168   472 -      S+   pts/6      0:00 script -f -c l3script -q /root/.lilalo//1137160292790729986-1512113578.script
0     0 21322 21321  20   0  21664  2324 -      Ss   pts/7      0:00 l3script
4     0 21391 21322  20   0  10536   840 -      R+   pts/7      0:00 ps l
10:16:31
#ps a -o "%U %u %a"
USER     RUSER    COMMAND
root     root     /sbin/getty 38400 tty1
root     root     /sbin/getty 38400 tty2
root     root     /sbin/getty 38400 tty3
root     root     /sbin/getty 38400 tty4
root     root     /sbin/getty 38400 tty5
root     root     /sbin/getty 38400 tty6
root     root     l3script
root     root     l3script
user     user     l3script
root     root     -bash
root     root     script -f -c l3script -q /root/.lilalo//1137160292790729986-1512113578.script
root     root     script -f -c l3script -q /root/.lilalo//1137160292790729986-1512113578.script
root     root     l3script
root     root     ps a -o %U %u %a
10:24:15
#ps aux
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:03 [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]
...
root     20085  0.0  0.0      0     0 ?        S    Ноя30   0:03 [kworker/0:0]
root     20540  0.0  0.0      0     0 ?        S    Ноя30   0:00 [kworker/0:2]
root     20581  0.0  0.0      0     0 ?        S    Ноя30   0:00 [jbd2/xvdb1-8]
root     20582  0.0  0.0      0     0 ?        S<   Ноя30   0:00 [ext4-dio-unwrit]
root     21243  0.0  0.7  71288  3680 ?        Ss   09:32   0:00 sshd: root@pts/6
root     21245  0.0  0.5  22128  2820 pts/6    Ss   09:32   0:00 -bash
root     21290  0.0  0.1  18164   844 pts/6    S+   09:32   0:00 script -f -c l3script -q /root/.lilalo//1137160292790729986-1512113578.script
root     21321  0.0  0.0  18168   472 pts/6    S+   09:32   0:00 script -f -c l3script -q /root/.lilalo//1137160292790729986-1512113578.script
root     21322  0.0  0.4  21664  2324 pts/7    Ss   09:32   0:00 l3script
root     21412  0.0  0.2  18948  1260 pts/7    R+   11:26   0:00 ps aux
10:26:59