/l3/users/27-07-2009/nt-fbsdnet/fbsd6.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 |
|
#ping ya.ru
PING ya.ru (213.180.204.8): 56 data bytes 64 bytes from 213.180.204.8: icmp_seq=0 ttl=46 time=61.686 ms 64 bytes from 213.180.204.8: icmp_seq=1 ttl=46 time=61.754 ms ^C --- ya.ru ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 61.686/61.720/61.754/0.034 ms |
#ping ya.ru
PING ya.ru (213.180.204.8): 56 data bytes 64 bytes from 213.180.204.8: icmp_seq=0 ttl=46 time=61.686 ms 64 bytes from 213.180.204.8: icmp_seq=1 ttl=46 time=61.754 ms ^C --- ya.ru ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 61.686/61.720/61.754/0.034 ms |
#traceroute -n ya.ru
traceroute: Warning: ya.ru has multiple addresses; using 93.158.134.8 traceroute to ya.ru (93.158.134.8), 64 hops max, 40 byte packets 1 192.168.54.129 0.714 ms 0.948 ms 0.782 ms 2 192.168.54.97 0.845 ms 0.923 ms 0.863 ms 3 192.168.54.65 1.237 ms 1.025 ms 1.256 ms 4 192.168.54.33 1.239 ms 1.466 ms 1.475 ms 5 192.168.54.1 3.454 ms 7.135 ms 3.075 ms 6 192.168.16.254 2.085 ms 12.409 ms 2.651 ms 7 10.0.35.1 3.335 ms 3.166 ms 2.103 ms 8 192.168.200.2 2.530 ms 2.674 ms 2.731 ms 9 192.168.100.1 3.486 ms 3.381 ms 3.398 ms 10 193.200.68.189 5.076 ms 5.292 ms 4.962 ms 11 193.200.69.241 5.671 ms 5.516 ms 5.861 ms 12 62.149.4.25 6.343 ms 5.702 ms 5.991 ms 13 62.149.2.100 8.059 ms 9.209 ms 5.944 ms 14 195.35.65.88 6.084 ms 6.580 ms 7.534 ms 15 77.88.56.101 52.209 ms 53.549 ms 52.333 ms 16 77.88.56.125 53.468 ms 52.164 ms 52.364 ms 17 213.180.210.187 54.794 ms 52.403 ms 52.938 ms 18 93.158.134.8 63.526 ms 64.111 ms 63.569 ms |
#traceroute -n ya.ru
traceroute: Warning: ya.ru has multiple addresses; using 93.158.134.8 traceroute to ya.ru (93.158.134.8), 64 hops max, 40 byte packets 1 192.168.54.129 0.714 ms 0.948 ms 0.782 ms 2 192.168.54.97 0.845 ms 0.923 ms 0.863 ms 3 192.168.54.65 1.237 ms 1.025 ms 1.256 ms 4 192.168.54.33 1.239 ms 1.466 ms 1.475 ms 5 192.168.54.1 3.454 ms 7.135 ms 3.075 ms 6 192.168.16.254 2.085 ms 12.409 ms 2.651 ms 7 10.0.35.1 3.335 ms 3.166 ms 2.103 ms 8 192.168.200.2 2.530 ms 2.674 ms 2.731 ms 9 192.168.100.1 3.486 ms 3.381 ms 3.398 ms 10 193.200.68.189 5.076 ms 5.292 ms 4.962 ms 11 193.200.69.241 5.671 ms 5.516 ms 5.861 ms 12 62.149.4.25 6.343 ms 5.702 ms 5.991 ms 13 62.149.2.100 8.059 ms 9.209 ms 5.944 ms 14 195.35.65.88 6.084 ms 6.580 ms 7.534 ms 15 77.88.56.101 52.209 ms 53.549 ms 52.333 ms 16 77.88.56.125 53.468 ms 52.164 ms 52.364 ms 17 213.180.210.187 54.794 ms 52.403 ms 52.938 ms 18 93.158.134.8 63.526 ms 64.111 ms 63.569 ms |
#traceroute -n ya.ru
traceroute: Warning: ya.ru has multiple addresses; using 93.158.134.8 traceroute to ya.ru (93.158.134.8), 64 hops max, 40 byte packets 1 192.168.54.129 0.714 ms 0.948 ms 0.782 ms 2 192.168.54.97 0.845 ms 0.923 ms 0.863 ms 3 192.168.54.65 1.237 ms 1.025 ms 1.256 ms 4 192.168.54.33 1.239 ms 1.466 ms 1.475 ms 5 192.168.54.1 3.454 ms 7.135 ms 3.075 ms 6 192.168.16.254 2.085 ms 12.409 ms 2.651 ms 7 10.0.35.1 3.335 ms 3.166 ms 2.103 ms 8 192.168.200.2 2.530 ms 2.674 ms 2.731 ms 9 192.168.100.1 3.486 ms 3.381 ms 3.398 ms 10 193.200.68.189 5.076 ms 5.292 ms 4.962 ms 11 193.200.69.241 5.671 ms 5.516 ms 5.861 ms 12 62.149.4.25 6.343 ms 5.702 ms 5.991 ms 13 62.149.2.100 8.059 ms 9.209 ms 5.944 ms 14 195.35.65.88 6.084 ms 6.580 ms 7.534 ms 15 77.88.56.101 52.209 ms 53.549 ms 52.333 ms 16 77.88.56.125 53.468 ms 52.164 ms 52.364 ms 17 213.180.210.187 54.794 ms 52.403 ms 52.938 ms 18 93.158.134.8 63.526 ms 64.111 ms 63.569 ms |
#traceroute -n ya.ru
|
#traceroute -n ya.ru
|
#traceroute -n ya.ru
|
#ee /etc/rc.conf
--- /tmp/l3-saved-1475.15731.29142 2009-07-31 20:33:47.000000000 +0300 +++ /etc/inetd.conf 2009-07-31 20:34:07.000000000 +0300 @@ -35,7 +35,7 @@ # about things due to Internet security concerns. Only turn on what you # need. # -#daytime stream tcp nowait root internal +daytime stream tcp nowait root internal #daytime stream tcp6 nowait root internal #daytime dgram udp wait root internal #daytime dgram udp6 wait root internal |
#ee /etc/rc.conf
--- /tmp/l3-saved-1475.15731.29142 2009-07-31 20:33:47.000000000 +0300 +++ /etc/inetd.conf 2009-07-31 20:34:07.000000000 +0300 @@ -35,7 +35,7 @@ # about things due to Internet security concerns. Only turn on what you # need. # -#daytime stream tcp nowait root internal +daytime stream tcp nowait root internal #daytime stream tcp6 nowait root internal #daytime dgram udp wait root internal #daytime dgram udp6 wait root internal |
#ee /etc/rc.conf
--- /tmp/l3-saved-1475.15731.29142 2009-07-31 20:33:47.000000000 +0300 +++ /etc/inetd.conf 2009-07-31 20:34:07.000000000 +0300 @@ -35,7 +35,7 @@ # about things due to Internet security concerns. Only turn on what you # need. # -#daytime stream tcp nowait root internal +daytime stream tcp nowait root internal #daytime stream tcp6 nowait root internal #daytime dgram udp wait root internal #daytime dgram udp6 wait root internal |
#ping ya.ru
64 bytes from 213.180.204.8: icmp_seq=621 ttl=45 time=53.068 ms 64 bytes from 213.180.204.8: icmp_seq=622 ttl=46 time=60.049 ms 64 bytes from 213.180.204.8: icmp_seq=623 ttl=45 time=52.982 ms 64 bytes from 213.180.204.8: icmp_seq=624 ttl=45 time=52.733 ms 64 bytes from 213.180.204.8: icmp_seq=625 ttl=45 time=52.462 ms 64 bytes from 213.180.204.8: icmp_seq=626 ttl=45 time=52.149 ms 64 bytes from 213.180.204.8: icmp_seq=627 ttl=45 time=52.088 ms 64 bytes from 213.180.204.8: icmp_seq=628 ttl=46 time=61.260 ms 64 bytes from 213.180.204.8: icmp_seq=629 ttl=46 time=61.042 ms 64 bytes from 213.180.204.8: icmp_seq=630 ttl=46 time=62.032 ms ... 64 bytes from 213.180.204.8: icmp_seq=760 ttl=45 time=54.045 ms 64 bytes from 213.180.204.8: icmp_seq=761 ttl=46 time=61.678 ms 64 bytes from 213.180.204.8: icmp_seq=762 ttl=45 time=52.385 ms 64 bytes from 213.180.204.8: icmp_seq=763 ttl=46 time=61.171 ms 64 bytes from 213.180.204.8: icmp_seq=764 ttl=46 time=61.902 ms 64 bytes from 213.180.204.8: icmp_seq=765 ttl=45 time=52.182 ms 64 bytes from 213.180.204.8: icmp_seq=766 ttl=46 time=61.186 ms 64 bytes from 213.180.204.8: icmp_seq=767 ttl=46 time=61.993 ms 64 bytes from 213.180.204.8: icmp_seq=768 ttl=45 time=52.232 ms 64 bytes from 213.180.204.8: icmp_seq=769 ttl=46 time=61.482 ms |
#ping ya.ru
64 bytes from 213.180.204.8: icmp_seq=621 ttl=45 time=53.068 ms 64 bytes from 213.180.204.8: icmp_seq=622 ttl=46 time=60.049 ms 64 bytes from 213.180.204.8: icmp_seq=623 ttl=45 time=52.982 ms 64 bytes from 213.180.204.8: icmp_seq=624 ttl=45 time=52.733 ms 64 bytes from 213.180.204.8: icmp_seq=625 ttl=45 time=52.462 ms 64 bytes from 213.180.204.8: icmp_seq=626 ttl=45 time=52.149 ms 64 bytes from 213.180.204.8: icmp_seq=627 ttl=45 time=52.088 ms 64 bytes from 213.180.204.8: icmp_seq=628 ttl=46 time=61.260 ms 64 bytes from 213.180.204.8: icmp_seq=629 ttl=46 time=61.042 ms 64 bytes from 213.180.204.8: icmp_seq=630 ttl=46 time=62.032 ms ... 64 bytes from 213.180.204.8: icmp_seq=760 ttl=45 time=54.045 ms 64 bytes from 213.180.204.8: icmp_seq=761 ttl=46 time=61.678 ms 64 bytes from 213.180.204.8: icmp_seq=762 ttl=45 time=52.385 ms 64 bytes from 213.180.204.8: icmp_seq=763 ttl=46 time=61.171 ms 64 bytes from 213.180.204.8: icmp_seq=764 ttl=46 time=61.902 ms 64 bytes from 213.180.204.8: icmp_seq=765 ttl=45 time=52.182 ms 64 bytes from 213.180.204.8: icmp_seq=766 ttl=46 time=61.186 ms 64 bytes from 213.180.204.8: icmp_seq=767 ttl=46 time=61.993 ms 64 bytes from 213.180.204.8: icmp_seq=768 ttl=45 time=52.232 ms 64 bytes from 213.180.204.8: icmp_seq=769 ttl=46 time=61.482 ms |
#ping ya.ru
64 bytes from 213.180.204.8: icmp_seq=621 ttl=45 time=53.068 ms 64 bytes from 213.180.204.8: icmp_seq=622 ttl=46 time=60.049 ms 64 bytes from 213.180.204.8: icmp_seq=623 ttl=45 time=52.982 ms 64 bytes from 213.180.204.8: icmp_seq=624 ttl=45 time=52.733 ms 64 bytes from 213.180.204.8: icmp_seq=625 ttl=45 time=52.462 ms 64 bytes from 213.180.204.8: icmp_seq=626 ttl=45 time=52.149 ms 64 bytes from 213.180.204.8: icmp_seq=627 ttl=45 time=52.088 ms 64 bytes from 213.180.204.8: icmp_seq=628 ttl=46 time=61.260 ms 64 bytes from 213.180.204.8: icmp_seq=629 ttl=46 time=61.042 ms 64 bytes from 213.180.204.8: icmp_seq=630 ttl=46 time=62.032 ms ... 64 bytes from 213.180.204.8: icmp_seq=760 ttl=45 time=54.045 ms 64 bytes from 213.180.204.8: icmp_seq=761 ttl=46 time=61.678 ms 64 bytes from 213.180.204.8: icmp_seq=762 ttl=45 time=52.385 ms 64 bytes from 213.180.204.8: icmp_seq=763 ttl=46 time=61.171 ms 64 bytes from 213.180.204.8: icmp_seq=764 ttl=46 time=61.902 ms 64 bytes from 213.180.204.8: icmp_seq=765 ttl=45 time=52.182 ms 64 bytes from 213.180.204.8: icmp_seq=766 ttl=46 time=61.186 ms 64 bytes from 213.180.204.8: icmp_seq=767 ttl=46 time=61.993 ms 64 bytes from 213.180.204.8: icmp_seq=768 ttl=45 time=52.232 ms 64 bytes from 213.180.204.8: icmp_seq=769 ttl=46 time=61.482 ms |
#telnet mail.ru pop3
Trying 217.69.128.41... ^C |
#telnet mail.ru pop3
Trying 217.69.128.41... ^C |
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS user ssh 1597 3 tcp4 192.168.16.26:52825 192.168.16.7:22 user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user sshd 1157 3 tcp4 192.168.16.26:22 192.168.16.26:57042 user sshd 1157 4 stream -> ?? root sshd 1153 3 tcp4 192.168.16.26:22 192.168.16.26:57042 ... root sendmail 893 3 tcp4 127.0.0.1:25 *:* root sendmail 893 4 dgram -> /var/run/logpriv root sshd 887 3 tcp46 *:22 *:* root sshd 887 4 tcp4 *:22 *:* root syslogd 732 4 dgram /var/run/log root syslogd 732 5 dgram /var/run/logpriv root syslogd 732 6 udp6 *:514 *:* root syslogd 732 7 udp4 *:514 *:* root devd 661 4 stream /var/run/devd.pipe root moused 586 4 stream /var/run/devd.pipe |
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS user ssh 1597 3 tcp4 192.168.16.26:52825 192.168.16.7:22 user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user sshd 1157 3 tcp4 192.168.16.26:22 192.168.16.26:57042 user sshd 1157 4 stream -> ?? root sshd 1153 3 tcp4 192.168.16.26:22 192.168.16.26:57042 ... root sendmail 893 3 tcp4 127.0.0.1:25 *:* root sendmail 893 4 dgram -> /var/run/logpriv root sshd 887 3 tcp46 *:22 *:* root sshd 887 4 tcp4 *:22 *:* root syslogd 732 4 dgram /var/run/log root syslogd 732 5 dgram /var/run/logpriv root syslogd 732 6 udp6 *:514 *:* root syslogd 732 7 udp4 *:514 *:* root devd 661 4 stream /var/run/devd.pipe root moused 586 4 stream /var/run/devd.pipe |
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS user ssh 1597 3 tcp4 192.168.16.26:52825 192.168.16.7:22 user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user sshd 1157 3 tcp4 192.168.16.26:22 192.168.16.26:57042 user sshd 1157 4 stream -> ?? root sshd 1153 3 tcp4 192.168.16.26:22 192.168.16.26:57042 ... root sendmail 893 3 tcp4 127.0.0.1:25 *:* root sendmail 893 4 dgram -> /var/run/logpriv root sshd 887 3 tcp46 *:22 *:* root sshd 887 4 tcp4 *:22 *:* root syslogd 732 4 dgram /var/run/log root syslogd 732 5 dgram /var/run/logpriv root syslogd 732 6 udp6 *:514 *:* root syslogd 732 7 udp4 *:514 *:* root devd 661 4 stream /var/run/devd.pipe root moused 586 4 stream /var/run/devd.pipe |
#sockstat | grep 13
user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user dbus-daemo 1084 13 stream /var/tmp/dbus-Agas9pfFh3 nobody Xvnc 1042 13 stream /tmp/.X11-unix/X2 |
#sockstat | grep 13
user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user dbus-daemo 1084 13 stream /var/tmp/dbus-Agas9pfFh3 nobody Xvnc 1042 13 stream /tmp/.X11-unix/X2 |
#sockstat | grep 13
user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user dbus-daemo 1084 13 stream /var/tmp/dbus-Agas9pfFh3 nobody Xvnc 1042 13 stream /tmp/.X11-unix/X2 |
#ee /etc/inetd.conf
--- /tmp/l3-saved-1475.15160.23671 2009-07-31 20:34:50.000000000 +0300 +++ /etc/inetd.conf 2009-07-31 20:35:12.000000000 +0300 @@ -49,7 +49,7 @@ #echo dgram udp6 wait root internal #discard stream tcp nowait root internal #discard stream tcp6 nowait root internal -#discard dgram udp wait root internal +discard dgram udp wait root internal #discard dgram udp6 wait root internal #chargen stream tcp nowait root internal #chargen stream tcp6 nowait root internal |
#ee /etc/inetd.conf
--- /tmp/l3-saved-1475.15160.23671 2009-07-31 20:34:50.000000000 +0300 +++ /etc/inetd.conf 2009-07-31 20:35:12.000000000 +0300 @@ -49,7 +49,7 @@ #echo dgram udp6 wait root internal #discard stream tcp nowait root internal #discard stream tcp6 nowait root internal -#discard dgram udp wait root internal +discard dgram udp wait root internal #discard dgram udp6 wait root internal #chargen stream tcp nowait root internal #chargen stream tcp6 nowait root internal |
#ee /etc/inetd.conf
--- /tmp/l3-saved-1475.15160.23671 2009-07-31 20:34:50.000000000 +0300 +++ /etc/inetd.conf 2009-07-31 20:35:12.000000000 +0300 @@ -49,7 +49,7 @@ #echo dgram udp6 wait root internal #discard stream tcp nowait root internal #discard stream tcp6 nowait root internal -#discard dgram udp wait root internal +discard dgram udp wait root internal #discard dgram udp6 wait root internal #chargen stream tcp nowait root internal #chargen stream tcp6 nowait root internal |
#sockstat | grep 13
user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user dbus-daemo 1084 13 stream /var/tmp/dbus-Agas9pfFh3 nobody Xvnc 1042 13 stream /tmp/.X11-unix/X2 |
#sockstat | grep 13
user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user dbus-daemo 1084 13 stream /var/tmp/dbus-Agas9pfFh3 nobody Xvnc 1042 13 stream /tmp/.X11-unix/X2 |
#sockstat | grep 13
user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user dbus-daemo 1084 13 stream /var/tmp/dbus-Agas9pfFh3 nobody Xvnc 1042 13 stream /tmp/.X11-unix/X2 |
#ee /etc/inetd.conf
--- /tmp/l3-saved-1475.32358.21617 2009-07-31 20:39:26.000000000 +0300 +++ /etc/inetd.conf 2009-07-31 20:40:08.000000000 +0300 @@ -35,13 +35,13 @@ # about things due to Internet security concerns. Only turn on what you # need. # -daytime stream tcp nowait root internal +#daytime stream tcp nowait root internal #daytime stream tcp6 nowait root internal #daytime dgram udp wait root internal #daytime dgram udp6 wait root internal #time stream tcp nowait root internal #time stream tcp6 nowait root internal -#time dgram udp wait root internal +time dgram udp wait root internal #time dgram udp6 wait root internal #echo stream tcp nowait root internal #echo stream tcp6 nowait root internal @@ -49,7 +49,7 @@ #echo dgram udp6 wait root internal #discard stream tcp nowait root internal #discard stream tcp6 nowait root internal -discard dgram udp wait root internal +#discard dgram udp wait root internal #discard dgram udp6 wait root internal #chargen stream tcp nowait root internal #chargen stream tcp6 nowait root internal |
#ee /etc/inetd.conf
--- /tmp/l3-saved-1475.32358.21617 2009-07-31 20:39:26.000000000 +0300 +++ /etc/inetd.conf 2009-07-31 20:40:08.000000000 +0300 @@ -35,13 +35,13 @@ # about things due to Internet security concerns. Only turn on what you # need. # -daytime stream tcp nowait root internal +#daytime stream tcp nowait root internal #daytime stream tcp6 nowait root internal #daytime dgram udp wait root internal #daytime dgram udp6 wait root internal #time stream tcp nowait root internal #time stream tcp6 nowait root internal -#time dgram udp wait root internal +time dgram udp wait root internal #time dgram udp6 wait root internal #echo stream tcp nowait root internal #echo stream tcp6 nowait root internal @@ -49,7 +49,7 @@ #echo dgram udp6 wait root internal #discard stream tcp nowait root internal #discard stream tcp6 nowait root internal -discard dgram udp wait root internal +#discard dgram udp wait root internal #discard dgram udp6 wait root internal #chargen stream tcp nowait root internal #chargen stream tcp6 nowait root internal |
#ee /etc/inetd.conf
--- /tmp/l3-saved-1475.32358.21617 2009-07-31 20:39:26.000000000 +0300 +++ /etc/inetd.conf 2009-07-31 20:40:08.000000000 +0300 @@ -35,13 +35,13 @@ # about things due to Internet security concerns. Only turn on what you # need. # -daytime stream tcp nowait root internal +#daytime stream tcp nowait root internal #daytime stream tcp6 nowait root internal #daytime dgram udp wait root internal #daytime dgram udp6 wait root internal #time stream tcp nowait root internal #time stream tcp6 nowait root internal -#time dgram udp wait root internal +time dgram udp wait root internal #time dgram udp6 wait root internal #echo stream tcp nowait root internal #echo stream tcp6 nowait root internal @@ -49,7 +49,7 @@ #echo dgram udp6 wait root internal #discard stream tcp nowait root internal #discard stream tcp6 nowait root internal -discard dgram udp wait root internal +#discard dgram udp wait root internal #discard dgram udp6 wait root internal #chargen stream tcp nowait root internal #chargen stream tcp6 nowait root internal |
#inetd restart
inetd[1685]: Accessing restart: No such file or directory, continuing anyway. inetd[1685]: inetd already running, pid: 927 |
#inetd restart
inetd[1685]: Accessing restart: No such file or directory, continuing anyway. inetd[1685]: inetd already running, pid: 927 |
#inetd restart
inetd[1685]: Accessing restart: No such file or directory, continuing anyway. inetd[1685]: inetd already running, pid: 927 |
#/etc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#/etc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#/etc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#sockstat | grep 13
root inetd 1712 5 tcp4 *:13 *:* user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user dbus-daemo 1084 13 stream /var/tmp/dbus-Agas9pfFh3 nobody Xvnc 1042 13 stream /tmp/.X11-unix/X2 |
#sockstat | grep 13
root inetd 1712 5 tcp4 *:13 *:* user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user dbus-daemo 1084 13 stream /var/tmp/dbus-Agas9pfFh3 nobody Xvnc 1042 13 stream /tmp/.X11-unix/X2 |
#sockstat | grep 13
root inetd 1712 5 tcp4 *:13 *:* user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user dbus-daemo 1084 13 stream /var/tmp/dbus-Agas9pfFh3 nobody Xvnc 1042 13 stream /tmp/.X11-unix/X2 |
#sockstat char
Usage: sockstat [-46clu] [-p ports] |
#sockstat char
Usage: sockstat [-46clu] [-p ports] |
#sockstat char
Usage: sockstat [-46clu] [-p ports] |
#sockstat | grep char
|
#sockstat | grep char
|
#sockstat | grep char
|
#sockstat | grep 13
root inetd 1712 5 tcp4 *:13 *:* user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user dbus-daemo 1084 13 stream /var/tmp/dbus-Agas9pfFh3 nobody Xvnc 1042 13 stream /tmp/.X11-unix/X2 |
#sockstat | grep 13
root inetd 1712 5 tcp4 *:13 *:* user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user dbus-daemo 1084 13 stream /var/tmp/dbus-Agas9pfFh3 nobody Xvnc 1042 13 stream /tmp/.X11-unix/X2 |
#sockstat | grep 13
root inetd 1712 5 tcp4 *:13 *:* user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user dbus-daemo 1084 13 stream /var/tmp/dbus-Agas9pfFh3 nobody Xvnc 1042 13 stream /tmp/.X11-unix/X2 |
#cat /etc/services | grep daytime
daytime 13/tcp daytime 13/udp |
#cat /etc/services | grep daytime
daytime 13/tcp daytime 13/udp |
#cat /etc/services | grep daytime
daytime 13/tcp daytime 13/udp |
#/etc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#/etc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#/etc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#ee /etc/inetd.conf
|
#ee /etc/inetd.conf
|
#ee /etc/inetd.conf
|
#/etc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#/etc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#/etc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root inetd 1826 5 udp4 *:37 *:* root inetd 1826 6 tcp4 *:5902 *:* user ssh 1597 3 tcp4 192.168.16.26:52825 192.168.16.7:22 user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user sshd 1157 3 tcp4 192.168.16.26:22 192.168.16.26:57042 ... root sendmail 893 3 tcp4 127.0.0.1:25 *:* root sendmail 893 4 dgram -> /var/run/logpriv root sshd 887 3 tcp46 *:22 *:* root sshd 887 4 tcp4 *:22 *:* root syslogd 732 4 dgram /var/run/log root syslogd 732 5 dgram /var/run/logpriv root syslogd 732 6 udp6 *:514 *:* root syslogd 732 7 udp4 *:514 *:* root devd 661 4 stream /var/run/devd.pipe root moused 586 4 stream /var/run/devd.pipe |
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root inetd 1826 5 udp4 *:37 *:* root inetd 1826 6 tcp4 *:5902 *:* user ssh 1597 3 tcp4 192.168.16.26:52825 192.168.16.7:22 user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user sshd 1157 3 tcp4 192.168.16.26:22 192.168.16.26:57042 ... root sendmail 893 3 tcp4 127.0.0.1:25 *:* root sendmail 893 4 dgram -> /var/run/logpriv root sshd 887 3 tcp46 *:22 *:* root sshd 887 4 tcp4 *:22 *:* root syslogd 732 4 dgram /var/run/log root syslogd 732 5 dgram /var/run/logpriv root syslogd 732 6 udp6 *:514 *:* root syslogd 732 7 udp4 *:514 *:* root devd 661 4 stream /var/run/devd.pipe root moused 586 4 stream /var/run/devd.pipe |
#sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root inetd 1826 5 udp4 *:37 *:* root inetd 1826 6 tcp4 *:5902 *:* user ssh 1597 3 tcp4 192.168.16.26:52825 192.168.16.7:22 user sshd 1371 3 tcp4 192.168.16.26:22 192.168.16.26:51555 user sshd 1371 4 stream -> ?? root sshd 1354 3 tcp4 192.168.16.26:22 192.168.16.26:51555 root sshd 1354 5 stream -> ?? user ssh 1353 3 tcp4 192.168.16.26:51555 192.168.16.26:22 user sshd 1157 3 tcp4 192.168.16.26:22 192.168.16.26:57042 ... root sendmail 893 3 tcp4 127.0.0.1:25 *:* root sendmail 893 4 dgram -> /var/run/logpriv root sshd 887 3 tcp46 *:22 *:* root sshd 887 4 tcp4 *:22 *:* root syslogd 732 4 dgram /var/run/log root syslogd 732 5 dgram /var/run/logpriv root syslogd 732 6 udp6 *:514 *:* root syslogd 732 7 udp4 *:514 *:* root devd 661 4 stream /var/run/devd.pipe root moused 586 4 stream /var/run/devd.pipe |
#less /etc/services
|
#less /etc/services
|
#less /etc/services
|
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
#tail -f /var/log/messages
Jul 31 22:33:30 fbsd6 xinetd[11237]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11238]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11239]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11240]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11241]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11242]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11243]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11244]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11245]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11246]: warning: can't get client address: Bad file descriptor ... Jul 31 22:33:32 fbsd6 xinetd[11376]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11377]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11378]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11379]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11380]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11381]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11382]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11383]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11384]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11385]: warning: can't get client address: Bad file descriptor |
#tail -f /var/log/messages
Jul 31 22:33:30 fbsd6 xinetd[11237]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11238]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11239]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11240]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11241]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11242]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11243]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11244]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11245]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11246]: warning: can't get client address: Bad file descriptor ... Jul 31 22:33:32 fbsd6 xinetd[11376]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11377]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11378]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11379]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11380]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11381]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11382]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11383]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11384]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11385]: warning: can't get client address: Bad file descriptor |
#tail -f /var/log/messages
Jul 31 22:33:30 fbsd6 xinetd[11237]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11238]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11239]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11240]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11241]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11242]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11243]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11244]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11245]: warning: can't get client address: Bad file descriptor Jul 31 22:33:30 fbsd6 xinetd[11246]: warning: can't get client address: Bad file descriptor ... Jul 31 22:33:32 fbsd6 xinetd[11376]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11377]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11378]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11379]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11380]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11381]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11382]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11383]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11384]: warning: can't get client address: Bad file descriptor Jul 31 22:33:32 fbsd6 xinetd[11385]: warning: can't get client address: Bad file descriptor |
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
nobody@debian7:/$ quit bash: quit: command not found nobody@debian7:/$ exit exit |
#nc 192.168.16.7 65533
nobody@debian7:/$ quit bash: quit: command not found nobody@debian7:/$ exit exit |
#nc 192.168.16.7 65533
nobody@debian7:/$ quit bash: quit: command not found nobody@debian7:/$ exit exit |
#nc 192.168.16.7 65533
nobody@debian7:/$ exit exit |
#nc 192.168.16.7 65533
nobody@debian7:/$ exit exit |
#nc 192.168.16.7 65533
nobody@debian7:/$ exit exit |
#nc 192.168.16.7 65533
nobody@debian7:/$ exit exit |
#nc 192.168.16.7 65533
nobody@debian7:/$ exit exit |
#nc 192.168.16.7 65533
nobody@debian7:/$ exit exit |
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
#nc 192.168.16.7 65533
|
Время первой команды журнала | 19:15:26 2009- 7-31 | ||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 20:04:07 2009- 7-31 | ||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 14.85 | ||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.81 | ||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.07 | ||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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