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

Содержание

Журнал

Вторник (11/28/17)

/dev/pts/2
09:24:36
#update the values of LINES and COLUMNS.
cp: после «/root/.vimrc» пропущен операнд, задающий целевой файл
Попробуйте «cp --help» для получения более подробного описания.
09:25:03
#cp ~/ .vimrc
cp: пропускается каталог «/root/»
09:25:14
#cp ~/ .vimrc .
cp: пропускается каталог «/root/»
cp: не удалось выполнить stat для «.vimrc»: Нет такого файла или каталога
09:25:24
#cp ~/.vimrc .

09:25:45
#cd

09:28:30
#history
    1  ifconfig
    2  vim /etc/network/interfaces
    3  nano /etc/network/interfaces
    4  /etc/init.d/networking restart
    5  ifconfig
    6  route
    7  ping 192.168.13.253
    8  shutdown -r now
    9  exit
   10  ping ya.ru
...
  217  echo $HISTSIZE
  218  cd /etc/skel/
  219  vi .bshrc
  220  vi .bashrc
  221  cp ~/.vimrc
  222  cp ~/ .vimrc
  223  cp ~/ .vimrc .
  224  cp ~/.vimrc .
  225  cd
  226  history
прошло 24 минуты
09:52:44
#!235
l3script: !235: event not found
09:53:09
#!235
l3script: !235: event not found
09:53:35
#!216
echo $HISTSIZE
2000
09:54:43
#!226
history
    1  ifconfig
    2  vim /etc/network/interfaces
    3  nano /etc/network/interfaces
    4  /etc/init.d/networking restart
    5  ifconfig
    6  route
    7  ping 192.168.13.253
    8  shutdown -r now
    9  exit
...
  219  vi .bshrc
  220  vi .bashrc
  221  cp ~/.vimrc
  222  cp ~/ .vimrc
  223  cp ~/ .vimrc .
  224  cp ~/.vimrc .
  225* !
  226  history
  227  echo $HISTSIZE
  228  history
09:54:57
#!?-a
ifconfig -a | sed  s/00:16:4a:00:0.:a0/00:16:4a:00:0.:a$i/g
eth0      Link encap:Ethernet  HWaddr 00:16:3e:00:00:03
          inet addr:192.168.13.3  Bcast:192.168.13.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe00:3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:63548 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55338 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8941889 (8.5 MiB)  TX bytes:6428107 (6.1 MiB)
          Interrupt:72
...
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:74
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)
09:55:32
#!?-a
ifconfig -a | sed  s/00:16:4a:00:0.:a0/00:16:4a:00:0.:a$i/g
eth0      Link encap:Ethernet  HWaddr 00:16:3e:00:00:03
          inet addr:192.168.13.3  Bcast:192.168.13.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe00:3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:63599 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55418 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8944716 (8.5 MiB)  TX bytes:6440846 (6.1 MiB)
          Interrupt:72
...
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:74
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)
09:57:54
#!?-l
ls -l /bin/*sh
-rwxr-xr-x 1 root root 975488 Сен 25  2014 /bin/bash
-rwxr-xr-x 1 root root 106920 Мар  1  2012 /bin/dash
lrwxrwxrwx 1 root root     21 Ноя 28 09:26 /bin/ksh -> /etc/alternatives/ksh
lrwxrwxrwx 1 root root      4 Сен 25  2014 /bin/rbash -> bash
lrwxrwxrwx 1 root root     22 Ноя 28 09:26 /bin/rzsh -> /etc/alternatives/rzsh
lrwxrwxrwx 1 root root      4 Мар  1  2012 /bin/sh -> dash
lrwxrwxrwx 1 root root     21 Ноя 28 09:26 /bin/zsh -> /etc/alternatives/zsh
09:58:11
#history -w

/dev/pts/5
09:59:59
#history -r

/dev/pts/2
10:01:27
#history --help
l3script: history: --: неправильная опция
history: usage: history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...]
10:02:25
#help history
history: history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...]
    Display or manipulate the history list.
    Display the history list with line numbers, prefixing each modified
    entry with a `*'.  An argument of N lists only the last N entries.
    Options:
      -c        clear the history list by deleting all of the entries
      -d offset delete the history entry at offset OFFSET.
      -a