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

Содержание

Журнал

Понедельник (04/02/12)

/dev/pts/2
14:56:37
#sysctl net.inet6.ip6.forwarding
net.inet6.ip6.forwarding: 0
14:56:50
#vim /etc/rc.conf
--- /tmp/l3-saved-2677.4619.10790	2012-04-02 16:12:54.000000000 +0300
+++ /etc/rc.conf	2012-04-02 16:13:31.000000000 +0300
@@ -10,7 +10,8 @@
 font8x8="cp866-8x8"
 gateway_enable="YES"
 hostname="freebsd4.net.nt"
-ifconfig_re0="inet 192.168.13.24  netmask 255.255.255.0"
+#ifconfig_re0="inet 192.168.13.24  netmask 255.255.255.0"
+ifconfig_re1="inet 192.168.200.3 netmask 255.255.255.240"
 ifconfig_re0_alias1="inet 192.168.13.2  netmask 255.255.255.0"
 inetd_enable="YES"
 keymap="ru.koi8-r"
прошло 16 минут
15:13:31
#ssh root@192.168.13.253
root@192.168.13.253's password:
Permission denied, please try again.
root@192.168.13.253's password:
Linux fobos 3.1.0-rc9+ #1 SMP Sun Apr 1 22:29:39 EEST 2012 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Apr  2 15:41:42 2012 from 192.168.13.24
...
~
~
~
~
~
~
"route" [Новый] 4L, 148C записано
fobos:~# exit
logout
Connection to 192.168.13.253 closed.
15:16:40
#vim /usr/src/sys/i386/conf/
--- /tmp/l3-saved-2677.15932.26575	2012-04-02 17:18:26.000000000 +0300
+++ /etc/rc.conf	2012-04-02 17:19:06.000000000 +0300
@@ -4,7 +4,7 @@
 # Enable network daemons for user convenience.
 # Please make all changes to this file, not to /etc/defaults/rc.conf.
 # This file now contains just the overrides from /etc/defaults/rc.conf.
-defaultrouter="192.168.13.253"
+defaultrouter="192.168.200.1"
 font8x14="cp866-8x14"
 font8x16="cp866b-8x16"
 font8x8="cp866-8x8"
@@ -12,7 +12,7 @@
 hostname="freebsd4.net.nt"
 #ifconfig_re0="inet 192.168.13.24  netmask 255.255.255.0"
 ifconfig_re1="inet 192.168.200.3 netmask 255.255.255.240"
-ifconfig_re0_alias1="inet 192.168.13.2  netmask 255.255.255.0"
+#ifconfig_re0_alias1="inet 192.168.13.2  netmask 255.255.255.0"
 inetd_enable="YES"
 keymap="ru.koi8-r"
 mousechar_start="3"
прошло 11 минут
15:28:16
#^C

15:29:13
#ping 172.18.0.114
PING 172.18.0.114 (172.18.0.114): 56 data bytes
^C
--- 172.18.0.114 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
15:29:23
#jobs
[1]+  Stopped                 ping 172.18.0.114
15:29:26
#fg 1
ping 172.18.0.114
^C
--- 172.18.0.114 ping statistics ---
18 packets transmitted, 0 packets received, 100.0% packet loss
15:29:32
#ssh root@192.168.13.21
The authenticity of host '192.168.13.21 (192.168.13.21)' can't be established.
RSA key fingerprint is aa:cb:39:9a:24:52:2d:ce:00:94:3f:d0:28:39:c5:e6.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.13.21' (RSA) to the list of known hosts.
Password:
Last login: Mon Apr  2 14:02:59 2012 from fobos.net.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 8.2-RELEASE (GENERIC) #0: Fri Feb 18 02:24:46 UTC 2011
Welcome to FreeBSD!
...
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.
Removing stale pidfile
прошло 11 минут
15:41:20
#vim /etc/rc.conf
15:43:17
#:q!

15:44:09
#vim
15:44:12
#~
# -- sysinstall generated deltas -- # Mon Apr  2 03:32:56 2012
    different instances of the same file when making changes.
    Quit, or continue with caution.
(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /etc/rc.conf"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/etc/.rc.conf.swp"
    to avoid this message.
Swap file "/etc/.rc.conf.swp" already exists!
"/etc/rc.conf" 35L, 802C
static_routes="route1"
route_route1="add -net 192.18.0.2/16 10.0.0.50/29
route_route1="add-
                                                              35,18         Bot
15:44:29
#-- INSERT --

15:44:30
#vim .vimrc
15:45:34
#vim
15:45:38
#~
ifconfig_re0="inet 192.168.13.21  netmask 255.255.255.0"
ifconfig re2="inet 10.0.0.1 netmask 255.255.255.248"
    different instances of the same file when making changes.
    Quit, or continue with caution.
(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /etc/rc.conf"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/etc/.rc.conf.swp"
    to avoid this message.
Swap file "/etc/.rc.conf.swp" already exists!
"/etc/rc.conf" 35L, 802C
15:45:57
#Created: Mon Apr 2 03:32:56 2012

прошло 20 минут
16:06:46
#vim /etc/rc.conf
16:08:46
#vim /etc/rc.conf
16:09:44
#shutdown -r now
Shutdown NOW!
shutdown: [pid 2379]
*** FINAL System shutdown message from root@freebsd1.net.nt ***
System going down IMMEDIATELY
16:10:45
#ssh root@192.168.13.22
The authenticity of host '192.168.13.22 (192.168.13.22)' can't be established.
RSA key fingerprint is aa:cb:39:9a:24:52:2d:ce:00:94:3f:d0:28:39:c5:e6.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.13.22' (RSA) to the list of known hosts.
Password:
Last login: Mon Apr  2 14:25:38 2012 from fobos.net.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 8.2-RELEASE (GENERIC) #0: Fri Feb 18 02:24:46 UTC 2011
Welcome to FreeBSD!
...
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.
Removing stale pidfile
16:11:02
#vim /etc/rc.conf
16:12:01
#cp /usr/local/share/vim/vim73/vimrc_example.vim ~/.vimrc

16:12:16
#vim /etc/rc.conf
16:15:53
#shutdown -r now
Shutdown NOW!
shutdown: [pid 2366]
*** FINAL System shutdown message from root@freebsd2.net.nt ***
System going down IMMEDIATELY
16:16:08
#vim /etc/rc.conf
16:19:06
#shutdown -r now
Shutdown NOW!
shutdown: [pid 3421]
прошло 18 минут
/dev/ttyv0
16:38:00
#vim /etc/rc.conf
--- /tmp/l3-saved-1437.4350.9478	2012-04-02 17:38:28.000000000 +0300
+++ /etc/rc.conf	2012-04-02 17:38:47.000000000 +0300
@@ -11,7 +11,7 @@
 gateway_enable="YES"
 hostname="freebsd4.net.nt"
 #ifconfig_re0="inet 192.168.13.24  netmask 255.255.255.0"
-ifconfig_re1="inet 192.168.200.3 netmask 255.255.255.240"
+ifconfig_re2="inet 192.168.200.3 netmask 255.255.255.240"
 #ifconfig_re0_alias1="inet 192.168.13.2  netmask 255.255.255.0"
 inetd_enable="YES"
 keymap="ru.koi8-r"
16:38:48
#ifconfig
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:16:4e:00:00:04
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:16:4e:00:01:04
        inet 192.168.200.3 netmask 0xfffffff0 broadcast 192.168.200.15
        media: Ethernet autoselect (100baseTX <full-duplex>)
...
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
16:38:50
#vim /etc/rc.conf
--- /tmp/l3-saved-1437.14580.22306	2012-04-02 17:39:28.000000000 +0300
+++ /etc/rc.conf	2012-04-02 17:39:37.000000000 +0300
@@ -11,7 +11,7 @@
 gateway_enable="YES"
 hostname="freebsd4.net.nt"
 #ifconfig_re0="inet 192.168.13.24  netmask 255.255.255.0"
-ifconfig_re2="inet 192.168.200.3 netmask 255.255.255.240"
+ifconfig_re1="inet 192.168.200.3 netmask 255.255.255.240"
 #ifconfig_re0_alias1="inet 192.168.13.2  netmask 255.255.255.0"
 inetd_enable="YES"
 keymap="ru.koi8-r"

Вторник (04/03/12)

/dev/ttyv0
07:35:43
#vim /etc/rc.conf
--- /tmp/l3-saved-1428.945.5120	2012-04-03 08:35:50.000000000 +0300
+++ /etc/rc.conf	2012-04-03 08:36:07.000000000 +0300
@@ -11,8 +11,7 @@
 gateway_enable="YES"
 hostname="freebsd4.net.nt"
 #ifconfig_re0="inet 192.168.13.24  netmask 255.255.255.0"
-ifconfig_re1="inet 192.168.200.3 netmask 255.255.255.240"
-#ifconfig_re0_alias1="inet 192.168.13.2  netmask 255.255.255.0"
+ifconfig_em0="inet 192.168.200.3 netmask 255.255.255.240"
 inetd_enable="YES"
 keymap="ru.koi8-r"
 mousechar_start="3"
прошло 117 минут
/dev/ttyv0
09:33:37
#vim /etc/rc.conf
--- /tmp/l3-saved-1436.14180.8509	2012-04-03 10:33:41.000000000 +0300
+++ /etc/rc.conf	2012-04-03 10:33:46.000000000 +0300
@@ -10,7 +10,7 @@
 font8x8="cp866-8x8"
 gateway_enable="YES"
 hostname="freebsd4.net.nt"
-#ifconfig_re0="inet 192.168.13.24  netmask 255.255.255.0"
+ifconfig_re0="inet 192.168.13.24  netmask 255.255.255.0"
 ifconfig_em0="inet 192.168.200.3 netmask 255.255.255.240"
 inetd_enable="YES"
 keymap="ru.koi8-r"
/dev/pts/0
09:37:06
#screen
/dev/pts/2
09:37:13
#alias exit='echo no exit'

09:37:27
#ping ya.ru
PING ya.ru (87.250.250.3): 56 data bytes
^C
--- ya.ru ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
09:37:27
#ping ya.ru
PING ya.ru (87.250.250.3): 56 data bytes
^C
--- ya.ru ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
/dev/pts/4
09:38:04
#screen -x
09:38:04
#screen -x
09:38:04
#screen -x
09:38:04
#screen -x
/dev/pts/8
09:38:28
#screen -x
09:38:28
#screen -x
прошло 10 минут
/dev/pts/2
09:48:37
#vim /etc/resolv.conf
09:48:37
#vim /etc/resolv.conf
09:48:46
#~
PING i.ua (91.198.36.14): 56 data bytes
^C
--- i.ua ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss
09:48:46
#~
PING i.ua (91.198.36.14): 56 data bytes
^C
--- i.ua ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss
09:49:08
#route
usage: route [-dnqtv] command [[modifiers] args]
09:49:08
#route
usage: route [-dnqtv] command [[modifiers] args]
09:49:11
#netstat -r
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.200.1      UGS         2      302    em0
localhost          link#5             UH          0        0    lo0
192.168.13.0       link#1             U           2      487    re0
freebsd4           link#1             UHS         0        0    lo0
192.168.200.0/28   link#2             U           0        0    em0
192.168.200.3      link#2             UHS         0        0    lo0
Internet6:
Destination        Gateway            Flags      Netif Expire
localhost.net.nt   localhost.net.nt   UH          lo0
fe80::%lo0         link#5             U           lo0
fe80::1%lo0        link#5             UHS         lo0
ff01:5::           fe80::1%lo0        U           lo0
ff02::%lo0         fe80::1%lo0        U           lo0
09:49:11
#netstat -r
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.200.1      UGS         2      302    em0
localhost          link#5             UH          0        0    lo0
192.168.13.0       link#1             U           2      487    re0
freebsd4           link#1             UHS         0        0    lo0
192.168.200.0/28   link#2             U           0        0    em0
192.168.200.3      link#2             UHS         0        0    lo0
Internet6:
Destination        Gateway            Flags      Netif Expire
localhost.net.nt   localhost.net.nt   UH          lo0
fe80::%lo0         link#5             U           lo0
fe80::1%lo0        link#5             UHS         lo0
ff01:5::           fe80::1%lo0        U           lo0
ff02::%lo0         fe80::1%lo0        U           lo0
09:49:15
#vim /etc/rc.conf
--- /tmp/l3-saved-1412.3969.27235	2012-04-03 10:49:26.000000000 +0300
+++ /etc/rc.conf	2012-04-03 10:49:40.000000000 +0300
@@ -4,7 +4,7 @@
 # Enable network daemons for user convenience.
 # Please make all changes to this file, not to /etc/defaults/rc.conf.
 # This file now contains just the overrides from /etc/defaults/rc.conf.
-defaultrouter="192.168.200.1"
+defaultrouter="192.168.13.253"
 font8x14="cp866-8x14"
 font8x16="cp866b-8x16"
 font8x8="cp866-8x8"
09:49:40
#route del default
del net default
09:49:45
#route add default 192.168.13.253
add net default: gateway 192.168.13.253
09:49:55
#ping ya.ru
PING ya.ru (77.88.21.3): 56 data bytes
64 bytes from 77.88.21.3: icmp_seq=0 ttl=57 time=22.279 ms
64 bytes from 77.88.21.3: icmp_seq=1 ttl=57 time=22.585 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.279/22.432/22.585/0.153 ms
09:50:03
#kill -l
 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL       5) SIGTRAP
 6) SIGABRT      7) SIGEMT       8) SIGFPE       9) SIGKILL     10) SIGBUS
11) SIGSEGV     12) SIGSYS      13) SIGPIPE     14) SIGALRM     15) SIGTERM
16) SIGURG      17) SIGSTOP     18) SIGTSTP     19) SIGCONT     20) SIGCHLD
21) SIGTTIN     22) SIGTTOU     23) SIGIO       24) SIGXCPU     25) SIGXFSZ
26) SIGVTALRM   27) SIGPROF     28) SIGWINCH    29) SIGINFO     30) SIGUSR1
31) SIGUSR2
09:50:03
#kill -l
 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL       5) SIGTRAP
 6) SIGABRT      7) SIGEMT       8) SIGFPE       9) SIGKILL     10) SIGBUS
11) SIGSEGV     12) SIGSYS      13) SIGPIPE     14) SIGALRM     15) SIGTERM
16) SIGURG      17) SIGSTOP     18) SIGTSTP     19) SIGCONT     20) SIGCHLD
21) SIGTTIN     22) SIGTTOU     23) SIGIO       24) SIGXCPU     25) SIGXFSZ
26) SIGVTALRM   27) SIGPROF     28) SIGWINCH    29) SIGINFO     30) SIGUSR1
31) SIGUSR2
09:50:03
#kill -l
 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL       5) SIGTRAP
 6) SIGABRT      7) SIGEMT       8) SIGFPE       9) SIGKILL     10) SIGBUS
11) SIGSEGV     12) SIGSYS      13) SIGPIPE     14) SIGALRM     15) SIGTERM
16) SIGURG      17) SIGSTOP     18) SIGTSTP     19) SIGCONT     20) SIGCHLD
21) SIGTTIN     22) SIGTTOU     23) SIGIO       24) SIGXCPU     25) SIGXFSZ
26) SIGVTALRM   27) SIGPROF     28) SIGWINCH    29) SIGINFO     30) SIGUSR1
31) SIGUSR2
09:50:03
#kill -l
 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL       5) SIGTRAP
 6) SIGABRT      7) SIGEMT       8) SIGFPE       9) SIGKILL     10) SIGBUS
11) SIGSEGV     12) SIGSYS      13) SIGPIPE     14) SIGALRM     15) SIGTERM
16) SIGURG      17) SIGSTOP     18) SIGTSTP     19) SIGCONT     20) SIGCHLD
21) SIGTTIN     22) SIGTTOU     23) SIGIO       24) SIGXCPU     25) SIGXFSZ
26) SIGVTALRM   27) SIGPROF     28) SIGWINCH    29) SIGINFO     30) SIGUSR1
31) SIGUSR2
09:50:03
#kill -l
 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL       5) SIGTRAP
 6) SIGABRT      7) SIGEMT       8) SIGFPE       9) SIGKILL     10) SIGBUS
11) SIGSEGV     12) SIGSYS      13) SIGPIPE     14) SIGALRM     15) SIGTERM
16) SIGURG      17) SIGSTOP     18) SIGTSTP     19) SIGCONT     20) SIGCHLD
21) SIGTTIN     22) SIGTTOU     23) SIGIO       24) SIGXCPU     25) SIGXFSZ
26) SIGVTALRM   27) SIGPROF     28) SIGWINCH    29) SIGINFO     30) SIGUSR1
31) SIGUSR2
09:50:55
#ping ya.ru
PING ya.ru (213.180.204.3): 56 data bytes
64 bytes from 213.180.204.3: icmp_seq=0 ttl=57 time=22.977 ms
64 bytes from 213.180.204.3: icmp_seq=1 ttl=57 time=22.122 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.122/22.550/22.977/0.427 ms
09:50:55
#ping ya.ru
PING ya.ru (213.180.204.3): 56 data bytes
64 bytes from 213.180.204.3: icmp_seq=0 ttl=57 time=22.977 ms
64 bytes from 213.180.204.3: icmp_seq=1 ttl=57 time=22.122 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.122/22.550/22.977/0.427 ms
09:50:55
#ping ya.ru
PING ya.ru (213.180.204.3): 56 data bytes
64 bytes from 213.180.204.3: icmp_seq=0 ttl=57 time=22.977 ms
64 bytes from 213.180.204.3: icmp_seq=1 ttl=57 time=22.122 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.122/22.550/22.977/0.427 ms
09:50:55
#ping ya.ru
PING ya.ru (213.180.204.3): 56 data bytes
64 bytes from 213.180.204.3: icmp_seq=0 ttl=57 time=22.977 ms
64 bytes from 213.180.204.3: icmp_seq=1 ttl=57 time=22.122 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.122/22.550/22.977/0.427 ms
09:50:55
#ping ya.ru
PING ya.ru (213.180.204.3): 56 data bytes
64 bytes from 213.180.204.3: icmp_seq=0 ttl=57 time=22.977 ms
64 bytes from 213.180.204.3: icmp_seq=1 ttl=57 time=22.122 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.122/22.550/22.977/0.427 ms
09:50:55
#ping ya.ru
PING ya.ru (213.180.204.3): 56 data bytes
64 bytes from 213.180.204.3: icmp_seq=0 ttl=57 time=22.977 ms
64 bytes from 213.180.204.3: icmp_seq=1 ttl=57 time=22.122 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.122/22.550/22.977/0.427 ms
09:50:55
#ping ya.ru
PING ya.ru (213.180.204.3): 56 data bytes
64 bytes from 213.180.204.3: icmp_seq=0 ttl=57 time=22.977 ms
64 bytes from 213.180.204.3: icmp_seq=1 ttl=57 time=22.122 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.122/22.550/22.977/0.427 ms
09:50:55
#ping ya.ru
PING ya.ru (213.180.204.3): 56 data bytes
64 bytes from 213.180.204.3: icmp_seq=0 ttl=57 time=22.977 ms
64 bytes from 213.180.204.3: icmp_seq=1 ttl=57 time=22.122 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.122/22.550/22.977/0.427 ms
09:50:55
#ping ya.ru
PING ya.ru (213.180.204.3): 56 data bytes
64 bytes from 213.180.204.3: icmp_seq=0 ttl=57 time=22.977 ms
64 bytes from 213.180.204.3: icmp_seq=1 ttl=57 time=22.122 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.122/22.550/22.977/0.427 ms
09:50:55
#ping ya.ru
PING ya.ru (213.180.204.3): 56 data bytes
64 bytes from 213.180.204.3: icmp_seq=0 ttl=57 time=22.977 ms
64 bytes from 213.180.204.3: icmp_seq=1 ttl=57 time=22.122 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.122/22.550/22.977/0.427 ms
09:51:10
#ping yar.3333.ru
ping: cannot resolve yar.3333.ru: Unknown host
09:51:10
#ping yar.3333.ru
ping: cannot resolve yar.3333.ru: Unknown host
09:51:10
#ping yar.3333.ru
ping: cannot resolve yar.3333.ru: Unknown host
09:51:10
#ping yar.3333.ru
ping: cannot resolve yar.3333.ru: Unknown host
09:51:10
#ping yar.3333.ru
ping: cannot resolve yar.3333.ru: Unknown host
09:51:10
#ping yar.3333.ru
ping: cannot resolve yar.3333.ru: Unknown host
09:51:10
#ping yar.3333.ru
ping: cannot resolve yar.3333.ru: Unknown host
09:51:10
#ping yar.3333.ru
ping: cannot resolve yar.3333.ru: Unknown host
09:51:55
#ping -c 4 ya.ru
PING ya.ru (213.180.193.3): 56 data bytes
64 bytes from 213.180.193.3: icmp_seq=0 ttl=57 time=21.742 ms
64 bytes from 213.180.193.3: icmp_seq=1 ttl=57 time=21.768 ms
64 bytes from 213.180.193.3: icmp_seq=2 ttl=57 time=21.971 ms
64 bytes from 213.180.193.3: icmp_seq=3 ttl=57 time=24.815 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 21.742/22.574/24.815/1.297 ms
09:51:55
#ping -c 4 ya.ru
PING ya.ru (213.180.193.3): 56 data bytes
64 bytes from 213.180.193.3: icmp_seq=0 ttl=57 time=21.742 ms
64 bytes from 213.180.193.3: icmp_seq=1 ttl=57 time=21.768 ms
64 bytes from 213.180.193.3: icmp_seq=2 ttl=57 time=21.971 ms
64 bytes from 213.180.193.3: icmp_seq=3 ttl=57 time=24.815 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 21.742/22.574/24.815/1.297 ms
09:51:55
#ping -c 4 ya.ru
PING ya.ru (213.180.193.3): 56 data bytes
64 bytes from 213.180.193.3: icmp_seq=0 ttl=57 time=21.742 ms
64 bytes from 213.180.193.3: icmp_seq=1 ttl=57 time=21.768 ms
64 bytes from 213.180.193.3: icmp_seq=2 ttl=57 time=21.971 ms
64 bytes from 213.180.193.3: icmp_seq=3 ttl=57 time=24.815 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 21.742/22.574/24.815/1.297 ms
09:51:55
#ping -c 4 ya.ru
PING ya.ru (213.180.193.3): 56 data bytes
64 bytes from 213.180.193.3: icmp_seq=0 ttl=57 time=21.742 ms
64 bytes from 213.180.193.3: icmp_seq=1 ttl=57 time=21.768 ms
64 bytes from 213.180.193.3: icmp_seq=2 ttl=57 time=21.971 ms
64 bytes from 213.180.193.3: icmp_seq=3 ttl=57 time=24.815 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 21.742/22.574/24.815/1.297 ms
09:51:55
#ping -c 4 ya.ru
PING ya.ru (213.180.193.3): 56 data bytes
64 bytes from 213.180.193.3: icmp_seq=0 ttl=57 time=21.742 ms
64 bytes from 213.180.193.3: icmp_seq=1 ttl=57 time=21.768 ms
64 bytes from 213.180.193.3: icmp_seq=2 ttl=57 time=21.971 ms
64 bytes from 213.180.193.3: icmp_seq=3 ttl=57 time=24.815 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 21.742/22.574/24.815/1.297 ms
09:51:55
#ping -c 4 ya.ru
PING ya.ru (213.180.193.3): 56 data bytes
64 bytes from 213.180.193.3: icmp_seq=0 ttl=57 time=21.742 ms
64 bytes from 213.180.193.3: icmp_seq=1 ttl=57 time=21.768 ms
64 bytes from 213.180.193.3: icmp_seq=2 ttl=57 time=21.971 ms
64 bytes from 213.180.193.3: icmp_seq=3 ttl=57 time=24.815 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 21.742/22.574/24.815/1.297 ms
09:51:55
#ping -c 4 ya.ru
PING ya.ru (213.180.193.3): 56 data bytes
64 bytes from 213.180.193.3: icmp_seq=0 ttl=57 time=21.742 ms
64 bytes from 213.180.193.3: icmp_seq=1 ttl=57 time=21.768 ms
64 bytes from 213.180.193.3: icmp_seq=2 ttl=57 time=21.971 ms
64 bytes from 213.180.193.3: icmp_seq=3 ttl=57 time=24.815 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 21.742/22.574/24.815/1.297 ms
09:51:55
#ping -c 4 ya.ru
PING ya.ru (213.180.193.3): 56 data bytes
64 bytes from 213.180.193.3: icmp_seq=0 ttl=57 time=21.742 ms
64 bytes from 213.180.193.3: icmp_seq=1 ttl=57 time=21.768 ms
64 bytes from 213.180.193.3: icmp_seq=2 ttl=57 time=21.971 ms
64 bytes from 213.180.193.3: icmp_seq=3 ttl=57 time=24.815 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 21.742/22.574/24.815/1.297 ms
09:51:55
#ping -c 4 ya.ru
PING ya.ru (213.180.193.3): 56 data bytes
64 bytes from 213.180.193.3: icmp_seq=0 ttl=57 time=21.742 ms
64 bytes from 213.180.193.3: icmp_seq=1 ttl=57 time=21.768 ms
64 bytes from 213.180.193.3: icmp_seq=2 ttl=57 time=21.971 ms
64 bytes from 213.180.193.3: icmp_seq=3 ttl=57 time=24.815 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 21.742/22.574/24.815/1.297 ms
09:51:55
#ping -c 4 ya.ru
PING ya.ru (213.180.193.3): 56 data bytes
64 bytes from 213.180.193.3: icmp_seq=0 ttl=57 time=21.742 ms
64 bytes from 213.180.193.3: icmp_seq=1 ttl=57 time=21.768 ms
64 bytes from 213.180.193.3: icmp_seq=2 ttl=57 time=21.971 ms
64 bytes from 213.180.193.3: icmp_seq=3 ttl=57 time=24.815 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 21.742/22.574/24.815/1.297 ms
09:54:11
#ping -c 4 -s 1024 ya.ru
PING ya.ru (93.158.134.203): 1024 data bytes
1032 bytes from 93.158.134.203: icmp_seq=0 ttl=58 time=32.271 ms
1032 bytes from 93.158.134.203: icmp_seq=1 ttl=58 time=24.964 ms
1032 bytes from 93.158.134.203: icmp_seq=2 ttl=58 time=29.021 ms
1032 bytes from 93.158.134.203: icmp_seq=3 ttl=58 time=22.293 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.293/27.137/32.271/3.811 ms
09:54:11
#ping -c 4 -s 1024 ya.ru
PING ya.ru (93.158.134.203): 1024 data bytes
1032 bytes from 93.158.134.203: icmp_seq=0 ttl=58 time=32.271 ms
1032 bytes from 93.158.134.203: icmp_seq=1 ttl=58 time=24.964 ms
1032 bytes from 93.158.134.203: icmp_seq=2 ttl=58 time=29.021 ms
1032 bytes from 93.158.134.203: icmp_seq=3 ttl=58 time=22.293 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.293/27.137/32.271/3.811 ms
09:54:11
#ping -c 4 -s 1024 ya.ru
PING ya.ru (93.158.134.203): 1024 data bytes
1032 bytes from 93.158.134.203: icmp_seq=0 ttl=58 time=32.271 ms
1032 bytes from 93.158.134.203: icmp_seq=1 ttl=58 time=24.964 ms
1032 bytes from 93.158.134.203: icmp_seq=2 ttl=58 time=29.021 ms
1032 bytes from 93.158.134.203: icmp_seq=3 ttl=58 time=22.293 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.293/27.137/32.271/3.811 ms
09:54:11
#ping -c 4 -s 1024 ya.ru
PING ya.ru (93.158.134.203): 1024 data bytes
1032 bytes from 93.158.134.203: icmp_seq=0 ttl=58 time=32.271 ms
1032 bytes from 93.158.134.203: icmp_seq=1 ttl=58 time=24.964 ms
1032 bytes from 93.158.134.203: icmp_seq=2 ttl=58 time=29.021 ms
1032 bytes from 93.158.134.203: icmp_seq=3 ttl=58 time=22.293 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.293/27.137/32.271/3.811 ms
09:54:11
#ping -c 4 -s 1024 ya.ru
PING ya.ru (93.158.134.203): 1024 data bytes
1032 bytes from 93.158.134.203: icmp_seq=0 ttl=58 time=32.271 ms
1032 bytes from 93.158.134.203: icmp_seq=1 ttl=58 time=24.964 ms
1032 bytes from 93.158.134.203: icmp_seq=2 ttl=58 time=29.021 ms
1032 bytes from 93.158.134.203: icmp_seq=3 ttl=58 time=22.293 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.293/27.137/32.271/3.811 ms
09:54:11
#ping -c 4 -s 1024 ya.ru
PING ya.ru (93.158.134.203): 1024 data bytes
1032 bytes from 93.158.134.203: icmp_seq=0 ttl=58 time=32.271 ms
1032 bytes from 93.158.134.203: icmp_seq=1 ttl=58 time=24.964 ms
1032 bytes from 93.158.134.203: icmp_seq=2 ttl=58 time=29.021 ms
1032 bytes from 93.158.134.203: icmp_seq=3 ttl=58 time=22.293 ms
--- ya.ru ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.293/27.137/32.271/3.811 ms
09:54:49
#ping -c 4 -s 1024 ya.ru -f
usage: ping [-AaDdfnoQqRrv] [-c count] [-G sweepmaxsize] [-g sweepminsize]
            [-h sweepincrsize] [-i wait] [-l preload] [-M mask | time] [-m ttl]
            [-P policy] [-p pattern] [-S src_addr] [-s packetsize] [-t timeout]
            [-W waittime] [-z tos] host
       ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait] [-l preload]
            [-M mask | time] [-m ttl] [-P policy] [-p pattern] [-S src_addr]
            [-s packetsize] [-T ttl] [-t timeout] [-W waittime]
            [-z tos] mcast-group
09:54:49
#ping -c 4 -s 1024 ya.ru -f
usage: ping [-AaDdfnoQqRrv] [-c count] [-G sweepmaxsize] [-g sweepminsize]
            [-h sweepincrsize] [-i wait] [-l preload] [-M mask | time] [-m ttl]
            [-P policy] [-p pattern] [-S src_addr] [-s packetsize] [-t timeout]
            [-W waittime] [-z tos] host
       ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait] [-l preload]
            [-M mask | time] [-m ttl] [-P policy] [-p pattern] [-S src_addr]
            [-s packetsize] [-T ttl] [-t timeout] [-W waittime]
            [-z tos] mcast-group
09:54:49
#ping -c 4 -s 1024 ya.ru -f
usage: ping [-AaDdfnoQqRrv] [-c count] [-G sweepmaxsize] [-g sweepminsize]
            [-h sweepincrsize] [-i wait] [-l preload] [-M mask | time] [-m ttl]
            [-P policy] [-p pattern] [-S src_addr] [-s packetsize] [-t timeout]
            [-W waittime] [-z tos] host
       ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait] [-l preload]
            [-M mask | time] [-m ttl] [-P policy] [-p pattern] [-S src_addr]
            [-s packetsize] [-T ttl] [-t timeout] [-W waittime]
            [-z tos] mcast-group
09:54:49
#ping -c 4 -s 1024 ya.ru -f
usage: ping [-AaDdfnoQqRrv] [-c count] [-G sweepmaxsize] [-g sweepminsize]
            [-h sweepincrsize] [-i wait] [-l preload] [-M mask | time] [-m ttl]
            [-P policy] [-p pattern] [-S src_addr] [-s packetsize] [-t timeout]
            [-W waittime] [-z tos] host
       ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait] [-l preload]
            [-M mask | time] [-m ttl] [-P policy] [-p pattern] [-S src_addr]
            [-s packetsize] [-T ttl] [-t timeout] [-W waittime]
            [-z tos] mcast-group
09:54:49
#ping -c 4 -s 1024 ya.ru -f
usage: ping [-AaDdfnoQqRrv] [-c count] [-G sweepmaxsize] [-g sweepminsize]
            [-h sweepincrsize] [-i wait] [-l preload] [-M mask | time] [-m ttl]
            [-P policy] [-p pattern] [-S src_addr] [-s packetsize] [-t timeout]
            [-W waittime] [-z tos] host
       ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait] [-l preload]
            [-M mask | time] [-m ttl] [-P policy] [-p pattern] [-S src_addr]
            [-s packetsize] [-T ttl] [-t timeout] [-W waittime]
            [-z tos] mcast-group
09:56:08
#ping -f -s 1024 ya.ru
PING ya.ru (93.158.134.3): 1024 data bytes
.............^C
--- ya.ru ping statistics ---
1907 packets transmitted, 1894 packets received, 0.7% packet loss
round-trip min/avg/max/stddev = 21.496/23.007/34.689/1.614 ms
09:56:08
#ping -f -s 1024 ya.ru
PING ya.ru (93.158.134.3): 1024 data bytes
.............^C
--- ya.ru ping statistics ---
1907 packets transmitted, 1894 packets received, 0.7% packet loss
round-trip min/avg/max/stddev = 21.496/23.007/34.689/1.614 ms

Статистика

Время первой команды журнала14:56:37 2012- 4- 2
Время последней команды журнала09:56:08 2012- 4- 3
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %22.77
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 2.08
Количество командных строк в единицу времени, команда/мин 0.81
Частота использования команд
ping45|============================================| 44.55%
vim18|=================| 17.82%
screen7|======| 6.93%
kill5|====| 4.95%
route4|===| 3.96%
~4|===| 3.96%
shutdown3|==| 2.97%
ssh3|==| 2.97%
netstat2|=| 1.98%
ifconfig1|| 0.99%
alias1|| 0.99%
fg1|| 0.99%
sysctl1|| 0.99%
Created:1|| 0.99%
cp1|| 0.99%
:q!1|| 0.99%
--1|| 0.99%
jobs1|| 0.99%
^C1|| 0.99%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ find / -name abc
    find: /home/devi-orig/.gnome2: Keine Berechtigung
    find: /home/devi-orig/.gnome2_private: Keine Berechtigung
    find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
    find: /home/devi-orig/.metacity: Keine Berechtigung
    find: /home/devi-orig/.inkscape: Keine Berechtigung
    ^C
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$