/l3/users/eb/2009/linux13/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 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 :45 :46 :47 :48 :49 :50 :51 :52 :53 :54 :55 :56 :57 :58 :59 :60 :61 :62 :63 :64 :65 :66 :67 :68 :69 :70 :71 :72 :73 :74 :75 :76 |
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:fc:c1:52:e8 inet addr:192.168.15.13 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fec1:52e8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8409 errors:0 dropped:0 overruns:0 frame:0 TX packets:6375 errors:0 dropped:0 overruns:0 carrier:6 collisions:0 txqueuelen:1000 RX bytes:1951060 (1.8 MiB) TX bytes:486152 (474.7 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:42 errors:0 dropped:0 overruns:0 frame:0 TX packets:42 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:42473 (41.4 KiB) TX bytes:42473 (41.4 KiB) |
#ifconfig eth0:1 192.168.108.1
|
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.108.0 * 255.255.255.0 U 0 0 0 eth0 192.168.15.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#ping 192.168.108.2
PING 192.168.108.2 (192.168.108.2) 56(84) bytes of data. From 192.168.108.1 icmp_seq=1 Destination Host Unreachable From 192.168.108.1 icmp_seq=2 Destination Host Unreachable From 192.168.108.1 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.108.2 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5032ms , pipe 3 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.108.0 * 255.255.255.0 U 0 0 0 eth0 192.168.15.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#vi /proc/sys/net/ipv4/ip_forward
|
#ifconfig eth0:1 192.168.107.1
|
#vi /etc/sysctl.conf
|
#ping 192.168.107.1
PING 192.168.107.1 (192.168.107.1) 56(84) bytes of data. 64 bytes from 192.168.107.1: icmp_seq=1 ttl=64 time=0.022 ms 64 bytes from 192.168.107.1: icmp_seq=2 ttl=64 time=0.006 ms ^C --- 192.168.107.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.006/0.014/0.022/0.008 ms |
#ping 192.168.107.2
PING 192.168.107.2 (192.168.107.2) 56(84) bytes of data. From 192.168.107.1 icmp_seq=1 Destination Host Unreachable From 192.168.107.1 icmp_seq=2 Destination Host Unreachable From 192.168.107.1 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.107.2 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5030ms , pipe 3 |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:fc:c1:52:e8 inet addr:192.168.15.13 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fec1:52e8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9763 errors:0 dropped:0 overruns:0 frame:0 TX packets:7063 errors:0 dropped:0 overruns:0 carrier:6 collisions:0 txqueuelen:1000 RX bytes:2350217 (2.2 MiB) TX bytes:541541 (528.8 KiB) eth0:1 Link encap:Ethernet HWaddr 00:1b:fc:c1:52:e8 inet addr:192.168.107.1 Bcast:192.168.107.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:58 errors:0 dropped:0 overruns:0 frame:0 TX packets:58 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:44153 (43.1 KiB) TX bytes:44153 (43.1 KiB) |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 * 255.255.255.0 U 0 0 0 eth0 192.168.107.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#ssh 10.0.35.100
ssh: connect to host 10.0.35.100 port 22: Connection refused |
#ssh 10.0.35.100
ssh: connect to host 10.0.35.100 port 22: Connection refused |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 * 255.255.255.0 U 0 0 0 eth0 192.168.107.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#cat /proc/sys/net/ipv4/ip_forward
1 |
#ssh 10.0.35.100
root@10.0.35.100's password: Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 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 Jun 1 17:29:18 2009 from linux6.unix.nt l3-agent is already running: pid=1765; pidfile=/root/.lilalo/l3-agent.pid |
#ping 192.168.107.2
PING 192.168.107.2 (192.168.107.2) 56(84) bytes of data. From 192.168.107.1 icmp_seq=1 Destination Host Unreachable From 192.168.107.1 icmp_seq=2 Destination Host Unreachable From 192.168.107.1 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.107.2 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5033ms , pipe 3 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 * 255.255.255.0 U 0 0 0 eth0 192.168.107.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#ip route
192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.13 192.168.107.0/24 dev eth0 proto kernel scope link src 192.168.107.1 default via 192.168.15.254 dev eth0 |
#ping 192.168.107.2
PING 192.168.107.2 (192.168.107.2) 56(84) bytes of data. From 192.168.107.1 icmp_seq=1 Destination Host Unreachable From 192.168.107.1 icmp_seq=2 Destination Host Unreachable From 192.168.107.1 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.107.2 ping statistics --- 5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4022ms , pipe 3 |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1b:fc:c1:52:e8 inet addr:192.168.15.13 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fec1:52e8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10663 errors:0 dropped:0 overruns:0 frame:0 TX packets:7742 errors:0 dropped:0 overruns:0 carrier:6 collisions:0 txqueuelen:1000 RX bytes:2473331 (2.3 MiB) TX bytes:605600 (591.4 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:72 errors:0 dropped:0 overruns:0 frame:0 TX packets:72 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:45649 (44.5 KiB) TX bytes:45649 (44.5 KiB) |
#vconfig add eth0 107
WARNING: Could not open /proc/net/vlan/config. Maybe you need to load the 8021q module, or maybe you are not using PROCFS?? Added VLAN with VID == 107 to IF -:eth0:- |
#ifconfig eth0.107 192.168.107.1
|
#ping 192.168.107.2
PING 192.168.107.2 (192.168.107.2) 56(84) bytes of data. 64 bytes from 192.168.107.2: icmp_seq=1 ttl=64 time=1.21 ms 64 bytes from 192.168.107.2: icmp_seq=2 ttl=64 time=0.217 ms ^C --- 192.168.107.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.217/0.714/1.212/0.498 ms |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 * 255.255.255.0 U 0 0 0 eth0 192.168.107.0 * 255.255.255.0 U 0 0 0 eth0.107 default 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#exit
exit Connection to 10.0.35.100 closed. |
#openvt
|
#ssh 10.0.35.100
root@10.0.35.100's password: Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 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: Tue Jun 2 10:05:01 2009 from linux11.unix.nt l3-agent is already running: pid=1765; pidfile=/root/.lilalo/l3-agent.pid |
#tcpdump -i eth0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes 10:05:35.892890 ARP, Request who-has 192.168.107.2 tell 192.168.107.1, length 28 10:05:35.893110 ARP, Reply 192.168.107.2 is-at 00:1b:fc:7d:bd:0e (oui Unknown), length 46 10:05:35.894561 IP linux13.53256 > 10.0.35.1.domain: 6307+ PTR? 2.107.168.192.in-addr.arpa. (44) 10:05:35.894986 IP 10.0.35.1.domain > linux13.53256: 6307 NXDomain 0/1/0 (121) 10:05:35.895057 IP linux13.51139 > 10.0.35.1.domain: 49358+ PTR? 1.107.168.192.in-addr.arpa. (44) 10:05:35.953224 IP 10.0.35.1.domain > linux13.51139: 49358 NXDomain 0/1/0 (121) 10:05:35.953347 IP linux13.48802 > 10.0.35.1.domain: 27425+ PTR? 1.35.0.10.in-addr.arpa. (40) 10:05:35.953633 IP 10.0.35.1.domain > linux13.48802: 27425 NXDomain 0/1/0 (117) ... 10:05:41.612255 IP 10.0.35.100.ssh > 192.168.107.2.50456: Flags [P.], seq 1985:2129, ack 96, win 857, options [nop,nop,TS val 17195325 ecr 22250330], length 144 10:05:41.612456 IP 192.168.107.2.50456 > 10.0.35.100.ssh: Flags [.], ack 2129, win 655, options [nop,nop,TS val 22250333 ecr 17195325], length 0 10:05:41.612459 IP 192.168.107.2.50456 > 10.0.35.100.ssh: Flags [.], ack 2129, win 655, options [nop,nop,TS val 22250333 ecr 17195325], length 0 10:05:49.691654 00:15:60:7a:63:80 (oui Unknown) > 09:00:09:00:00:67 (oui Unknown) Unknown DSAP 0xf8 Unnumbered, ui, Flags [Command], length 99 10:06:11.518987 LLDP, name ProCurve Switch 3400cl-48G, length 166 [|LLDP] ^C 133 packets captured 133 packets received by filter 0 packets dropped by kernel |
#tcpdump -n eth0
tcpdump: syntax error |
#tcpdump -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes 10:06:29.419868 IP 192.168.15.13.42423 > 10.0.35.1.53: 49134+ A? xgu.ru. (24) 10:06:29.420191 IP 10.0.35.1.53 > 192.168.15.13.42423: 49134 1/3/0 A 194.150.93.78 (106) 10:06:29.420320 IP 192.168.15.13.34713 > 194.150.93.78.18030: Flags [S], seq 3055099370, win 5840, options [mss 1460,sackOK,TS val 16647768 ecr 0,nop,wscale 6], length 0 10:06:29.427217 IP 194.150.93.78.18030 > 192.168.15.13.34713: Flags [S.], seq 386815051, ack 3055099371, win 5792, options [mss 1460,sackOK,TS val 687592747 ecr 16647768,nop,wscale 7], length 0 10:06:29.427231 IP 192.168.15.13.34713 > 194.150.93.78.18030: Flags [.], ack 1, win 92, options [nop,nop,TS val 16647770 ecr 687592747], length 0 10:06:29.427306 IP 192.168.15.13.34713 > 194.150.93.78.18030: Flags [P.], seq 1:581, ack 1, win 92, options [nop,nop,TS val 16647770 ecr 687592747], length 580 10:06:29.427342 IP 192.168.15.13.34713 > 194.150.93.78.18030: Flags [F.], seq 581, ack 1, win 92, options [nop,nop,TS val 16647770 ecr 687592747], length 0 10:06:29.435955 IP 194.150.93.78.18030 > 192.168.15.13.34713: Flags [.], ack 1, win 46, options [nop,nop,TS val 687592749 ecr 16647770,nop,nop,sack 1 {581:582}], length 0 ... 10:06:33.434249 IP 192.168.107.2.50660 > 213.254.12.146.5222: Flags [.], ack 315, win 1002, options [nop,nop,TS val 22263288 ecr 857095865], length 0 10:06:33.434252 IP 192.168.107.2.50660 > 213.254.12.146.5222: Flags [.], ack 315, win 1002, options [nop,nop,TS val 22263288 ecr 857095865], length 0 10:06:38.432886 ARP, Request who-has 192.168.107.2 tell 192.168.107.1, length 28 10:06:38.433106 ARP, Reply 192.168.107.2 is-at 00:1b:fc:7d:bd:0e, length 46 10:06:41.695274 LLDP, name ProCurve Switch 3400cl-48G, length 166 [|LLDP] ^C 24 packets captured 24 packets received by filter 0 packets dropped by kernel |
#tcpdump linux14 192.168.15.14
tcpdump: syntax error |
#tcpdump linux14 192.168.107.2
tcpdump: syntax error |
#tcpdump host 192.168.107.2
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes 10:08:20.562820 IP linux9.unix.nt > 192.168.107.2: ICMP echo request, id 3090, seq 1, length 64 10:08:20.562825 IP linux9.unix.nt > 192.168.107.2: ICMP echo request, id 3090, seq 1, length 64 10:08:20.563027 IP 192.168.107.2 > linux9.unix.nt: ICMP echo reply, id 3090, seq 1, length 64 10:08:20.563030 IP 192.168.107.2 > linux9.unix.nt: ICMP echo reply, id 3090, seq 1, length 64 10:08:21.309570 IP 192.168.107.2.41122 > 192.168.107.1.ssh: Flags [S], seq 1784430122, win 5840, options [mss 1460,sackOK,TS val 22290257 ecr 0,nop,wscale 6], length 0 10:08:21.309585 IP 192.168.107.1.ssh > 192.168.107.2.41122: Flags [S.], seq 531798664, ack 1784430123, win 5792, options [mss 1460,sackOK,TS val 16675741 ecr 22290257,nop,wscale 6], length 0 10:08:21.309979 IP 192.168.107.2.41122 > 192.168.107.1.ssh: Flags [.], ack 1, win 92, options [nop,nop,TS val 22290257 ecr 16675741], length 0 10:08:21.316734 IP 192.168.107.1.ssh > 192.168.107.2.41122: Flags [P.], seq 1:36, ack 1, win 91, options [nop,nop,TS val 16675742 ecr 22290257], length 35 ... 10:08:21.317867 IP 192.168.107.1.ssh > 192.168.107.2.41122: Flags [P.], seq 36:820, ack 828, win 116, options [nop,nop,TS val 16675743 ecr 22290259], length 784 10:08:21.318198 IP 192.168.107.2.41122 > 192.168.107.1.ssh: Flags [P.], seq 828:852, ack 820, win 116, options [nop,nop,TS val 22290259 ecr 16675743], length 24 10:08:21.320844 IP 192.168.107.1.ssh > 192.168.107.2.41122: Flags [P.], seq 820:972, ack 852, win 116, options [nop,nop,TS val 16675743 ecr 22290259], length 152 10:08:21.323186 IP 192.168.107.2.41122 > 192.168.107.1.ssh: Flags [P.], seq 852:996, ack 972, win 141, options [nop,nop,TS val 22290260 ecr 16675743], length 144 10:08:21.340219 IP 192.168.107.1.ssh > 192.168.107.2.41122: Flags [P.], seq 972:1692, ack 996, win 140, options [nop,nop,TS val 16675748 ecr 22290260], length 720 10:08:21.377065 IP 192.168.107.2.41122 > 192.168.107.1.ssh: Flags [.], ack 1692, win 165, options [nop,nop,TS val 22290274 ecr 16675748], length 0 ^C 19 packets captured 19 packets received by filter 0 packets dropped by kernel |
#ssh 192.168.107.2
The authenticity of host '192.168.107.2 (192.168.107.2)' can't be established. RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.107.2' (RSA) to the list of known hosts. Linux linux14 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 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 Jun 1 14:33:11 2009 l3-agent is already running: pid=11361; pidfile=/root/.lilalo/l3-agent.pid |
#tcpdump -i eth0
10:08:52.309373 IP 192.168.107.2.ssh > 192.168.107.1.54889: Flags [P.], seq 30176:30384, ack 1, win 239, options [nop,nop,TS val 22298092 ecr 16683576], length 208 10:08:52.309385 IP 192.168.107.1.54889 > 192.168.107.2.ssh: Flags [.], ack 28992, win 1002, options [nop,nop,TS val 16683576 ecr 22298092], length 0 10:08:52.309443 IP 192.168.107.2.ssh > 192.168.107.1.54889: Flags [P.], seq 30384:30736, ack 1, win 239, options [nop,nop,TS val 22298092 ecr 16683576], length 352 10:08:52.309498 IP 192.168.107.2.ssh > 192.168.107.1.54889: Flags [P.], seq 30736:30944, ack 1, win 239, options [nop,nop,TS val 22298092 ecr 16683576], length 208 10:08:52.309553 IP 192.168.107.2.ssh > 192.168.107.1.54889: Flags [P.], seq 30944:31152, ack 1, win 239, options [nop,nop,TS val 22298092 ecr 16683576], length 208 10:08:52.309592 IP 192.168.107.1.54889 > 192.168.107.2.ssh: Flags [.], ack 29968, win 1002, options [nop,nop,TS val 16683576 ecr 22298092], length 0 10:08:52.309608 IP 192.168.107.2.ssh > 192.168.107.1.54889: Flags [P.], seq 31152:31360, ack 1, win 239, options [nop,nop,TS val 22298092 ecr 16683576], length 208 10:08:52.309676 IP 192.168.107.2.ssh > 192.168.107.1.54889: Flags [P.], seq 31360:31712, ack 1, win 239, options [nop,nop,TS val 22298092 ecr 16683576], length 352 10:08:52.309732 IP 192.168.107.2.ssh > 192.168.107.1.54889: Flags [P.], seq 31712:31920, ack 1, win 239, options [nop,nop,TS val 22298092 ecr 16683576], length 208 10:08:52.309788 IP 192.168.107.2.ssh > 192.168.107.1.54889: Flags [P.], seq 31920:32128, ack 1, win 239, options [nop,nop,TS val 22298092 ecr 16683576], length 208 ... 10:08:52.316760 IP 192.168.107.1.54889 > 192.168.107.2.ssh: Flags [.], ack 55680, win 1002, options [nop,nop,TS val 16683578 ecr 22298094], length 0 10:08:52.316816 IP 192.168.107.2.ssh > 192.168.107.1.54889: Flags [P.], seq 57216:57568, ack 1, win 239, options [nop,nop,TS val 22298094 ecr 16683578], length 352 10:08:52.316873 IP 192.168.107.2.ssh > 192.168.107.1.54889: Flags [P.], seq 57568:57776, ack 1, win 239, options [nop,nop,TS val 22298094 ecr 16683578], length 208 10:08:52.316929 IP 192.168.107.2.ssh > 192.168.107.1.54889: Flags [P.], seq 57776:57984, ack 1, win 239, options [nop,nop,TS val 22298094 ecr 16683578], length 208 10:08:52.316964 IP 192.168.107.1.54889 > 192.168.107.2.ssh: Flags [.], ack 56800, win 1002, options [nop,nop,TS val 16683578 ecr 22298094], length 0 10:08:52.317029 IP 192.168.107.2.ssh > 192.168.107.1.54889: Flags [P.], seq 57984:58336, ack 1, win 239, options [nop,nop,TS val 22298094 ecr 16683578], length 352 10:08:52.317086 IP 192.168.107.2.ssh > 192.168.107.1.54889: Flags [P.], seq 58336:58544, ack 1, win 239, options [nop,nop,TS val 22298094 ecr 16683578], length 208 10:08:52.317141 IP 192.168.107.2.ssh > 192.168.107.1.54889: Flags [P.], seq 58544:58752, ack 1, win 239, options [nop,nop,TS val 22298094 ecr 16683578], length 208 10:08:52.317170 IP 192.168.107.1.54889 > 192.168.107.2.ssh: Flags [.], ack 57568, win 1002, options [nop,nop,TS val 16683578 ecr 22298094], length 0 10:08:52.317225 IP 192.168.107.2.ssh > 192.168.107.1.54889: Flags [P.], seq 58752:59104, ack 1, win 239, options [nop,nop,TS val 22298094 ecr 16683578], length 352 |
#not port 22
bash: not: команда не найдена |
#tcpdump not port 22
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes 10:10:41.660857 LLDP, name ProCurve Switch 3400cl-48G, length 166 [|LLDP] 10:10:46.994509 IP picard.linux.it.xmpp-client > 192.168.107.2.50660: Flags [P.], seq 4222638723:4222638941, ack 3368633212, win 501, options [nop,nop,TS val 857159320 ecr 22319287], length 218 10:10:46.994537 IP 192.168.107.2.50660 > picard.linux.it.xmpp-client: Flags [.], ack 218, win 1002, options [nop,nop,TS val 22326763 ecr 857159320], length 0 10:10:47.001868 IP 192.168.107.2.55964 > 10.0.35.1.domain: 61046+ PTR? 2.107.168.192.in-addr.arpa. (44) 10:10:47.062305 IP 10.0.35.1.domain > 192.168.107.2.55964: 61046 NXDomain 0/1/0 (121) 10:10:47.062465 IP 192.168.107.2.54310 > 10.0.35.1.domain: 62981+ PTR? 146.12.254.213.in-addr.arpa. (45) 10:10:47.063117 IP 10.0.35.1.domain > 192.168.107.2.54310: 62981 1/3/2 (202) ... [|LLDP] 10:11:43.031605 IP 192.168.107.2.50660 > picard.linux.it.xmpp-client: Flags [P.], seq 1:155, ack 218, win 1002, options [nop,nop,TS val 22340772 ecr 857159320], length 154 10:11:43.091475 IP picard.linux.it.xmpp-client > 192.168.107.2.50660: Flags [P.], seq 218:532, ack 155, win 501, options [nop,nop,TS val 857173340 ecr 22340772], length 314 10:11:43.091506 IP 192.168.107.2.50660 > picard.linux.it.xmpp-client: Flags [.], ack 532, win 1002, options [nop,nop,TS val 22340787 ecr 857173340], length 0 10:11:53.918394 ARP, Request who-has 192.168.107.2 tell 192.168.107.1, length 46 10:11:53.918413 ARP, Reply 192.168.107.2 is-at 00:1b:fc:7d:bd:0e (oui Unknown), length 28 ^C 24 packets captured 24 packets received by filter 0 packets dropped by kernel |
#tcpdump -i eth0 -p 22
tcpdump: syntax error |
#man tcp
|
#man tcpdump
|
#tcpdump host 192.168.107.2 and port 22
10:14:16.970927 IP 192.168.107.2.50456 > 10.0.35.100.ssh: Flags [.], ack 1824, win 1002, options [nop,nop,TS val 22379171 ecr 17324159], length 0 10:14:16.972583 IP 10.0.35.100.ssh > 192.168.107.2.50456: Flags [P.], seq 1824:2128, ack 1, win 857, options [nop,nop,TS val 17324159 ecr 22379171], length 304 10:14:16.972586 IP 10.0.35.100.ssh > 192.168.107.2.50456: Flags [P.], seq 1824:2128, ack 1, win 857, options [nop,nop,TS val 17324159 ecr 22379171], length 304 10:14:16.972792 IP 192.168.107.2.50456 > 10.0.35.100.ssh: Flags [.], ack 2128, win 1002, options [nop,nop,TS val 22379172 ecr 17324159], length 0 10:14:16.972794 IP 192.168.107.2.50456 > 10.0.35.100.ssh: Flags [.], ack 2128, win 1002, options [nop,nop,TS val 22379172 ecr 17324159], length 0 10:14:16.973912 IP 10.0.35.100.ssh > 192.168.107.2.50456: Flags [P.], seq 2128:2256, ack 1, win 857, options [nop,nop,TS val 17324159 ecr 22379172], length 128 10:14:16.973915 IP 10.0.35.100.ssh > 192.168.107.2.50456: Flags [P.], seq 2128:2256, ack 1, win 857, options [nop,nop,TS val 17324159 ecr 22379172], length 128 10:14:16.974124 IP 192.168.107.2.50456 > 10.0.35.100.ssh: Flags [.], ack 2256, win 1002, options [nop,nop,TS val 22379172 ecr 17324159], length 0 10:14:16.974126 IP 192.168.107.2.50456 > 10.0.35.100.ssh: Flags [.], ack 2256, win 1002, options [nop,nop,TS val 22379172 ecr 17324159], length 0 10:14:17.311307 IP 10.0.35.100.ssh > 192.168.107.2.50456: Flags [P.], seq 2256:2560, ack 1, win 857, options [nop,nop,TS val 17324244 ecr 22379172], length 304 ... 10:14:19.755394 IP 10.0.35.100.ssh > 192.168.107.2.50456: Flags [P.], seq 11728:11872, ack 1, win 857, options [nop,nop,TS val 17324854 ecr 22379867], length 144 10:14:19.755396 IP 10.0.35.100.ssh > 192.168.107.2.50456: Flags [P.], seq 11728:11872, ack 1, win 857, options [nop,nop,TS val 17324854 ecr 22379867], length 144 10:14:19.755397 IP 192.168.107.2.50456 > 10.0.35.100.ssh: Flags [.], ack 11728, win 1002, options [nop,nop,TS val 22379867 ecr 17324854], length 0 10:14:19.755398 IP 192.168.107.2.50456 > 10.0.35.100.ssh: Flags [.], ack 11728, win 1002, options [nop,nop,TS val 22379867 ecr 17324854], length 0 10:14:19.755597 IP 192.168.107.2.50456 > 10.0.35.100.ssh: Flags [.], ack 11872, win 1002, options [nop,nop,TS val 22379867 ecr 17324854], length 0 10:14:19.755599 IP 192.168.107.2.50456 > 10.0.35.100.ssh: Flags [.], ack 11872, win 1002, options [nop,nop,TS val 22379867 ecr 17324854], length 0 ^C 168 packets captured 168 packets received by filter 0 packets dropped by kernel |
#apt-get update
Get:1 http://192.168.15.13 sid Release.gpg [1032B] Ign http://192.168.15.13 sid/main Translation-en_US Ign http://192.168.15.13 sid/contrib Translation-en_US Ign http://192.168.15.13 sid/non-free Translation-en_US Get:2 http://192.168.15.13 sid Release [94.4kB] Ign http://192.168.15.13 sid/main Packages/DiffIndex Get:3 http://192.168.15.13 sid/contrib Packages/DiffIndex [2023B] Get:4 http://192.168.15.13 sid/non-free Packages/DiffIndex [2023B] Ign http://192.168.15.13 sid/main Packages Get:5 http://192.168.15.13 sid/contrib 2009-05-30-1025.48.pdiff [952B] ... Get:22 http://192.168.15.13 sid/non-free 2009-05-31-2104.09.pdiff [385B] Get:23 http://192.168.15.13 sid/non-free 2009-05-31-2104.09.pdiff [385B] Get:24 http://192.168.15.13 sid/non-free 2009-06-01-0855.40.pdiff [370B] Get:25 http://192.168.15.13 sid/non-free 2009-06-01-0855.40.pdiff [370B] Get:26 http://192.168.15.13 sid/non-free 2009-06-01-0855.40.pdiff [370B] Get:27 http://192.168.15.13 sid/non-free 2009-06-01-1521.47.pdiff [385B] Get:28 http://192.168.15.13 sid/non-free 2009-06-01-1521.47.pdiff [385B] Get:29 http://192.168.15.13 sid/non-free 2009-06-01-1521.47.pdiff [385B] Fetched 7874kB in 6s (1226kB/s) Reading package lists... Done |
#apt-get upgrade
Setting up libblkid1 (1.41.6-1) ... (Reading database ... 56279 files and directories currently installed.) Preparing to replace libcomerr2 1.41.5-1 (using .../libcomerr2_1.41.6-1_i386.deb) ... Unpacking replacement libcomerr2 ... Setting up libcomerr2 (1.41.6-1) ... (Reading database ... 56279 files and directories currently installed.) Preparing to replace libss2 1.41.5-1 (using .../libss2_1.41.6-1_i386.deb) ... Unpacking replacement libss2 ... Setting up libss2 (1.41.6-1) ... (Reading database ... 56279 files and directories currently installed.) ... Setting up xfce4-mixer (4.6.1-2) ... Setting up xfce4 (4.6.1.1) ... Setting up xterm (243-1) ... Setting up xkb-data (1.6-1) ... Installing new version of config file /etc/X11/xkb/base.xml ... Processing triggers for menu ... Processing triggers for python-support ... Errors were encountered while processing: ed E: Sub-process /usr/bin/dpkg returned an error code (1) |
#xinit
X: warning; process set to priority -1 instead of requested priority 0 This is a pre-release version of the X server from The X.Org Foundation. It is not supported in any way. Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/. Select the "xorg" product for bugs you find in this release. Before reporting bugs in pre-release versions please check the latest version in the X.Org Foundation git repository. See http://wiki.x.org/wiki/GitPage for git access instructions. X.Org X Server 1.6.1.901 (1.6.2 RC 1) Release Date: 2009-5-8 ... (EE) No devices detected. Fatal server error: no screens found Please consult the The X.Org Foundation support at http://wiki.x.org for help. Please also check the log file at "/var/log/Xorg.0.log" for additional information. giving up. xinit: No such file or directory (errno 2): unable to connect to X server xinit: No such process (errno 3): Server error. |
#openvt
|
#openvt
|
#ysm
HOLD IT! I'm sorry, but i WONT let you run YSM with uid 0. Don't run ysm as root!. ..fag. |
#ssh 10.0.35.100
root@10.0.35.100's password: Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 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: Tue Jun 2 10:26:53 2009 from 192.168.15.253 l3-agent is already running: pid=1765; pidfile=/root/.lilalo/l3-agent.pid |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:fc:c1:52:e8 inet addr:192.168.15.13 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fec1:52e8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:179 errors:0 dropped:0 overruns:0 frame:0 TX packets:178 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:21040 (20.5 KiB) TX bytes:23029 (22.4 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#vconfig add eth0 107
WARNING: Could not open /proc/net/vlan/config. Maybe you need to load the 8021q module, or maybe you are not using PROCFS?? Added VLAN with VID == 107 to IF -:eth0:- |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1b:fc:c1:52:e8 inet addr:192.168.15.13 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fec1:52e8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:217 errors:0 dropped:0 overruns:0 frame:0 TX packets:212 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:25610 (25.0 KiB) TX bytes:28523 (27.8 KiB) eth0.107 Link encap:Ethernet HWaddr 00:1b:fc:c1:52:e8 BROADCAST MULTICAST MTU:1500 Metric:1 ... collisions:0 txqueuelen:0 RX bytes:276 (276.0 B) TX bytes:0 (0.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#ifconfig eth0.107 192.168.107.1
|
#ping 192.168.107.2
PING 192.168.107.2 (192.168.107.2) 56(84) bytes of data. ^C --- 192.168.107.2 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2016ms |
#mii-tool
eth0: negotiated 1000baseT-FD flow-control, link ok |
#man mii-tool
|
#mii-tool -F 10baseT-HD eth0
|
#mii-tool
eth0: negotiated 1000baseT-FD flow-control, link ok |
#mii-tool -F 10baseT-FD eth0
|
#mii-tool
eth0: negotiated 1000baseT-FD flow-control, link ok |
#mii-tool --force=10baseT eth0
usage: mii-tool [-VvRrwl] [-A media,... | -F media] [interface ...] -V, --version display version information -v, --verbose more verbose output -R, --reset reset MII to poweron state -r, --restart restart autonegotiation -w, --watch monitor for link status changes -l, --log with -w, write events to syslog -A, --advertise=media,... advertise only specified media -F, --force=media force specified media technology media: 1000baseTx-HD, 1000baseTx-FD, 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD, (to advertise both HD and FD) 1000baseTx, 100baseTx, 10baseT |
#mii-tool --force=10baseT-FD eth0
|
#mii-tool
eth0: negotiated 1000baseT-FD flow-control, link ok |
#mii-tool --force=100baseTx-HD eth0
|
#mii-tool
eth0: negotiated 1000baseT-FD flow-control, link ok |
#mii-tool -F 10baseT-FD eth0
|
#mii-tool
eth0: negotiated 1000baseT-FD flow-control, link ok |
#mii-diag
bash: mii-diag: command not found |
#apt-cache search mii-diag
mii-diag - A little tool to manipulate network cards |
#apt-get install mii-diag
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libicu40 portmap Use 'apt-get autoremove' to remove them. Suggested packages: nictools-pci nictools-nopci The following NEW packages will be installed: mii-diag ... Unpacking mii-diag (from .../mii-diag_2.11-2_i386.deb) ... Processing triggers for man-db ... Setting up ed (1.3-3) ... update-alternatives: error: alternative path /bin/ed doesn't exist. dpkg: error processing ed (--configure): subprocess installed post-installation script returned error exit status 2 Setting up mii-diag (2.11-2) ... Errors were encountered while processing: ed E: Sub-process /usr/bin/dpkg returned an error code (1) |
#mii-diag
Using the default interface 'eth0'. Basic registers of MII PHY #0: 1000 796d 004d d015 0de1 c1e1 000d 2801. The autonegotiated capability is 01e0. The autonegotiated media type is 100baseTx-FD. Basic mode control register 0x1000: Auto-negotiation enabled. You have link beat, and everything is working OK. Your link partner advertised c1e1: 100baseTx-FD 100baseTx 10baseT-FD 10baseT. End of basic transceiver information. |
#find /sys -name \*02:00.0\*|grep driver
/sys/bus/pci/drivers/atl1/0000:02:00.0 |
#lspci
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2) 00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02) 01:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller 02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0) |
#find /sys -name \*02:00.0\*|grep driver
/sys/bus/pci/drivers/atl1/0000:02:00.0 |
#modinfo atl1
filename: /lib/modules/2.6.29-2-686/kernel/drivers/net/atlx/atl1.ko description: Atheros L1 Gigabit Ethernet Driver version: 2.1.3 license: GPL author: Xiong Huang <xiong.huang@atheros.com>, Chris Snook <csnook@redhat.com>, Jay Cliburn <jcliburn@gmail.com> srcversion: D6016237A6BE3B49B78E322 alias: pci:v00001969d00001048sv*sd*bc*sc*i* depends: mii vermagic: 2.6.29-2-686 SMP mod_unload modversions 686 parm: int_mod_timer:Interrupt moderator timer (array of int) parm: debug:Message level (0=none,...,16=all) (int) |
#ethtool
bash: ethtool: command not found |
#eth-tool
bash: eth-tool: command not found |
#apt-cache search eth-tool
|
#apt-cache search ethtool
ethtool - display or change Ethernet device settings ifplugd - configuration daemon for ethernet devices |
#ethtool
ethtool: bad command line argument(s) For more information run ethtool -h |
#ethtool -h
ethtool version 6git Usage: ethtool DEVNAME Display standard information about device ethtool -s|--change DEVNAME Change generic options [ speed %%d ] [ duplex half|full ] [ port tp|aui|bnc|mii|fibre ] [ autoneg on|off ] [ advertise %%x ] [ phyad %%d ] ... ethtool -p|--identify DEVNAME Show visible port identification (e.g. blinking) [ TIME-IN-SECONDS ] ethtool -t|--test DEVNAME Execute adapter self test [ online | offline ] ethtool -S|--statistics DEVNAME Show adapter statistics ethtool -n|--show-nfc DEVNAME Show Rx network flow classificationoptions [ rx-flow-hash tcp4|udp4|ah4|sctp4|tcp6|udp6|ah6|sctp6 ] ethtool -N|--config-nfc DEVNAME Configure Rx network flow classification options [ rx-flow-hash tcp4|udp4|ah4|sctp4|tcp6|udp6|ah6|sctp6 p|m|v|t|s|d|f|n|r... ] ethtool -h|--help DEVNAME Show this help |
#ethtool -h|less
|
#ethtool -i eth0
driver: atl1 version: 2.1.3 firmware-version: N/A bus-info: 0000:02:00.0 |
#ethtool -h|less
|
$ysm
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ Welcome to ysmICQ client. Version 2.9.8 ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ HAVING FUN WITH A BORING PROTOCOL ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ [ INITIALIZING YSM ][ UIN TO USE : 291670823 ] Cronica TV hora Actual : 02 Jun 2009 10:35:53 ... 10:35:56 <351758044> ???? ????? ??????? 10:35:56 <351758044> ?? BIRTHDAY Notice for slave Machka 10:35:56 [A Slave #355546249, called Machka changed his mood to: UNK(6000)] 10:35:56 [A Slave #418832597, called 418832597 changed his mood to: ONLINE] 10:35:56 [A Slave #196640895, called IvanovA changed his mood to: ONLINE] 10:35:56 [A Slave #447465725, called sab4ik86 changed his mood to: ONLINE] 10:35:56 [A Slave #382465537, called oxi10 changed his mood to: NA] ON> quit Closing session, Please wait. |
$dpkg-reconfigure console-cyrillic
bash: dpkg-reconfigure: command not found |
$exit
exit |
1
Время первой команды журнала | 16:56:33 2009- 6- 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:40:24 2009- 6- 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 21.78 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.95 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.43 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.17 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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