/l3/users/kronas/nt-voip/linux5.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 |
|
#vim /tmp/1.txt
--- /dev/null 2013-04-08 16:29:25.430161761 +0300 +++ /tmp/1.txt 2013-04-08 14:19:12.000000000 +0300 @@ -0,0 +1 @@ +qwerty |
#ssh 192.168.15.253
The authenticity of host '192.168.15.253 (192.168.15.253)' can't be established. RSA key fingerprint is 23:4b:a2:99:88:79:fc:35:b7:62:e8:6b:0d:d0:e1:4b. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.253' (RSA) to the list of known hosts. root@192.168.15.253's password: Permission denied, please try again. root@192.168.15.253's password: Permission denied, please try again. root@192.168.15.253's password: Permission denied (publickey,password). |
#ssh 192.168.15.253 -l user
IP Address MAC Address Type Port --------------- ----------------- ------- ---- 192.168.15.1 000475-825343 dynamic 1 192.168.15.6 0007e9-0b3581 dynamic 5 ProCurve Switch 3400cl-48G(config)# sh arp IP ARP table ProCurve Switch 3400cl-48G(eth-44)# end ProCurve Switch 3400cl-48G# ProCurve Switch 3400cl-48G# ProCurve Switch 3400cl-48G# ... vlan 30 untagged 3,13 vlan 70 untagged 7,17 vlan 40 untagged 4,14 u vlan 50 untagged 5,15 vlan 60 untagged 6,16 vlan 70 untagged 7,17 u user@book:~$ user@book:~$ Write failed: Broken pipe |
#ping 192.168.15.1
PING 192.168.15.1 (192.168.15.1) 56(84) bytes of data. 64 bytes from 192.168.15.1: icmp_req=1 ttl=64 time=4.33 ms 64 bytes from 192.168.15.1: icmp_req=2 ttl=64 time=0.207 ms ^C --- 192.168.15.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.207/2.272/4.337/2.065 ms |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. 64 bytes from 192.168.15.254: icmp_req=1 ttl=64 time=2.90 ms 64 bytes from 192.168.15.254: icmp_req=2 ttl=64 time=0.541 ms 64 bytes from 192.168.15.254: icmp_req=3 ttl=64 time=38.8 ms ^C --- 192.168.15.254 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.541/14.106/38.875/17.540 ms |
#This file describes the network interfaces available on your system
|
#ssh user 192.168.15.253
ssh: Could not resolve hostname user: Name or service not known |
#ssh user 192.168.15.253
ssh: Could not resolve hostname user: Name or service not known |
#nano /etc/network/interfaces
--- /tmp/l3-saved-698.7831.26128 2013-04-08 14:47:07.000000000 +0300 +++ /etc/network/interfaces 2013-04-08 14:48:16.000000000 +0300 @@ -8,11 +8,11 @@ # The primary network interface allow-hotplug eth0 iface eth0 inet static - address 192.168.15.5 + address 192.168.50.1 netmask 255.255.255.0 - network 192.168.15.0 + network 192.168.50.0 broadcast 192.168.15.255 - gateway 192.168.15.253 + gateway 192.168.50.254 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 192.168.15.253 dns-search unix.nt |
#This file describes the network interfaces available on your system
hosts hosts.allow hosts.deny |
#This file describes the network interfaces available on your system
hosts hosts.allow hosts.deny |
#nano /etc/hosts
--- /tmp/l3-saved-698.21009.2152 2013-04-08 14:49:08.000000000 +0300 +++ /etc/hosts 2013-04-08 14:49:16.000000000 +0300 @@ -1,5 +1,5 @@ 127.0.0.1 localhost -192.168.15.5 linux5.unix.nt linux5 +192.168.50.1 linux5.unix.nt linux5 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback |
#127.0.0.1 localhost
PING 192.168.50.254 (192.168.50.254) 56(84) bytes of data. From 192.168.15.5 icmp_seq=3 Destination Host Unreachable From 192.168.15.5 icmp_seq=4 Destination Host Unreachable From 192.168.15.5 icmp_seq=5 Destination Host Unreachable From 192.168.15.5 icmp_seq=6 Destination Host Unreachable From 192.168.15.5 icmp_seq=7 Destination Host Unreachable From 192.168.15.5 icmp_seq=9 Destination Host Unreachable From 192.168.15.5 icmp_seq=10 Destination Host Unreachable From 192.168.15.5 icmp_seq=11 Destination Host Unreachable From 192.168.15.5 icmp_seq=12 Destination Host Unreachable From 192.168.15.5 icmp_seq=13 Destination Host Unreachable ^C --- 192.168.50.254 ping statistics --- 14 packets transmitted, 0 received, +10 errors, 100% packet loss, time 13048ms pipe 3 |
#127.0.0.1 localhost
PING 192.168.50.254 (192.168.50.254) 56(84) bytes of data. From 192.168.15.5 icmp_seq=3 Destination Host Unreachable From 192.168.15.5 icmp_seq=4 Destination Host Unreachable From 192.168.15.5 icmp_seq=5 Destination Host Unreachable From 192.168.15.5 icmp_seq=6 Destination Host Unreachable From 192.168.15.5 icmp_seq=7 Destination Host Unreachable From 192.168.15.5 icmp_seq=9 Destination Host Unreachable From 192.168.15.5 icmp_seq=10 Destination Host Unreachable From 192.168.15.5 icmp_seq=11 Destination Host Unreachable From 192.168.15.5 icmp_seq=12 Destination Host Unreachable From 192.168.15.5 icmp_seq=13 Destination Host Unreachable ^C --- 192.168.50.254 ping statistics --- 14 packets transmitted, 0 received, +10 errors, 100% packet loss, time 13048ms pipe 3 |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:7e:b9:4f inet addr:192.168.50.1 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fe7e:b94f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:625701 errors:0 dropped:0 overruns:0 frame:0 TX packets:81274 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:763242937 (727.8 MiB) TX bytes:6005389 (5.7 MiB) Interrupt:19 Memory:f0180000-f01a0000 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:31 errors:0 dropped:0 overruns:0 frame:0 TX packets:31 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2920 (2.8 KiB) TX bytes:2920 (2.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:7e:b9:4f inet addr:192.168.50.1 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fe7e:b94f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:625701 errors:0 dropped:0 overruns:0 frame:0 TX packets:81274 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:763242937 (727.8 MiB) TX bytes:6005389 (5.7 MiB) Interrupt:19 Memory:f0180000-f01a0000 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:31 errors:0 dropped:0 overruns:0 frame:0 TX packets:31 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2920 (2.8 KiB) TX bytes:2920 (2.8 KiB) |
#ping 192.168.50.254
PING 192.168.50.254 (192.168.50.254) 56(84) bytes of data. 64 bytes from 192.168.50.254: icmp_req=1 ttl=64 time=0.691 ms 64 bytes from 192.168.50.254: icmp_req=2 ttl=64 time=0.559 ms ^C --- 192.168.50.254 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.559/0.625/0.691/0.066 ms |
#ping 192.168.50.254
PING 192.168.50.254 (192.168.50.254) 56(84) bytes of data. 64 bytes from 192.168.50.254: icmp_req=1 ttl=64 time=0.691 ms 64 bytes from 192.168.50.254: icmp_req=2 ttl=64 time=0.559 ms ^C --- 192.168.50.254 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.559/0.625/0.691/0.066 ms |
#ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0f:fe:7e:b9:4f brd ff:ff:ff:ff:ff:ff inet 192.168.50.1/24 brd 192.168.15.255 scope global eth0 inet6 fe80::20f:feff:fe7e:b94f/64 scope link valid_lft forever preferred_lft forever 3: pan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN link/ether f2:a0:60:44:fa:45 brd ff:ff:ff:ff:ff:ff |
#ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0f:fe:7e:b9:4f brd ff:ff:ff:ff:ff:ff inet 192.168.50.1/24 brd 192.168.15.255 scope global eth0 inet6 fe80::20f:feff:fe7e:b94f/64 scope link valid_lft forever preferred_lft forever 3: pan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN link/ether f2:a0:60:44:fa:45 brd ff:ff:ff:ff:ff:ff |
#ping 192.168.50.254
PING 192.168.50.254 (192.168.50.254) 56(84) bytes of data. 64 bytes from 192.168.50.254: icmp_req=1 ttl=64 time=0.567 ms 64 bytes from 192.168.50.254: icmp_req=2 ttl=64 time=0.571 ms ^C --- 192.168.50.254 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.567/0.569/0.571/0.002 ms |
#ping 192.168.50.254
PING 192.168.50.254 (192.168.50.254) 56(84) bytes of data. 64 bytes from 192.168.50.254: icmp_req=1 ttl=64 time=0.567 ms 64 bytes from 192.168.50.254: icmp_req=2 ttl=64 time=0.571 ms ^C --- 192.168.50.254 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.567/0.569/0.571/0.002 ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. ^C --- 192.168.20.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1006ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. ^C --- 192.168.20.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1006ms |
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data. 64 bytes from 192.168.30.1: icmp_req=1 ttl=63 time=4.97 ms 64 bytes from 192.168.30.1: icmp_req=2 ttl=63 time=0.237 ms ^C --- 192.168.30.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.237/2.603/4.970/2.367 ms |
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data. 64 bytes from 192.168.30.1: icmp_req=1 ttl=63 time=4.97 ms 64 bytes from 192.168.30.1: icmp_req=2 ttl=63 time=0.237 ms ^C --- 192.168.30.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.237/2.603/4.970/2.367 ms |
#ping 192.168.40.1
PING 192.168.40.1 (192.168.40.1) 56(84) bytes of data. ^C --- 192.168.40.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#ping 192.168.40.1
PING 192.168.40.1 (192.168.40.1) 56(84) bytes of data. ^C --- 192.168.40.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#ping 192.168.60.1
PING 192.168.60.1 (192.168.60.1) 56(84) bytes of data. 64 bytes from 192.168.60.1: icmp_req=1 ttl=63 time=0.177 ms 64 bytes from 192.168.60.1: icmp_req=2 ttl=63 time=0.164 ms ^C --- 192.168.60.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.164/0.170/0.177/0.014 ms |
#ping 192.168.60.1
PING 192.168.60.1 (192.168.60.1) 56(84) bytes of data. 64 bytes from 192.168.60.1: icmp_req=1 ttl=63 time=0.177 ms 64 bytes from 192.168.60.1: icmp_req=2 ttl=63 time=0.164 ms ^C --- 192.168.60.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.164/0.170/0.177/0.014 ms |
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. 64 bytes from 192.168.10.1: icmp_req=1 ttl=63 time=0.268 ms 64 bytes from 192.168.10.1: icmp_req=2 ttl=63 time=0.207 ms ^C --- 192.168.10.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.207/0.237/0.268/0.034 ms |
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. 64 bytes from 192.168.10.1: icmp_req=1 ttl=63 time=0.268 ms 64 bytes from 192.168.10.1: icmp_req=2 ttl=63 time=0.207 ms ^C --- 192.168.10.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.207/0.237/0.268/0.034 ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. From 192.168.50.254 icmp_seq=1 Destination Host Unreachable ^C --- 192.168.20.1 ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. From 192.168.50.254 icmp_seq=1 Destination Host Unreachable ^C --- 192.168.20.1 ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms |
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data. 64 bytes from 192.168.30.1: icmp_req=1 ttl=63 time=0.238 ms ^C --- 192.168.30.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.238/0.238/0.238/0.000 ms |
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data. 64 bytes from 192.168.30.1: icmp_req=1 ttl=63 time=0.238 ms ^C --- 192.168.30.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.238/0.238/0.238/0.000 ms |
#ping 192.168.40.1
PING 192.168.40.1 (192.168.40.1) 56(84) bytes of data. ^C --- 192.168.40.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1006ms |
#ping 192.168.40.1
PING 192.168.40.1 (192.168.40.1) 56(84) bytes of data. ^C --- 192.168.40.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1006ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. ^C --- 192.168.20.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. ^C --- 192.168.20.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#apt-get install ssh
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: openssh-server Suggested packages: ssh-askpass rssh molly-guard ufw The following NEW packages will be installed: openssh-server ssh 0 upgraded, 2 newly installed, 0 to remove and 10 not upgraded. ... (Reading database ... 110663 files and directories currently installed.) Unpacking openssh-server (from .../openssh-server_1%3a5.5p1-6+squeeze3_i386.deb) ... Selecting previously deselected package ssh. Unpacking ssh (from .../ssh_1%3a5.5p1-6+squeeze3_all.deb) ... Processing triggers for man-db ... Setting up openssh-server (1:5.5p1-6+squeeze3) ... Creating SSH2 RSA key; this may take some time ... Creating SSH2 DSA key; this may take some time ... Restarting OpenBSD Secure Shell server: sshd. Setting up ssh (1:5.5p1-6+squeeze3) ... |
#apt-get install ssh
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: openssh-server Suggested packages: ssh-askpass rssh molly-guard ufw The following NEW packages will be installed: openssh-server ssh 0 upgraded, 2 newly installed, 0 to remove and 10 not upgraded. ... (Reading database ... 110663 files and directories currently installed.) Unpacking openssh-server (from .../openssh-server_1%3a5.5p1-6+squeeze3_i386.deb) ... Selecting previously deselected package ssh. Unpacking ssh (from .../ssh_1%3a5.5p1-6+squeeze3_all.deb) ... Processing triggers for man-db ... Setting up openssh-server (1:5.5p1-6+squeeze3) ... Creating SSH2 RSA key; this may take some time ... Creating SSH2 DSA key; this may take some time ... Restarting OpenBSD Secure Shell server: sshd. Setting up ssh (1:5.5p1-6+squeeze3) ... |
#apt-get install bash-completion
Reading package lists... Done Building dependency tree Reading state information... Done bash-completion is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. |
#apt-get install bash-completion
Reading package lists... Done Building dependency tree Reading state information... Done bash-completion is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. |
#apt-get install bash-completion
Reading package lists... Done Building dependency tree Reading state information... Done bash-completion is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. |
#apt-get install bash-completion
Reading package lists... Done Building dependency tree Reading state information... Done bash-completion is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. |
#passwd
Enter new UNIX password: Retype new UNIX password: passwd: Authentication token manipulation error passwd: password unchanged |
#passwd
Enter new UNIX password: Retype new UNIX password: passwd: Authentication token manipulation error passwd: password unchanged |
#passwd
.aptitude/ .bash_profile install .lilalo/ .ssh/ .bash_history .bashrc .l3rc .profile .viminfo |
#passwd
.aptitude/ .bash_profile install .lilalo/ .ssh/ .bash_history .bashrc .l3rc .profile .viminfo |
#nano /etc/network/interfaces
--- /tmp/l3-saved-698.31219.28458 2013-04-08 15:07:06.000000000 +0300 +++ /etc/network/interfaces 2013-04-08 15:10:12.000000000 +0300 @@ -11,7 +11,7 @@ address 192.168.50.1 netmask 255.255.255.0 network 192.168.50.0 - broadcast 192.168.15.255 + broadcast 192.168.50.255 gateway 192.168.50.254 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 192.168.15.253 |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:7e:b9:4f inet addr:192.168.50.1 Bcast:192.168.50.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fe7e:b94f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:628623 errors:0 dropped:0 overruns:0 frame:0 TX packets:83807 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:765579522 (730.1 MiB) TX bytes:6255851 (5.9 MiB) Interrupt:19 Memory:f0180000-f01a0000 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:32 errors:0 dropped:0 overruns:0 frame:0 TX packets:32 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2999 (2.9 KiB) TX bytes:2999 (2.9 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:7e:b9:4f inet addr:192.168.50.1 Bcast:192.168.50.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fe7e:b94f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:628623 errors:0 dropped:0 overruns:0 frame:0 TX packets:83807 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:765579522 (730.1 MiB) TX bytes:6255851 (5.9 MiB) Interrupt:19 Memory:f0180000-f01a0000 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:32 errors:0 dropped:0 overruns:0 frame:0 TX packets:32 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2999 (2.9 KiB) TX bytes:2999 (2.9 KiB) |
#w
15:15:07 up 1:45, 4 users, load average: 0.00, 0.03, 0.07 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 16:29 1:14m 0.24s 0.20s -bash user tty7 :0 14:01 ? 10.01s 0.07s x-session-manag user pts/7 :0.0 14:46 0.00s 0.37s 3.28s gnome-terminal user pts/10 :0.0 14:59 8:16 0.20s 3.28s gnome-terminal |
#w
15:15:07 up 1:45, 4 users, load average: 0.00, 0.03, 0.07 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 16:29 1:14m 0.24s 0.20s -bash user tty7 :0 14:01 ? 10.01s 0.07s x-session-manag user pts/7 :0.0 14:46 0.00s 0.37s 3.28s gnome-terminal user pts/10 :0.0 14:59 8:16 0.20s 3.28s gnome-terminal |
#apt-cache search dhcp-server
isc-dhcp-server-dbg - ISC DHCP server for automatic IP address assignment (debug) isc-dhcp-server-ldap - DHCP server able to use LDAP as backend isc-dhcp-server - ISC DHCP server for automatic IP address assignment |
#apt-cache search dhcp-server
isc-dhcp-server-dbg - ISC DHCP server for automatic IP address assignment (debug) isc-dhcp-server-ldap - DHCP server able to use LDAP as backend isc-dhcp-server - ISC DHCP server for automatic IP address assignment |
#apt-get install isc-dhcp-server
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: isc-dhcp-server-ldap The following NEW packages will be installed: isc-dhcp-server 0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded. Need to get 378 kB of archives. After this operation, 889 kB of additional disk space will be used. ... Preconfiguring packages ... Selecting previously deselected package isc-dhcp-server. (Reading database ... 110683 files and directories currently installed.) Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.1.1-P1-15+squeeze8_i386.deb) ... Processing triggers for man-db ... Setting up isc-dhcp-server (4.1.1-P1-15+squeeze8) ... Generating /etc/default/isc-dhcp-server... Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed! failed! invoke-rc.d: initscript isc-dhcp-server, action "start" failed. |
#apt-get install isc-dhcp-server
Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: isc-dhcp-server-ldap The following NEW packages will be installed: isc-dhcp-server 0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded. Need to get 378 kB of archives. After this operation, 889 kB of additional disk space will be used. ... Preconfiguring packages ... Selecting previously deselected package isc-dhcp-server. (Reading database ... 110683 files and directories currently installed.) Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.1.1-P1-15+squeeze8_i386.deb) ... Processing triggers for man-db ... Setting up isc-dhcp-server (4.1.1-P1-15+squeeze8) ... Generating /etc/default/isc-dhcp-server... Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed! failed! invoke-rc.d: initscript isc-dhcp-server, action "start" failed. |
#w
15:26:51 up 1:57, 4 users, load average: 0.36, 0.23, 0.13 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 16:29 1:25m 0.24s 0.20s -bash user tty7 :0 14:01 ? 11.75s 0.07s x-session-manag user pts/7 :0.0 14:46 0.00s 0.43s 4.78s gnome-terminal user pts/10 :0.0 14:59 1:08 0.24s 4.78s gnome-terminal |
#w
15:26:51 up 1:57, 4 users, load average: 0.36, 0.23, 0.13 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 16:29 1:25m 0.24s 0.20s -bash user tty7 :0 14:01 ? 11.75s 0.07s x-session-manag user pts/7 :0.0 14:46 0.00s 0.43s 4.78s gnome-terminal user pts/10 :0.0 14:59 1:08 0.24s 4.78s gnome-terminal |
#ps -A
PID TTY TIME CMD 1 ? 00:00:00 init 2 ? 00:00:00 kthreadd 3 ? 00:00:00 ksoftirqd/0 5 ? 00:00:00 kworker/u:0 6 ? 00:00:00 migration/0 7 ? 00:00:00 watchdog/0 8 ? 00:00:00 migration/1 10 ? 00:00:00 ksoftirqd/1 12 ? 00:00:00 watchdog/1 ... 31795 ? 00:00:00 gvfsd-burn 31810 ? 00:00:20 xulrunner-stub 32168 ? 00:00:00 kworker/1:0 32461 ? 00:00:04 gnome-terminal 32462 ? 00:00:00 gnome-pty-helpe 32499 ? 00:04:56 l3-agent 32638 ? 00:00:00 screen 32639 pts/3 00:00:00 script 32670 pts/3 00:00:00 script 32671 pts/4 00:00:00 bash |
#ps -A
PID TTY TIME CMD 1 ? 00:00:00 init 2 ? 00:00:00 kthreadd 3 ? 00:00:00 ksoftirqd/0 5 ? 00:00:00 kworker/u:0 6 ? 00:00:00 migration/0 7 ? 00:00:00 watchdog/0 8 ? 00:00:00 migration/1 10 ? 00:00:00 ksoftirqd/1 12 ? 00:00:00 watchdog/1 ... 31795 ? 00:00:00 gvfsd-burn 31810 ? 00:00:20 xulrunner-stub 32168 ? 00:00:00 kworker/1:0 32461 ? 00:00:04 gnome-terminal 32462 ? 00:00:00 gnome-pty-helpe 32499 ? 00:04:56 l3-agent 32638 ? 00:00:00 screen 32639 pts/3 00:00:00 script 32670 pts/3 00:00:00 script 32671 pts/4 00:00:00 bash |
qwerty
Время первой команды журнала | 13:15:45 2013- 4- 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:26:55 2013- 4- 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 23.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.19 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.41 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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