/l3/users/29-05-2007/nt-lnet/linux4.net.nt/user :1 :2 :3 |
|
#vim /etc/network/interfaces
|
#vim /etc/re
|
#vim /etc/re
|
#vim /etc/resolf.conf
|
#vim /etc/resolf.conf
|
#vim /etc/resolf.conv
|
#vim /etc/resolv.conf
|
#ping mail.ru
|
#vim /etc/network/interfaces
|
#rote -n
bash: rote: command not found |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0 |
#/etc/init.d/networking resrat
Usage: /etc/init.d/networking {start|stop|restart|force-reload} |
#/etc/init.d/networking restart
Reconfiguring network interfaces...SIOCDELRT: No such process done. |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.16.15 0.0.0.0 UG 0 0 0 eth0 |
#ping mail.ru
PING mail.ru (194.67.57.126) 56(84) bytes of data. 64 bytes from mail.ru (194.67.57.126): icmp_seq=1 ttl=112 time=238 ms 64 bytes from mail.ru (194.67.57.126): icmp_seq=2 ttl=112 time=176 ms --- mail.ru ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1004ms rtt min/avg/max/mdev = 176.456/207.591/238.727/31.138 ms |
#iptables -L --line-numbers
Chain INPUT (policy ACCEPT) num target prot opt source destination 1 ACCEPT tcp -- anywhere anywhere tcp dpt:www 2 ACCEPT tcp -- anywhere anywhere tcp dpt:ssh 3 DROP tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN Chain FORWARD (policy ACCEPT) num target prot opt source destination Chain OUTPUT (policy ACCEPT) num target prot opt source destination |
#192.168.16.3 nmap 192.168.16.4
bash: 192.168.16.3: command not found |
#vim /etc/network/interfaces
|
#/etc/init.d/networking restart
Reconfiguring network interfaces...SIOCDELRT: No such process done. |
#ping 172.21.1.1
PING 172.21.1.1 (172.21.1.1) 56(84) bytes of data. 64 bytes from 172.21.1.1: icmp_seq=1 ttl=64 time=0.211 ms 64 bytes from 172.21.1.1: icmp_seq=2 ttl=64 time=0.191 ms --- 172.21.1.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1003ms rtt min/avg/max/mdev = 0.191/0.201/0.211/0.010 ms |
#ping 172.21.1.1
PING 172.21.1.1 (172.21.1.1) 56(84) bytes of data. 64 bytes from 172.21.1.1: icmp_seq=1 ttl=64 time=0.189 ms 64 bytes from 172.21.1.1: icmp_seq=2 ttl=64 time=0.185 ms 64 bytes from 172.21.1.1: icmp_seq=3 ttl=64 time=0.186 ms 64 bytes from 172.21.1.1: icmp_seq=4 ttl=64 time=0.185 ms 64 bytes from 172.21.1.1: icmp_seq=5 ttl=64 time=0.187 ms --- 172.21.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4004ms rtt min/avg/max/mdev = 0.185/0.186/0.189/0.012 ms |
#ping 172.21.1.1
PING 172.21.1.1 (172.21.1.1) 56(84) bytes of data. 64 bytes from 172.21.1.1: icmp_seq=1 ttl=64 time=0.183 ms 64 bytes from 172.21.1.1: icmp_seq=2 ttl=64 time=0.191 ms 64 bytes from 172.21.1.1: icmp_seq=3 ttl=64 time=0.192 ms 64 bytes from 172.21.1.1: icmp_seq=4 ttl=64 time=0.181 ms 64 bytes from 172.21.1.1: icmp_seq=5 ttl=64 time=0.190 ms --- 172.21.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4002ms rtt min/avg/max/mdev = 0.181/0.187/0.192/0.013 ms |
#vim /etc/network/interfaces
|
#ping 172.21.1.1
PING 172.21.1.1 (172.21.1.1) 56(84) bytes of data. --- 172.21.1.1 ping statistics --- 8 packets transmitted, 0 received, 100% packet loss, time 7010ms |
#ping 172.21.1.2
PING 172.21.1.2 (172.21.1.2) 56(84) bytes of data. --- 172.21.1.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1009ms |
#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=5.00 ms 64 bytes from 192.168.16.3: icmp_seq=2 ttl=64 time=0.187 ms --- 192.168.16.3 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.187/2.594/5.001/2.407 ms |
#ping 172.21.1.1
PING 172.21.1.1 (172.21.1.1) 56(84) bytes of data. 64 bytes from 172.21.1.1: icmp_seq=1 ttl=64 time=0.213 ms 64 bytes from 172.21.1.1: icmp_seq=2 ttl=64 time=0.185 ms 64 bytes from 172.21.1.1: icmp_seq=3 ttl=64 time=0.183 ms --- 172.21.1.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.183/0.193/0.213/0.021 ms |
#ping 172.21.1.2
PING 172.21.1.2 (172.21.1.2) 56(84) bytes of data. --- 172.21.1.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1002ms |
#mii-tool
eth0: negotiated 100baseTx-FD, link ok |
#rote -n
bash: rote: command not found |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.16.3 0.0.0.0 UG 0 0 0 eth0 0.0.0.0 192.168.16.15 0.0.0.0 UG 0 0 0 eth0 |
#vim /etc/network/interfaces
|
#/etc/init.d/networking restart
Reconfiguring network interfaces...done. |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.16.3 0.0.0.0 UG 0 0 0 eth0 |
#ping 172.21.1.1
PING 172.21.1.1 (172.21.1.1) 56(84) bytes of data. 64 bytes from 172.21.1.1: icmp_seq=1 ttl=64 time=5.96 ms 64 bytes from 172.21.1.1: icmp_seq=2 ttl=64 time=0.198 ms 64 bytes from 172.21.1.1: icmp_seq=3 ttl=64 time=0.195 ms --- 172.21.1.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 0.195/2.118/5.961/2.717 ms |
#ping 172.21.1.2
PING 172.21.1.2 (172.21.1.2) 56(84) bytes of data. --- 172.21.1.2 ping statistics --- 19 packets transmitted, 0 received, 100% packet loss, time 18000ms |
#ping 172.21.1.2
PING 172.21.1.2 (172.21.1.2) 56(84) bytes of data. --- 172.21.1.2 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3009ms |
#ping 172.21.1.2
PING 172.21.1.2 (172.21.1.2) 56(84) bytes of data. --- 172.21.1.2 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2000ms |
#ping 172.21.1.1
PING 172.21.1.1 (172.21.1.1) 56(84) bytes of data. 64 bytes from 172.21.1.1: icmp_seq=1 ttl=64 time=0.206 ms 64 bytes from 172.21.1.1: icmp_seq=2 ttl=64 time=0.184 ms 64 bytes from 172.21.1.1: icmp_seq=3 ttl=64 time=0.178 ms 64 bytes from 172.21.1.1: icmp_seq=4 ttl=64 time=0.161 ms 64 bytes from 172.21.1.1: icmp_seq=5 ttl=64 time=0.184 ms 64 bytes from 172.21.1.1: icmp_seq=6 ttl=64 time=0.160 ms 64 bytes from 172.21.1.1: icmp_seq=7 ttl=64 time=0.175 ms 64 bytes from 172.21.1.1: icmp_seq=8 ttl=64 time=0.189 ms 64 bytes from 172.21.1.1: icmp_seq=9 ttl=64 time=0.175 ms ... 64 bytes from 172.21.1.1: icmp_seq=27 ttl=64 time=0.181 ms 64 bytes from 172.21.1.1: icmp_seq=28 ttl=64 time=0.183 ms 64 bytes from 172.21.1.1: icmp_seq=29 ttl=64 time=0.183 ms 64 bytes from 172.21.1.1: icmp_seq=30 ttl=64 time=0.167 ms 64 bytes from 172.21.1.1: icmp_seq=31 ttl=64 time=0.223 ms 64 bytes from 172.21.1.1: icmp_seq=32 ttl=64 time=0.185 ms 64 bytes from 172.21.1.1: icmp_seq=33 ttl=64 time=0.183 ms --- 172.21.1.1 ping statistics --- 33 packets transmitted, 33 received, 0% packet loss, time 32005ms rtt min/avg/max/mdev = 0.155/0.187/0.241/0.019 ms |
#ping 172.21.1.1
PING 172.21.1.1 (172.21.1.1) 56(84) bytes of data. 64 bytes from 172.21.1.1: icmp_seq=1 ttl=64 time=0.198 ms 64 bytes from 172.21.1.1: icmp_seq=2 ttl=64 time=0.184 ms 64 bytes from 172.21.1.1: icmp_seq=3 ttl=64 time=0.191 ms 64 bytes from 172.21.1.1: icmp_seq=4 ttl=64 time=0.180 ms 64 bytes from 172.21.1.1: icmp_seq=5 ttl=64 time=0.185 ms --- 172.21.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4013ms rtt min/avg/max/mdev = 0.180/0.187/0.198/0.016 ms |
#ping 172.21.1.2
PING 172.21.1.2 (172.21.1.2) 56(84) bytes of data. --- 172.21.1.2 ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5009ms |
#traceroute -n
Version 1.4a12 Usage: traceroute [-dFIlnrvx] [-g gateway] [-i iface] [-f first_ttl] [-m max_ttl] [ -p port] [-q nqueries] [-s src_addr] [-t tos] [-w waittime] [-z pausemsecs] host [packetlen] |
#traceroute -n 192.168.16.1
traceroute to 192.168.16.1 (192.168.16.1), 30 hops max, 40 byte packets 1 * * * 2 * * |
#ping 172.21.1.2
PING 172.21.1.2 (172.21.1.2) 56(84) bytes of data. --- 172.21.1.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1002ms |
#ping 172.21.1.2
PING 172.21.1.2 (172.21.1.2) 56(84) bytes of data. 64 bytes from 172.21.1.2: icmp_seq=134 ttl=63 time=2.12 ms 64 bytes from 172.21.1.2: icmp_seq=135 ttl=63 time=0.539 ms 64 bytes from 172.21.1.2: icmp_seq=136 ttl=63 time=0.505 ms 64 bytes from 172.21.1.2: icmp_seq=137 ttl=63 time=0.529 ms 64 bytes from 172.21.1.2: icmp_seq=138 ttl=63 time=0.525 ms 64 bytes from 172.21.1.2: icmp_seq=139 ttl=63 time=0.574 ms 64 bytes from 172.21.1.2: icmp_seq=140 ttl=63 time=0.538 ms 64 bytes from 172.21.1.2: icmp_seq=141 ttl=63 time=0.610 ms 64 bytes from 172.21.1.2: icmp_seq=142 ttl=63 time=0.532 ms ... 64 bytes from 172.21.1.2: icmp_seq=261 ttl=63 time=0.503 ms 64 bytes from 172.21.1.2: icmp_seq=262 ttl=63 time=0.505 ms 64 bytes from 172.21.1.2: icmp_seq=263 ttl=63 time=0.508 ms 64 bytes from 172.21.1.2: icmp_seq=264 ttl=63 time=0.525 ms 64 bytes from 172.21.1.2: icmp_seq=265 ttl=63 time=0.502 ms 64 bytes from 172.21.1.2: icmp_seq=266 ttl=63 time=0.502 ms 64 bytes from 172.21.1.2: icmp_seq=267 ttl=63 time=0.505 ms --- 172.21.1.2 ping statistics --- 267 packets transmitted, 134 received, 49% packet loss, time 266154ms rtt min/avg/max/mdev = 0.488/0.532/2.124/0.142 ms |
#vim /etc/network/interfaces
|
$si
bles of IP packet filter rules in the Linux kernel. Several number of built-in chains and may also contain user-defined packets. Each rule specifies what to do with a packet that to a user-defined chain in the same table. arget. If the packet does not match, the next rule in the t rule is specified by the value of the target, which can be alues ACCEPT, DROP, QUEUE, or RETURN. rop the packet on the floor. QUEUE means to pass the packet a userspace process differs by the particular queue handler. e queue handler. Kernels 2.6.14 and later additionally h a target of QUEUE will be sent to queue number ’0’ in this ter in this man page.) RETURN means stop traversing this bash: si: command not found This option specifies the packet matching table which the command should operate on. If the kernel is con‐ figured with automatic module loading, an attempt will be made to load the appropriate module for that table if it is not already there. |
$su
Password: |
#ssh 192.168.16.1
|
#/etc/init.d/networking restart
Reconfiguring network interfaces...SIOCDELRT: No such process done. |
#ping mail.ru
PING mail.ru (194.67.57.26) 56(84) bytes of data. 64 bytes from mail.ru (194.67.57.26): icmp_seq=1 ttl=112 time=104 ms --- mail.ru ping statistics --- 2 packets transmitted, 1 received, 50% packet loss, time 1000ms rtt min/avg/max/mdev = 104.762/104.762/104.762/0.000 ms |
#/etc/init.d/networking restart
Reconfiguring network interfaces...done. |
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1) 56(84) bytes of data. --- 192.168.16.1 ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 4999ms |
#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=4.55 ms 64 bytes from 192.168.16.3: icmp_seq=2 ttl=64 time=0.198 ms --- 192.168.16.3 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.198/2.376/4.554/2.178 ms |
#ping 192.168.16.2
PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data. From 192.168.16.4 icmp_seq=2 Destination Host Unreachable From 192.168.16.4 icmp_seq=3 Destination Host Unreachable From 192.168.16.4 icmp_seq=4 Destination Host Unreachable --- 192.168.16.2 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5000ms , pipe 3 |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.16.15 0.0.0.0 UG 0 0 0 eth0 0.0.0.0 192.168.16.3 0.0.0.0 UG 0 0 0 eth0 |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.16.15 0.0.0.0 UG 0 0 0 eth0 |
#iptables -L --line-numbers
Chain INPUT (policy ACCEPT) num target prot opt source destination 1 ACCEPT tcp -- anywhere anywhere tcp dpt:www 2 ACCEPT tcp -- anywhere anywhere tcp dpt:ssh 3 DROP tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN Chain FORWARD (policy ACCEPT) num target prot opt source destination Chain OUTPUT (policy ACCEPT) num target prot opt source destination |
#ping 192.168.16.2
PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data. --- 192.168.16.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1001ms |
#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=4.92 ms 64 bytes from 192.168.16.15: icmp_seq=2 ttl=64 time=0.251 ms --- 192.168.16.15 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.251/2.585/4.920/2.335 ms |
#iptables -n
iptables v1.3.6: no command specified Try `iptables -h' or 'iptables --help' for more information. |
#iptablen -n --line-numbers
bash: iptablen: command not found |
#iptables -L --line-numbers
Chain INPUT (policy ACCEPT) num target prot opt source destination Chain FORWARD (policy ACCEPT) num target prot opt source destination Chain OUTPUT (policy ACCEPT) num target prot opt source destination |
#screen
|
#iptables -n --line-numbers
iptables v1.3.6: no command specified Try `iptables -h' or 'iptables --help' for more information. |
#iptables -L
Chain INPUT (policy ACCEPT) num target prot opt source destination Chain FORWARD (policy ACCEPT) num target prot opt source destination Chain OUTPUT (policy ACCEPT) num target prot opt source destination |
#iptables -L --line-numbers
Chain INPUT (policy ACCEPT) num target prot opt source destination Chain FORWARD (policy ACCEPT) num target prot opt source destination Chain OUTPUT (policy ACCEPT) num target prot opt source destination |
#ping 77.122.112.198
PING 77.122.112.198 (77.122.112.198) 56(84) bytes of data. --- 77.122.112.198 ping statistics --- 17 packets transmitted, 0 received, 100% packet loss, time 16001ms |
#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=2.84 ms 64 bytes from 192.168.16.3: icmp_seq=2 ttl=64 time=0.203 ms --- 192.168.16.3 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 0.203/1.524/2.845/1.321 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=3.88 ms 64 bytes from 192.168.16.2: icmp_seq=2 ttl=64 time=0.257 ms --- 192.168.16.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1003ms rtt min/avg/max/mdev = 0.257/2.070/3.883/1.813 ms |
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1) 56(84) bytes of data. --- 192.168.16.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1) 56(84) bytes of data. 64 bytes from 192.168.16.1: icmp_seq=13 ttl=64 time=3.33 ms 64 bytes from 192.168.16.1: icmp_seq=14 ttl=64 time=0.282 ms --- 192.168.16.1 ping statistics --- 14 packets transmitted, 2 received, 85% packet loss, time 13004ms rtt min/avg/max/mdev = 0.282/1.808/3.335/1.527 ms |
#ssh 192.168.16.1
root@192.168.16.1's password: Last login: Thu May 31 12:05:14 2007 from linux2.net.nt Linux linux1 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! LINUX1 !!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 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=3166; pidfile=/root/.lilalo/l3-agent.pid |
#ftp connect
ftp: connect: Unknown host ftp> 77.122.112.198 ?Invalid command ftp> 77.122.112.198 ?Invalid command ftp> ? Commands may be abbreviated. Commands are: ! debug mdir qc send $ dir mget sendport site account disconnect mkdir put size ... close ls prompt restart umask cr macdef passive rmdir verbose delete mdelete proxy runique ? ftp> get ? Not connected. ftp> get Not connected. ftp> get 77.122.112.198 Not connected. ftp> exit |
#pkill
pkill: No matching criteria specified Usage: pkill [-SIGNAL] [-fvx] [-n|-o] [-P PPIDLIST] [-g PGRPLIST] [-s SIDLIST] [-u EUIDLIST] [-U UIDLIST] [-G GIDLIST] [-t TERMLIST] [PATTERN] |
#pkill -signal
pkill: invalid session id: ignal |
#pkill ?
|
#pkill
pkill: No matching criteria specified Usage: pkill [-SIGNAL] [-fvx] [-n|-o] [-P PPIDLIST] [-g PGRPLIST] [-s SIDLIST] [-u EUIDLIST] [-U UIDLIST] [-G GIDLIST] [-t TERMLIST] [PATTERN] |
#pkill -t
pkill: option requires an argument -- t Usage: pkill [-SIGNAL] [-fvx] [-n|-o] [-P PPIDLIST] [-g PGRPLIST] [-s SIDLIST] [-u EUIDLIST] [-U UIDLIST] [-G GIDLIST] [-t TERMLIST] [PATTERN] |
#pkill -u
pkill: option requires an argument -- u Usage: pkill [-SIGNAL] [-fvx] [-n|-o] [-P PPIDLIST] [-g PGRPLIST] [-s SIDLIST] [-u EUIDLIST] [-U UIDLIST] [-G GIDLIST] [-t TERMLIST] [PATTERN] |
#pkill -U
pkill: option requires an argument -- U Usage: pkill [-SIGNAL] [-fvx] [-n|-o] [-P PPIDLIST] [-g PGRPLIST] [-s SIDLIST] [-u EUIDLIST] [-U UIDLIST] [-G GIDLIST] [-t TERMLIST] [PATTERN] |
#pkill --U
pkill: invalid option -- - Usage: pkill [-SIGNAL] [-fvx] [-n|-o] [-P PPIDLIST] [-g PGRPLIST] [-s SIDLIST] [-u EUIDLIST] [-U UIDLIST] [-G GIDLIST] [-t TERMLIST] [PATTERN] |
#pkill --u
pkill: invalid option -- - Usage: pkill [-SIGNAL] [-fvx] [-n|-o] [-P PPIDLIST] [-g PGRPLIST] [-s SIDLIST] [-u EUIDLIST] [-U UIDLIST] [-G GIDLIST] [-t TERMLIST] [PATTERN] |
$su]
Chain INPUT (policy ACCEPT 1123 packets, 127K bytes) pkts bytes target prot opt in out source destination ^[^[ bash: su]: command not found |
$su
Password: |
#ssh 192.168.16.1
root@192.168.16.1's password: Last login: Thu May 31 13:39:26 2007 from net.nt Linux linux1 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! LINUX1 !!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 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=3166; pidfile=/root/.lilalo/l3-agent.pid |
#apt-ger install open ssh-server
bash: apt-ger: command not found |
#screen -x
|
#exit
Connection to 192.168.16.3 closed. |
#ssh 192.168.16.3
The authenticity of host '192.168.16.3 (192.168.16.3)' can't be established. RSA key fingerprint is 32:96:02:ad:e2:cc:89:02:bd:a9:df:27:25:39:e7:43. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.3' (RSA) to the list of known hosts. root@192.168.16.3's password: Last login: Thu May 31 13:47:12 2007 from linux1.net.nt Linux linux3 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 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. ^[[Fl3-agent is already running: pid=2884; pidfile=/root/.lilalo/l3-agent.pid |
#exit
|
$su
Password: |
Время первой команды журнала | 11:23:09 2007- 5-31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:04:43 2007- 5-31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 25.74 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 10.89 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.90 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.89 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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