/l3/users/29-05-2007/nt-lnet/linux1.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 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 |
|
#ps -alx
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND 4 0 1 0 15 0 1944 652 - Ss ? 0:01 init [2] 1 0 2 1 -100 - 0 0 migrat S ? 0:00 [migration/0] 1 0 3 1 39 19 0 0 ksofti SN ? 0:00 [ksoftirqd/0] 1 0 4 1 10 -5 0 0 worker S< ? 0:01 [events/0] 1 0 5 1 10 -5 0 0 worker S< ? 0:00 [khelper] 1 0 6 1 10 -5 0 0 worker S< ? 0:00 [kthread] 1 0 9 6 12 -5 0 0 worker S< ? 0:00 [kblockd/0] 1 0 10 6 20 -5 0 0 worker S< ? 0:00 [kacpid] ... 0 0 8313 8312 25 0 4940 1812 - Ss+ pts/4 0:00 bash -i 0 1000 8361 1 15 0 11604 4784 - S ? 0:00 xterm -class UXTerm -title uxterm -u8 0 1000 8365 8361 15 0 3628 524 - Ss+ pts/6 0:00 script -f -q /home/user/.lilalo//5983244812631620316-1180450534.script 1 1000 8412 8365 15 0 3632 416 - S+ pts/6 0:00 script -f -q /home/user/.lilalo//5983244812631620316-1180450534.script 0 1000 8413 8412 16 0 6272 2916 wait Ss pts/8 0:00 bash -i 4 0 8450 8413 15 0 4576 1092 wait S+ pts/8 0:00 su - 0 0 8453 8450 15 0 3628 524 - S+ pts/8 0:00 script -f -q /root/.lilalo//1864526405612218918-1180450545.script 1 0 8490 8453 15 0 3632 416 - S+ pts/8 0:00 script -f -q /root/.lilalo//1864526405612218918-1180450545.script 0 0 8491 8490 15 0 4924 1816 wait Ss pts/11 0:00 bash -i 4 0 8528 8491 17 0 4084 828 - R+ pts/11 0:00 ps -alx |
#ps -alx | less
|
#ps -alx | grep screen
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 1 1000 3045 1 15 0 17680 6432 - Ss ? 0:01 gnome-screensaver 4 0 8279 8258 18 0 4688 1008 pause S+ pts/2 0:00 screen 0 0 8552 8491 18 0 3740 764 - R+ pts/11 0:00 grep screen |
#man wall
|
#echo "HI" > wall
|
#wall
|
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:169.254.179.216 Bcast:169.254.255.255 Mask:255.255.0.0 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 ... inet addr:192.168.19.1 Bcast:192.168.19.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:14034 errors:0 dropped:0 overruns:0 frame:0 TX packets:14034 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:593864 (579.9 KiB) TX bytes:593864 (579.9 KiB) |
#arp -a
net.nt (192.168.16.15) at 00:60:08:20:7B:0B [ether] on eth3 linux4.net.nt (192.168.16.4) at 00:01:02:B4:61:09 [ether] on eth3 linux2.net.nt (192.168.16.2) at 00:D0:B7:CD:1B:CF [ether] on eth3 host199.net.nt (192.168.16.199) at 00:D0:B7:CD:1B:CF [ether] on eth3 |
#vi /etc/host
|
#vi /etc/hosts
|
#man vim
|
#vim /etc/hosts
|
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:169.254.179.216 Bcast:169.254.255.255 Mask:255.255.0.0 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 ... inet addr:192.168.19.1 Bcast:192.168.19.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:14034 errors:0 dropped:0 overruns:0 frame:0 TX packets:14034 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:593864 (579.9 KiB) TX bytes:593864 (579.9 KiB) |
#ifconfig eth3:1 192.168.20.1
|
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:169.254.179.216 Bcast:169.254.255.255 Mask:255.255.0.0 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 ... inet addr:192.168.20.1 Bcast:192.168.20.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:14034 errors:0 dropped:0 overruns:0 frame:0 TX packets:14034 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:593864 (579.9 KiB) TX bytes:593864 (579.9 KiB) |
#whereis etterc*
etterc*: |
#whereis ettercap
ettercap: |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:169.254.179.216 Bcast:169.254.255.255 Mask:255.255.0.0 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 ... inet addr:192.168.20.1 Bcast:192.168.20.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:14034 errors:0 dropped:0 overruns:0 frame:0 TX packets:14034 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:593864 (579.9 KiB) TX bytes:593864 (579.9 KiB) |
#man ssh
|
#ping 192.168.16.2
PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data. 64 bytes from 192.168.16.2: icmp_seq=1 ttl=64 time=3.99 ms 64 bytes from 192.168.16.2: icmp_seq=2 ttl=64 time=0.371 ms --- 192.168.16.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 0.371/2.182/3.993/1.811 ms |
#route -n
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.19.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2 0.0.0.0 192.168.16.15 0.0.0.0 UG 0 0 0 eth3 [root@linux1:~]# Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.19.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2 0.0.0.0 192.168.16.15 0.0.0.0 UG 0 0 0 eth3 |
#route
192.168.19.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2 0.0.0.0 192.168.16.15 0.0.0.0 UG 0 0 0 eth3 [root@linux1:~]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.20.0 * 255.255.255.0 U 0 0 0 eth3 192.168.19.0 * 255.255.255.0 U 0 0 0 eth3 192.168.16.0 * 255.255.255.0 U 0 0 0 eth3 link-local * 255.255.0.0 U 0 0 0 eth2 default net.nt 0.0.0.0 UG 0 0 0 eth3 [root@linux1:~]# Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.20.0 * 255.255.255.0 U 0 0 0 eth3 192.168.19.0 * 255.255.255.0 U 0 0 0 eth3 192.168.16.0 * 255.255.255.0 U 0 0 0 eth3 link-local * 255.255.0.0 U 0 0 0 eth2 default net.nt 0.0.0.0 UG 0 0 0 eth3 |
#ifconfig
RX bytes:10948462 (10.4 MiB) TX bytes:5176800 (4.9 MiB) eth3:0 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 inet addr:192.168.19.1 Bcast:192.168.19.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth3:1 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 inet addr:192.168.20.1 Bcast:192.168.20.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:14034 errors:0 dropped:0 overruns:0 frame:0 TX packets:14034 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:593864 (579.9 KiB) TX bytes:593864 (579.9 KiB) |
#route
192.168.19.0 * 255.255.255.0 U 0 0 0 eth3 192.168.16.0 * 255.255.255.0 U 0 0 0 eth3 link-local * 255.255.0.0 U 0 0 0 eth2 default net.nt 0.0.0.0 UG 0 0 0 eth3 [root@linux1:~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.19.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2 0.0.0.0 192.168.16.15 0.0.0.0 UG 0 0 0 eth3 [root@linux1:~]# Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.20.0 * 255.255.255.0 U 0 0 0 eth3 192.168.19.0 * 255.255.255.0 U 0 0 0 eth3 192.168.16.0 * 255.255.255.0 U 0 0 0 eth3 link-local * 255.255.0.0 U 0 0 0 eth2 default net.nt 0.0.0.0 UG 0 0 0 eth3 |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.19.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2 0.0.0.0 192.168.16.15 0.0.0.0 UG 0 0 0 eth3 |
#man route
|
#route -nF
127.0.0.1 127.0.0.1 127.0.0.1 l 0 0 1 lo 192.168.16.1 192.168.16.15 192.168.16.15 0 1 0 eth3 192.168.16.1 192.168.16.15 192.168.16.15 0 0 14 eth3 192.168.16.1 194.150.93.78 192.168.16.15 0 0 7 eth3 192.168.16.1 192.168.16.15 192.168.16.15 0 0 14 eth3 194.150.93.78 192.168.16.1 192.168.16.1 l 0 0 29 lo 192.168.16.4 192.168.16.1 192.168.16.1 il 0 0 176 lo 192.168.16.4 192.168.16.1 192.168.16.1 il 0 0 20 lo 192.168.16.2 192.168.16.1 192.168.16.1 il 0 0 273 lo 192.168.16.2 192.168.16.1 192.168.16.1 il 0 0 18 lo 192.168.16.1 192.168.16.2 192.168.16.2 0 1 0 eth3 192.168.16.1 192.168.16.2 192.168.16.2 0 0 1 eth3 [root@linux1:~]# man route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.19.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2 0.0.0.0 192.168.16.15 0.0.0.0 UG 0 0 0 eth3 |
#route -nC
Kernel IP routing cache Source Destination Gateway Flags Metric Ref Use Iface 192.168.16.1 192.168.16.4 192.168.16.4 0 1 0 eth3 192.168.16.1 192.168.16.4 192.168.16.4 0 0 1 eth3 192.168.16.197 192.168.16.1 192.168.16.1 il 0 0 3 lo 192.168.16.197 192.168.16.1 192.168.16.1 il 0 0 252 lo 192.168.16.15 192.168.16.1 192.168.16.1 il 0 0 334 lo 192.168.16.15 192.168.16.1 192.168.16.1 il 0 0 15 lo 127.0.0.1 127.0.0.1 127.0.0.1 l 0 0 1 lo 192.168.16.1 192.168.16.197 192.168.16.197 0 1 0 eth3 ... 192.168.16.1 192.168.16.15 192.168.16.15 0 0 14 eth3 192.168.16.1 194.150.93.78 192.168.16.15 0 0 7 eth3 192.168.16.1 192.168.16.15 192.168.16.15 0 0 14 eth3 194.150.93.78 192.168.16.1 192.168.16.1 l 0 0 29 lo 192.168.16.4 192.168.16.1 192.168.16.1 il 0 0 176 lo 192.168.16.4 192.168.16.1 192.168.16.1 il 0 0 20 lo 192.168.16.2 192.168.16.1 192.168.16.1 il 0 0 273 lo 192.168.16.2 192.168.16.1 192.168.16.1 il 0 0 18 lo 192.168.16.1 192.168.16.2 192.168.16.2 0 1 0 eth3 192.168.16.1 192.168.16.2 192.168.16.2 0 0 1 eth3 |
#man route
|
#man routeifconfig
|
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:169.254.179.216 Bcast:169.254.255.255 Mask:255.255.0.0 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 ... inet addr:192.168.20.1 Bcast:192.168.20.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:14034 errors:0 dropped:0 overruns:0 frame:0 TX packets:14034 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:593864 (579.9 KiB) TX bytes:593864 (579.9 KiB) |
#ssh 192.168.16.2
[root@linux1:~]# [root@linux1:~]# [root@linux1:~]# man routeifconfig No manual entry for routeifconfig The authenticity of host '192.168.16.2 (192.168.16.2)' can't be established. RSA key fingerprint is 9e:2d:a9:2d:1c:93:bd:a9:4e:1a:2b:31:c8:fa:a4:3c. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.2' (RSA) to the list of known hosts. root@192.168.16.2's password: Last login: Tue May 29 14:59:32 2007 Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 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. l3-agent is already running: pid=2743; pidfile=/root/.lilalo/l3-agent.pid |
#tcpdump icmp -i eth
-net the target is a network. -host the target is a host. netmask NM when adding a network route, the netmask to be used. gw GW route packets via a gateway. NOTE: The specified gateway must be reachable first. This usually means that you have to set up a static route to the gateway beforehand. If you specify the address of one of your local interfaces, it will be used to decide about the interface to which the packets should be routed to. This is a BSDism compat‐ ibility hack. [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# man routeifconfig No manual entry for routeifconfig |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:169.254.179.216 Bcast:169.254.255.255 Mask:255.255.0.0 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 ... inet addr:192.168.20.1 Bcast:192.168.20.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:14034 errors:0 dropped:0 overruns:0 frame:0 TX packets:14034 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:593864 (579.9 KiB) TX bytes:593864 (579.9 KiB) |
#tcpdump -i eth3:1 icmp
gw GW route packets via a gateway. NOTE: The specified gateway must be reachable first. This usually means that you have to set up a static route to the gateway beforehand. If you specify the address of one of your local interfaces, it will be used to decide about the interface to which the packets should be routed to. This is a BSDism compat‐ ibility hack. [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# man routeifconfig No manual entry for routeifconfig tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth3:1, link-type EN10MB (Ethernet), capture size 96 bytes 0 packets captured 0 packets received by filter 0 packets dropped by kernel |
#tcpdump -i eth3:1 icmp
gw GW route packets via a gateway. NOTE: The specified gateway must be reachable first. This usually means that you have to set up a static route to the gateway beforehand. If you specify the address of one of your local interfaces, it will be used to decide about the interface to which the packets should be routed to. This is a BSDism compat‐ ibility hack. [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# [root@linux1:~]# man routeifconfig No manual entry for routeifconfig tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth3:1, link-type EN10MB (Ethernet), capture size 96 bytes 0 packets captured 0 packets received by filter 0 packets dropped by kernel |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.19.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2 0.0.0.0 192.168.16.15 0.0.0.0 UG 0 0 0 eth3 |
#ssh clint@net.nt
Connection to net.nt closed. |
#ssh 192.168.16.2
root@192.168.16.2's password: Last login: Tue May 29 15:03:32 2007 from 192.168.16.1 Linux linux2 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 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. l3-agent is already running: pid=2743; pidfile=/root/.lilalo/l3-agent.pid |
#ping 192.168.16.3
PING 192.168.16.3 (192.168.16.3) 56(84) bytes of data. --- 192.168.16.3 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1010ms |
#ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. 64 bytes from 192.168.16.4: icmp_seq=1 ttl=64 time=0.227 ms 64 bytes from 192.168.16.4: icmp_seq=2 ttl=64 time=0.152 ms --- 192.168.16.4 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 0.152/0.189/0.227/0.039 ms |
#ping 192.168.16.3
PING 192.168.16.3 (192.168.16.3) 56(84) bytes of data. --- 192.168.16.3 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#ping 192.168.16.3
PING 192.168.16.3 (192.168.16.3) 56(84) bytes of data. 64 bytes from 192.168.16.3: icmp_seq=1 ttl=64 time=0.218 ms 64 bytes from 192.168.16.3: icmp_seq=2 ttl=64 time=0.148 ms --- 192.168.16.3 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.148/0.183/0.218/0.035 ms |
#ping 192.168.16.2
PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data. 64 bytes from 192.168.16.2: icmp_seq=1 ttl=64 time=0.212 ms 64 bytes from 192.168.16.2: icmp_seq=2 ttl=64 time=0.191 ms --- 192.168.16.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1003ms rtt min/avg/max/mdev = 0.191/0.201/0.212/0.017 ms |
#ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. 64 bytes from 192.168.16.4: icmp_seq=1 ttl=64 time=0.224 ms --- 192.168.16.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.224/0.224/0.224/0.000 ms |
#ping 192.168.16.15
PING 192.168.16.15 (192.168.16.15) 56(84) bytes of data. 64 bytes from 192.168.16.15: icmp_seq=1 ttl=64 time=0.267 ms 64 bytes from 192.168.16.15: icmp_seq=2 ttl=64 time=0.214 ms --- 192.168.16.15 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.214/0.240/0.267/0.030 ms |
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#pkill -9 screen
|
#apt-get install ipcalc
[root@linux1:~]# screen -x Чтение списков пакетов... Готово Построение дерева зависимостей... Готово НОВЫЕ пакеты, которые будут установлены: ipcalc обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 26,4kБ архивов. После распаковки объем занятого дискового пространства возрастёт на 131kB. Получено:1 http://debian.org.ua etch/main ipcalc 0.41-1 [26,4kB] Получено 26,4kB за 0s (87,1kB/c) Выбор ранее не выбранного пакета ipcalc. (Чтение базы данных... на данный момент установлено 83568 файлов и каталогов.) Распаковывается пакет ipcalc (из файла .../archives/ipcalc_0.41-1_all.deb)... Настраивается пакет ipcalc (0.41-1) ... |
#dmesg
hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected Floppy drive(s): fd0 is 1.44M ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 185 PCI: Setting latency timer of device 0000:00:1d.2 to 64 uhci_hcd 0000:00:1d.2: UHCI Host Controller uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 3 uhci_hcd 0000:00:1d.2: irq 185, io base 0x0000d400 usb usb3: configuration #1 chosen from 1 choice hub 3-0:1.0: USB hub found ... audit(1180451286.463:20): dev=eth3 prom=256 old_prom=0 auid=4294967295 device eth3 left promiscuous mode audit(1180451297.916:21): dev=eth3 prom=0 old_prom=256 auid=4294967295 device eth3 entered promiscuous mode audit(1180451310.084:22): dev=eth3 prom=256 old_prom=0 auid=4294967295 device eth3 left promiscuous mode audit(1180451321.797:23): dev=eth3 prom=0 old_prom=256 auid=4294967295 e100: eth3: e100_watchdog: link down e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex wireshark uses obsolete (PF_INET,SOCK_PACKET) |
#ipcalc 192.168.19.0/25 4
Address: 192.168.19.0 11000000.10101000.00010011.0 0000000 Netmask: 255.255.255.128 = 25 11111111.11111111.11111111.1 0000000 Wildcard: 0.0.0.127 00000000.00000000.00000000.0 1111111 => Network: 192.168.19.0/25 11000000.10101000.00010011.0 0000000 HostMin: 192.168.19.1 11000000.10101000.00010011.0 0000001 HostMax: 192.168.19.126 11000000.10101000.00010011.0 1111110 Broadcast: 192.168.19.127 11000000.10101000.00010011.0 1111111 Hosts/Net: 126 Class C, Private Internet Supernet Netmask: 240.0.0.0 = 4 1111 0000.00000000.00000000.00000000 Wildcard: 15.255.255.255 0000 1111.11111111.11111111.11111111 Network: 192.0.0.0/4 1100 0000.00000000.00000000.00000000 HostMin: 192.0.0.1 1100 0000.00000000.00000000.00000001 HostMax: 207.255.255.254 1100 1111.11111111.11111111.11111110 Broadcast: 207.255.255.255 1100 1111.11111111.11111111.11111111 Hosts/Net: 268435454 Class C, In Part Private Internet |
#screen -x
|
#ipcaqlc
Examples: ipcalc 192.168.0.1/24 ipcalc 192.168.0.1/255.255.128.0 ipcalc 192.168.0.1 255.255.128.0 255.255.192.0 ipcalc 192.168.0.1 0.0.63.255 ipcalc <ADDRESS1> - <ADDRESS2> deaggregate address range ipcalc <ADDRESS>/<NETMASK> --s a b c split network to subnets where a b c fits in. ! New HTML support not yet finished. ipcalc 0.41 [root@linux1:~]# bash: ipcaqlc: command not found |
#ipcalc
Usage: ipcalc [options] <ADDRESS>[[/]<NETMASK>] [NETMASK] ipcalc takes an IP address and netmask and calculates the resulting broadcast, network, Cisco wildcard mask, and host range. By giving a second netmask, you can design sub- and supernetworks. It is also intended to be a teaching tool and presents the results as easy-to-understand binary values. -n --nocolor Don't display ANSI color codes. -b --nobinary Suppress the bitwise output. -c --class Just print bit-count-mask of given address. -h --html Display results as HTML (not finished in this version). -v --version Print Version. ... ipcalc 192.168.0.1/24 ipcalc 192.168.0.1/255.255.128.0 ipcalc 192.168.0.1 255.255.128.0 255.255.192.0 ipcalc 192.168.0.1 0.0.63.255 ipcalc <ADDRESS1> - <ADDRESS2> deaggregate address range ipcalc <ADDRESS>/<NETMASK> --s a b c split network to subnets where a b c fits in. ! New HTML support not yet finished. ipcalc 0.41 |
#ipcalc 192.168.19.0/25 /27
Hosts/Net: 30 Class C, Private Internet 3. Network: 192.168.19.64/27 11000000.10101000.00010011.010 00000 HostMin: 192.168.19.65 11000000.10101000.00010011.010 00001 HostMax: 192.168.19.94 11000000.10101000.00010011.010 11110 Broadcast: 192.168.19.95 11000000.10101000.00010011.010 11111 Hosts/Net: 30 Class C, Private Internet 4. Network: 192.168.19.96/27 11000000.10101000.00010011.011 00000 HostMin: 192.168.19.97 11000000.10101000.00010011.011 00001 HostMax: 192.168.19.126 11000000.10101000.00010011.011 11110 Broadcast: 192.168.19.127 11000000.10101000.00010011.011 11111 Hosts/Net: 30 Class C, Private Internet Subnets: 4 Hosts: 120 |
#ipcalc
Usage: ipcalc [options] <ADDRESS>[[/]<NETMASK>] [NETMASK] ipcalc takes an IP address and netmask and calculates the resulting broadcast, network, Cisco wildcard mask, and host range. By giving a second netmask, you can design sub- and supernetworks. It is also intended to be a teaching tool and presents the results as easy-to-understand binary values. -n --nocolor Don't display ANSI color codes. -b --nobinary Suppress the bitwise output. -c --class Just print bit-count-mask of given address. -h --html Display results as HTML (not finished in this version). -v --version Print Version. ... ipcalc 192.168.0.1/24 ipcalc 192.168.0.1/255.255.128.0 ipcalc 192.168.0.1 255.255.128.0 255.255.192.0 ipcalc 192.168.0.1 0.0.63.255 ipcalc <ADDRESS1> - <ADDRESS2> deaggregate address range ipcalc <ADDRESS>/<NETMASK> --s a b c split network to subnets where a b c fits in. ! New HTML support not yet finished. ipcalc 0.41 |
#ps -alx
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND 4 0 1 0 15 0 1944 652 - Ss ? 0:01 init [2] 1 0 2 1 -100 - 0 0 migrat S ? 0:00 [migration/0] 1 0 3 1 37 19 0 0 ksofti SN ? 0:00 [ksoftirqd/0] 1 0 4 1 10 -5 0 0 worker S< ? 0:01 [events/0] 1 0 5 1 10 -5 0 0 worker S< ? 0:00 [khelper] 1 0 6 1 10 -5 0 0 worker S< ? 0:00 [kthread] 1 0 9 6 10 -5 0 0 worker S< ? 0:00 [kblockd/0] 1 0 10 6 20 -5 0 0 worker S< ? 0:00 [kacpid] ... 0 1000 8413 8412 16 0 6272 2916 wait Ss pts/8 0:00 bash -i 4 0 8450 8413 15 0 4576 1092 wait S+ pts/8 0:00 su - 0 0 8453 8450 15 0 3628 524 - S+ pts/8 0:00 script -f -q /root/.lilalo//186452 1 0 8490 8453 15 0 3632 416 - S+ pts/8 0:00 script -f -q /root/.lilalo//186452 0 0 8491 8490 18 0 4932 1864 - Ss+ pts/11 0:00 bash -i 4 0 8893 2719 15 0 7884 2404 429496 Ss ? 0:00 sshd: root@pts/12 4 0 8910 8893 15 0 3624 516 - Ss+ pts/12 0:00 script -f -q /root/.lilalo//193421 1 0 8947 8910 15 0 3628 412 - S+ pts/12 0:00 script -f -q /root/.lilalo//193421 0 0 8948 8947 18 0 4960 1888 - Ss+ pts/13 0:00 bash -i 4 0 11475 8258 17 0 4084 832 - R+ pts/2 0:00 ps -alx |
#ipcalc 172.16.1.0/24 /27
Address: 172.16.1.0 10101100.00010000.00000001. 00000000 Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000 Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111 => Network: 172.16.1.0/24 10101100.00010000.00000001. 00000000 HostMin: 172.16.1.1 10101100.00010000.00000001. 00000001 HostMax: 172.16.1.254 10101100.00010000.00000001. 11111110 Broadcast: 172.16.1.255 10101100.00010000.00000001. 11111111 Hosts/Net: 254 Class B, Private Internet Subnets after transition from /24 to /27 ... Broadcast: 172.16.1.223 10101100.00010000.00000001.110 11111 Hosts/Net: 30 Class B, Private Internet 8. Network: 172.16.1.224/27 10101100.00010000.00000001.111 00000 HostMin: 172.16.1.225 10101100.00010000.00000001.111 00001 HostMax: 172.16.1.254 10101100.00010000.00000001.111 11110 Broadcast: 172.16.1.255 10101100.00010000.00000001.111 11111 Hosts/Net: 30 Class B, Private Internet Subnets: 8 Hosts: 240 |
#ipcalc 172.16.1.0/31
INVALID MASK1: 3124 Address: 172.16.1.0 10101100.00010000.00000001. 00000000 Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000 Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111 => Network: 172.16.1.0/24 10101100.00010000.00000001. 00000000 HostMin: 172.16.1.1 10101100.00010000.00000001. 00000001 HostMax: 172.16.1.254 10101100.00010000.00000001. 11111110 Broadcast: 172.16.1.255 10101100.00010000.00000001. 11111111 Hosts/Net: 254 Class B, Private Internet ... Broadcast: 172.16.1.223 10101100.00010000.00000001.110 11111 Hosts/Net: 30 Class B, Private Internet 8. Network: 172.16.1.224/27 10101100.00010000.00000001.111 00000 HostMin: 172.16.1.225 10101100.00010000.00000001.111 00001 HostMax: 172.16.1.254 10101100.00010000.00000001.111 11110 Broadcast: 172.16.1.255 10101100.00010000.00000001.111 11111 Hosts/Net: 30 Class B, Private Internet Subnets: 8 Hosts: 240 |
#ipcalc 172.16.1.0/31 /32
Address: 172.16.1.0 10101100.00010000.00000001.0000000 0 Netmask: 255.255.255.254 = 31 11111111.11111111.11111111.1111111 0 Wildcard: 0.0.0.1 00000000.00000000.00000000.0000000 1 => Network: 172.16.1.0/31 10101100.00010000.00000001.0000000 0 HostMin: 172.16.1.0 10101100.00010000.00000001.0000000 0 HostMax: 172.16.1.1 10101100.00010000.00000001.0000000 1 Hosts/Net: 2 Class B, Private Internet, PtP Link RFC 3021 Subnets after transition from /31 to /32 Netmask: 255.255.255.255 = 32 11111111.11111111.11111111.11111111 Wildcard: 0.0.0.0 00000000.00000000.00000000.00000000 1. Hostroute: 172.16.1.0 10101100.00010000.00000001.00000000 Hosts/Net: 1 Class B, Private Internet 2. Hostroute: 172.16.1.1 10101100.00010000.00000001.00000001 Hosts/Net: 1 Class B, Private Internet Hosts: 2 |
#ipcalc 172.16.1.0/30 /32
INVALID MASK2: /321 Address: 172.16.1.0 10101100.00010000.00000001.000000 00 Netmask: 255.255.255.252 = 30 11111111.11111111.11111111.111111 00 Wildcard: 0.0.0.3 00000000.00000000.00000000.000000 11 => Network: 172.16.1.0/30 10101100.00010000.00000001.000000 00 HostMin: 172.16.1.1 10101100.00010000.00000001.000000 01 HostMax: 172.16.1.2 10101100.00010000.00000001.000000 10 Broadcast: 172.16.1.3 10101100.00010000.00000001.000000 11 Hosts/Net: 2 Class B, Private Internet Supernet Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000 Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111 Network: 172.16.1.0/24 10101100.00010000.00000001. 00000000 HostMin: 172.16.1.1 10101100.00010000.00000001. 00000001 HostMax: 172.16.1.254 10101100.00010000.00000001. 11111110 Broadcast: 172.16.1.255 10101100.00010000.00000001. 11111111 Hosts/Net: 254 Class B, Private Internet |
#top
top - 19:05:05 up 3:03, 5 users, load average: 0.13, 0.13, 0.17 Tasks: 111 total, 1 running, 110 sleeping, 0 stopped, 0 zombie Cpu(s): 74.1%us, 0.3%sy, 0.0%ni, 25.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 1028536k total, 489044k used, 539492k free, 34388k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1951888k total, 0k used, 1951888k free, 273416k cached 4619 root 22 0 10452 6612 1416 S 73.9 0.6 17:39.29 l3-agent 3053 user 15 0 9620 4432 2388 S 0.3 0.4 0:05.34 xterm 11519 root 15 0 2232 1160 860 R 0.3 0.1 0:00.10 top 1 root 15 0 1944 652 556 S 0.0 0.1 0:01.54 init ... 1823 root 10 -5 0 0 0 S 0.0 0.0 0:00.04 kjournald 2112 daemon 15 0 1684 372 280 S 0.0 0.0 0:00.00 portmap 2383 root 18 0 1624 612 508 S 0.0 0.1 0:00.06 syslogd 2393 root 18 0 1576 388 316 S 0.0 0.0 0:00.02 klogd 2415 root 23 0 4888 912 672 S 0.0 0.1 0:00.00 hpiod 2418 hplip 15 0 9688 4884 1112 S 0.0 0.5 0:00.07 python 2508 root 18 0 1572 488 420 S 0.0 0.0 0:00.00 acpid 2531 root 18 0 4512 1856 1368 S 0.0 0.2 0:00.19 cupsd 2539 messageb 15 0 2384 960 684 S 0.0 0.1 0:00.15 dbus-daemon 2547 haldaemo 18 0 5852 4300 1692 S 0.0 0.4 0:02.96 hald |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:169.254.179.216 Bcast:169.254.255.255 Mask:255.255.0.0 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 ... inet addr:192.168.20.1 Bcast:192.168.20.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:14045 errors:0 dropped:0 overruns:0 frame:0 TX packets:14045 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:595656 (581.6 KiB) TX bytes:595656 (581.6 KiB) |
#ifconfig
~ inet6 addr: fe80::290:27ff:fe35:58f2/64 Scope:Link ~ UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ~ RX packets:38376 errors:0 dropped:0 overruns:0 frame:0 ~ TX packets:38149 errors:1 dropped:0 overruns:0 carrier:1 ~ collisions:0 txqueuelen:1000 17,10 All ... inet addr:192.168.20.1 Bcast:192.168.20.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:14045 errors:0 dropped:0 overruns:0 frame:0 TX packets:14045 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:595656 (581.6 KiB) TX bytes:595656 (581.6 KiB) |
#apt-get install
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. |
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#vim /etc/network/inter
|
#vim /etc/network/interfaces
15c15,22 < post-up ifconfig eth3:0 192.168.19.1 --- > post-up ifconfig eth3:0 192.168.19.1 > > iface eth2 inet static > address 192.168.19.62 > netmask 255.255.255.224 > #gateway 192.168.16.15 > broadcast 192.168.19.63 > |
#ipcalca
bash: ipcalca: command not found |
#ipcalc
Usage: ipcalc [options] <ADDRESS>[[/]<NETMASK>] [NETMASK] ipcalc takes an IP address and netmask and calculates the resulting broadcast, network, Cisco wildcard mask, and host range. By giving a second netmask, you can design sub- and supernetworks. It is also intended to be a teaching tool and presents the results as easy-to-understand binary values. -n --nocolor Don't display ANSI color codes. -b --nobinary Suppress the bitwise output. -c --class Just print bit-count-mask of given address. -h --html Display results as HTML (not finished in this version). -v --version Print Version. ... ipcalc 192.168.0.1/24 ipcalc 192.168.0.1/255.255.128.0 ipcalc 192.168.0.1 255.255.128.0 255.255.192.0 ipcalc 192.168.0.1 0.0.63.255 ipcalc <ADDRESS1> - <ADDRESS2> deaggregate address range ipcalc <ADDRESS>/<NETMASK> --s a b c split network to subnets where a b c fits in. ! New HTML support not yet finished. ipcalc 0.41 |
#ifconfig eth2 down
|
#ifconfig eth2 192.168.19.62 netmask 255.255.255.224
|
#ifconfig eth2 up
|
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:192.168.19.62 Bcast:192.168.19.63 Mask:255.255.255.224 UP BROADCAST MULTICAST MTU:1500 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 inet addr:192.168.16.1 Bcast:192.168.16.255 Mask:255.255.255.0 ... inet addr:192.168.20.1 Bcast:192.168.20.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:14045 errors:0 dropped:0 overruns:0 frame:0 TX packets:14045 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:595656 (581.6 KiB) TX bytes:595656 (581.6 KiB) |
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: negotiated 100baseTx-FD flow-control, link ok eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: negotiated 100baseTx-FD flow-control, link ok eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: negotiated 100baseTx-FD flow-control, link ok eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: negotiated 100baseTx-FD flow-control, link ok eth3: negotiated 100baseTx-FD flow-control, link ok |
Время первой команды журнала | 17:55:58 2007- 5-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 19:18:30 2007- 5-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 16.83 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.38 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.22 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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