/l3/users/26-03-2012/NT-BSDnet/freebsd4.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 |
|
#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" |
#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. |
#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" |
#^C
![]() |
#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 |
#jobs
[1]+ Stopped ping 172.18.0.114 |
#fg 1
![]() ping 172.18.0.114 ^C --- 172.18.0.114 ping statistics --- 18 packets transmitted, 0 packets received, 100.0% packet loss |
#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 |
#vim /etc/rc.conf
|
#:q!
|
#vim
![]() |
#~
# -- 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 |
#-- INSERT --
|
#vim .vimrc
|
#vim
![]() |
#~
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 |
#Created: Mon Apr 2 03:32:56 2012
|
#vim /etc/rc.conf
|
#vim /etc/rc.conf
|
#shutdown -r now
Shutdown NOW! shutdown: [pid 2379] *** FINAL System shutdown message from root@freebsd1.net.nt *** System going down IMMEDIATELY |
#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 |
#vim /etc/rc.conf
|
#cp /usr/local/share/vim/vim73/vimrc_example.vim ~/.vimrc
|
#vim /etc/rc.conf
|
#shutdown -r now
Shutdown NOW! shutdown: [pid 2366] *** FINAL System shutdown message from root@freebsd2.net.nt *** System going down IMMEDIATELY |
#vim /etc/rc.conf
|
#shutdown -r now
Shutdown NOW! shutdown: [pid 3421] |
#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" |
#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 |
#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" |
#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" |
#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" |
#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 |
#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 |
#screen -x
![]() |
#screen -x
![]() |
#screen -x
|
#screen -x
|
#vim /etc/resolv.conf
|
#~
![]() 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 |
#~
![]() 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 |
#route
![]() usage: route [-dnqtv] command [[modifiers] args] |
#route
![]() usage: route [-dnqtv] command [[modifiers] args] |
#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 |
#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 |
#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" |
#route del default
del net default |
#route add default 192.168.13.253
add net default: gateway 192.168.13.253 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#ping yar.3333.ru
![]() ping: cannot resolve yar.3333.ru: Unknown host |
#ping yar.3333.ru
![]() ping: cannot resolve yar.3333.ru: Unknown host |
#ping yar.3333.ru
![]() ping: cannot resolve yar.3333.ru: Unknown host |
#ping yar.3333.ru
![]() ping: cannot resolve yar.3333.ru: Unknown host |
#ping yar.3333.ru
![]() ping: cannot resolve yar.3333.ru: Unknown host |
#ping yar.3333.ru
![]() ping: cannot resolve yar.3333.ru: Unknown host |
#ping yar.3333.ru
![]() ping: cannot resolve yar.3333.ru: Unknown host |
#ping yar.3333.ru
![]() ping: cannot resolve yar.3333.ru: Unknown host |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008