/l3/users/eb/2009/linux12/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 :45 :46 :47 :48 |
|
#ifup eth0.215
Ignoring unknown interface eth0.215=eth0.215. |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1e:8c:64:2c:4a inet addr:192.168.15.9 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21e:8cff:fe64:2c4a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:75777 errors:0 dropped:0 overruns:0 frame:0 TX packets:64434 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:40810690 (38.9 MiB) TX bytes:9669809 (9.2 MiB) eth0.105 Link encap:Ethernet HWaddr 00:1e:8c:64:2c:4a inet addr:192.168.105.1 Bcast:192.168.105.255 Mask:255.255.255.0 ... TX packets:6918 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:296793 (289.8 KiB) TX bytes:296793 (289.8 KiB) tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:172.16.1.5 P-t-P:172.16.1.6 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:15 errors:0 dropped:0 overruns:0 frame:0 TX packets:84 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:836 (836.0 B) TX bytes:9312 (9.0 KiB) |
#exit
exit Connection to 192.168.205.2 closed. |
#vim /etc/network/interfaces
|
#ifdown eth0.266
ifdown: interface eth0.266 not configured |
#ifup eth0.266
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config ERROR: trying to add VLAN #266 to IF -:eth0:- error: File exists 192.168.266.2: Unknown host ifconfig: `--help' gives usage information. Failed to bring up eth0.266. |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:bc:f0 inet6 addr: fe80::21b:fcff:fe7d:bcf0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:12288 errors:0 dropped:0 overruns:0 frame:0 TX packets:15643 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:2449058 (2.3 MiB) TX bytes:2404594 (2.2 MiB) eth0.106 Link encap:Ethernet HWaddr 00:1b:fc:7d:bc:f0 inet addr:192.168.106.1 Bcast:192.168.106.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fe7d:bcf0/64 Scope:Link ... TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:336 (336.0 B) TX bytes:336 (336.0 B) tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:172.16.1.6 P-t-P:172.16.1.5 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:518 errors:0 dropped:0 overruns:0 frame:0 TX packets:357 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:257239 (251.2 KiB) TX bytes:41439 (40.4 KiB) |
#vim /etc/network/interfaces
--- /tmp/l3-saved-4368.3411.31089 2009-06-03 20:29:48.000000000 +0300 +++ /etc/network/interfaces 2009-06-03 20:30:31.000000000 +0300 @@ -1,7 +1,7 @@ # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or # /usr/share/doc/ifupdown/examples for more information. -auto lo eth0 eth0.106 eth0.206 +auto lo eth0 eth0.106 eth0.206 eth0.266 iface lo inet loopback iface eth0 inet static |
#gateway 192.168.106.1
Expecting argc to be 3-5, inclusive. Was: 2 Usage: add [interface-name] [vlan_id] rem [vlan-name] set_flag [interface-name] [flag-num] [0 | 1] set_egress_map [vlan-name] [skb_priority] [vlan_qos] set_ingress_map [vlan-name] [skb_priority] [vlan_qos] set_name_type [name-type] * The [interface-name] is the name of the ethernet card that hosts the VLAN you are talking about. * The vlan_id is the identifier (0-4095) of the VLAN you are operating on. * skb_priority is the priority in the socket buffer (sk_buff). * vlan_qos is the 3 bit priority in the VLAN header * name-type: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5), DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5) * FLAGS: 1 REORDER_HDR When this is set, the VLAN device will move the ethernet header around to make it look exactly like a real ethernet device. This may help programs such as DHCPd which read the raw ethernet packet and make assumptions about the location of bytes. If you don't need it, don't turn it on, because there will be at least a small performance degradation. Default is OFF. |
#vconfig eth0.266
Expecting argc to be 3-5, inclusive. Was: 2 Usage: add [interface-name] [vlan_id] rem [vlan-name] set_flag [interface-name] [flag-num] [0 | 1] set_egress_map [vlan-name] [skb_priority] [vlan_qos] set_ingress_map [vlan-name] [skb_priority] [vlan_qos] set_name_type [name-type] * The [interface-name] is the name of the ethernet card that hosts the VLAN you are talking about. * The vlan_id is the identifier (0-4095) of the VLAN you are operating on. * skb_priority is the priority in the socket buffer (sk_buff). * vlan_qos is the 3 bit priority in the VLAN header * name-type: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5), DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5) * FLAGS: 1 REORDER_HDR When this is set, the VLAN device will move the ethernet header around to make it look exactly like a real ethernet device. This may help programs such as DHCPd which read the raw ethernet packet and make assumptions about the location of bytes. If you don't need it, don't turn it on, because there will be at least a small performance degradation. Default is OFF. |
#vconfig rem eth0.266
Removed VLAN -:eth0.266:- |
#vconfig add eth0 266
Added VLAN with VID == 266 to IF -:eth0:- |
#/etc/op
openoffice/ openvpn/ opt/ |
#/etc/openvpn/update-resolv-conf
a/ .cache/ .gconfd/ .gvfs/ .local/ .purple/ .ssh/ .xsession-errors .a/ .config/ .gksu.lock .ICEauthority .mozilla/ .qt/ .swo asd/ .dbus/ .gnome2/ .l3rc my_sc QW/ .swp .bash_history Desktop/ .gnome2_private/ .lesshst pass.log screen.dot .thumbnails/ .bash_logout .dmrc .gqview/ .licq/ password.log screen.png user .bash_profile .gajim/ .gstreamer-0.10/ .lilalo/ prim .screenrc .viminfo .bashrc .gconf/ .gtk-bookmarks linux0.key .profile sd/ .Xauthority |
#/etc/openvpn/update-resolv-conf
a/ .cache/ .gconfd/ .gvfs/ .local/ .purple/ .ssh/ .xsession-errors .a/ .config/ .gksu.lock .ICEauthority .mozilla/ .qt/ .swo asd/ .dbus/ .gnome2/ .l3rc my_sc QW/ .swp .bash_history Desktop/ .gnome2_private/ .lesshst pass.log screen.dot .thumbnails/ .bash_logout .dmrc .gqview/ .licq/ password.log screen.png user .bash_profile .gajim/ .gstreamer-0.10/ .lilalo/ prim .screenrc .viminfo .bashrc .gconf/ .gtk-bookmarks linux0.key .profile sd/ .Xauthority |
#cd /etc/open
openoffice/ openvpn/ |
#cd /etc/openvpn/
|
#ls
client.conf linux9.key update-resolv-conf |
#vim client.conf
--- /tmp/l3-saved-4368.8863.5450 2009-06-03 20:33:22.000000000 +0300 +++ client.conf 2009-06-03 20:33:47.000000000 +0300 @@ -5,4 +5,5 @@ redirect-gateway secret linux9.key remote 192.168.205.2 +remote 192.168.215.2 |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: client. Starting virtual private network daemon: client. |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.215.2 192.168.206.1 255.255.255.255 UGH 0 0 0 eth0.206 172.16.1.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.106.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.106 192.168.206.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.206 0.0.0.0 172.16.1.5 0.0.0.0 UG 0 0 0 tun0 |
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
1 +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31 2 proto tcp-client 3 redirect-gateway secret linux9.key 4 remote 192.168.205.2 5 remote 192.168.215.2 ~ ping 5 ~ ping-restart 30 ~ ... ~ ~ ~ ~ ~ ~ ~ ~ ~ -- ÐСТÐÐÐ 11,16 УÑе |
#/etc/init.d/networking restart
Reconfiguring network interfaces...Removed VLAN -:eth0.106:- SIOCDELRT: No such process Don't seem to be have all the variables for eth0/inet. Failed to bring up eth0. Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config Added VLAN with VID == 106 to IF -:eth0:- if-up.d/mountnfs[eth0.106]: waiting for interface eth0.206 before doing NFS mounts (warning). if-up.d/mountnfs[eth0.106]: waiting for interface eth0.266 before doing NFS mounts (warning). Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config ERROR: trying to add VLAN #206 to IF -:eth0:- error: File exists if-up.d/mountnfs[eth0.206]: waiting for interface eth0.266 before doing NFS mounts (warning). Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config ERROR: trying to add VLAN #266 to IF -:eth0:- error: File exists 192.168.266.2: Unknown host ifconfig: `--help' gives usage information. Failed to bring up eth0.266. done. |
#ifconfig 0-a
0-a: error fetching interface information: Device not found |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:bc:f0 inet6 addr: fe80::21b:fcff:fe7d:bcf0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13875 errors:0 dropped:0 overruns:0 frame:0 TX packets:17519 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:2660887 (2.5 MiB) TX bytes:2599954 (2.4 MiB) eth0.106 Link encap:Ethernet HWaddr 00:1b:fc:7d:bc:f0 inet addr:192.168.106.1 Bcast:192.168.106.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fe7d:bcf0/64 Scope:Link ... TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:336 (336.0 B) TX bytes:336 (336.0 B) tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:172.16.1.6 P-t-P:172.16.1.5 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:53 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:6108 (5.9 KiB) TX bytes:268 (268.0 B) |
#/etc/init.d/networking restart
Reconfiguring network interfaces...Removed VLAN -:eth0.106:- Removed VLAN -:eth0.206:- Don't seem to be have all the variables for eth0/inet. Failed to bring up eth0. Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config Added VLAN with VID == 106 to IF -:eth0:- if-up.d/mountnfs[eth0.106]: waiting for interface eth0.206 before doing NFS mounts (warning). if-up.d/mountnfs[eth0.106]: waiting for interface eth0.266 before doing NFS mounts (warning). Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config Added VLAN with VID == 206 to IF -:eth0:- if-up.d/mountnfs[eth0.206]: waiting for interface eth0.266 before doing NFS mounts (warning). Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config ERROR: trying to add VLAN #266 to IF -:eth0:- error: File exists 192.168.266.2: Unknown host ifconfig: `--help' gives usage information. Failed to bring up eth0.266. done. |
#tail -f /var/log/daemon.log
Jun 3 20:35:49 linux12 ovpn-client[6075]: TCPv4_CLIENT link local: [undef] Jun 3 20:35:49 linux12 ovpn-client[6075]: TCPv4_CLIENT link remote: 192.168.205.2:443 Jun 3 20:35:49 linux12 ovpn-client[6075]: Peer Connection Initiated with 192.168.205.2:443 Jun 3 20:35:50 linux12 ovpn-client[6075]: Initialization Sequence Completed Jun 3 20:36:12 linux12 monit[3276]: 'cron' process is not running Jun 3 20:36:12 linux12 monit[3276]: 'cron' trying to restart Jun 3 20:36:12 linux12 monit[3276]: 'cron' start: /etc/init.d/cron Jun 3 20:36:12 linux12 monit[3276]: 'cron' failed to start Jun 3 20:37:11 linux12 ntpdate[6193]: step time server 62.149.0.30 offset -0.897254 sec Jun 3 20:37:26 linux12 ntpdate[6276]: step time server 62.149.0.30 offset -0.002870 sec ^C |
#/etc/init.d/networking restart
Reconfiguring network interfaces...Removed VLAN -:eth0.106:- Removed VLAN -:eth0.206:- Don't seem to be have all the variables for eth0/inet. Failed to bring up eth0. Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config Added VLAN with VID == 106 to IF -:eth0:- if-up.d/mountnfs[eth0.106]: waiting for interface eth0.206 before doing NFS mounts (warning). if-up.d/mountnfs[eth0.106]: waiting for interface eth0.266 before doing NFS mounts (warning). Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config Added VLAN with VID == 206 to IF -:eth0:- if-up.d/mountnfs[eth0.206]: waiting for interface eth0.266 before doing NFS mounts (warning). Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config ERROR: trying to add VLAN #266 to IF -:eth0:- error: File exists 192.168.266.2: Unknown host ifconfig: `--help' gives usage information. Failed to bring up eth0.266. done. |
#ls /var/log/
apache2 bootstrap.log debug dmesg.2.gz exim4 gdm lp-errs mail.log pycentral.log Xorg.0.log Xorg.2.log apt btmp dmesg dmesg.3.gz faillog kern.log lpr.log mail.warn syslog Xorg.0.log.old Xorg.2.log.old auth.log ConsoleKit dmesg.0 dmesg.4.gz fontconfig.log lastlog mail.err messages user.log Xorg.1.log Xorg.3.log boot daemon.log dmesg.1.gz dpkg.log fsck lp-acct mail.info news wtmp Xorg.1.log.old Xorg.3.log.old |
#tail -f /var/log/syslog
Jun 3 20:36:12 linux12 monit[3276]: 'cron' trying to restart Jun 3 20:36:12 linux12 monit[3276]: 'cron' start: /etc/init.d/cron Jun 3 20:36:12 linux12 monit[3276]: 'cron' failed to start Jun 3 20:37:11 linux12 ntpdate[6193]: step time server 62.149.0.30 offset -0.897254 sec Jun 3 20:37:13 linux12 kernel: [ 4039.036152] eth0.106: no IPv6 routers present Jun 3 20:37:26 linux12 ntpdate[6276]: step time server 62.149.0.30 offset -0.002870 sec Jun 3 20:38:41 linux12 ntpdate[6438]: step time server 62.149.0.30 offset -0.017351 sec Jun 3 20:38:44 linux12 kernel: [ 4129.788029] eth0.206: no IPv6 routers present Jun 3 20:38:45 linux12 kernel: [ 4130.264115] eth0.106: no IPv6 routers present Jun 3 20:38:56 linux12 ntpdate[6539]: step time server 62.149.0.30 offset -0.004328 sec Jun 3 20:39:11 linux12 monit[3276]: 'cron' process is not running Jun 3 20:39:11 linux12 monit[3276]: 'cron' trying to restart Jun 3 20:39:11 linux12 monit[3276]: 'cron' start: /etc/init.d/cron Jun 3 20:39:11 linux12 monit[3276]: 'cron' failed to start Jun 3 20:39:20 linux12 ntpdate[6669]: step time server 62.149.0.30 offset -0.006920 sec Jun 3 20:39:22 linux12 kernel: [ 4167.888050] eth0.106: no IPv6 routers present Jun 3 20:39:22 linux12 kernel: [ 4168.064045] eth0.206: no IPv6 routers present ^C |
#/etc/init.d/networking restart
Reconfiguring network interfaces...Removed VLAN -:eth0.106:- Removed VLAN -:eth0.206:- Don't seem to be have all the variables for eth0/inet. Failed to bring up eth0. Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config Added VLAN with VID == 106 to IF -:eth0:- if-up.d/mountnfs[eth0.106]: waiting for interface eth0.206 before doing NFS mounts (warning). if-up.d/mountnfs[eth0.106]: waiting for interface eth0.266 before doing NFS mounts (warning). Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config Added VLAN with VID == 206 to IF -:eth0:- if-up.d/mountnfs[eth0.206]: waiting for interface eth0.266 before doing NFS mounts (warning). Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config ERROR: trying to add VLAN #266 to IF -:eth0:- error: File exists 192.168.266.2: Unknown host ifconfig: `--help' gives usage information. Failed to bring up eth0.266. done. |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: client. Starting virtual private network daemon: client. |
#tail -f /var/log/
tail: помилка читання `/var/log/': Is a directory tail: /var/log/: не можна стежити за кінцем файлу такого типу; вивід продовжується для нового файлу tail: більше немає файлів |
#tail -f /var/log/
apache2/ btmp dmesg.0 dpkg.log gdm/ lpr.log messages wtmp Xorg.2.log apt/ ConsoleKit/ dmesg.1.gz exim4/ kern.log mail.err news/ Xorg.0.log Xorg.2.log.old auth.log daemon.log dmesg.2.gz faillog lastlog mail.info pycentral.log Xorg.0.log.old Xorg.3.log boot debug dmesg.3.gz fontconfig.log lp-acct mail.log syslog Xorg.1.log Xorg.3.log.old bootstrap.log dmesg dmesg.4.gz fsck/ lp-errs mail.warn user.log Xorg.1.log.old |
#tail -f /var/log/daemon.log
Jun 3 21:11:27 linux12 ovpn-client[7117]: /sbin/ifconfig tun0 172.16.1.6 pointopoint 172.16.1.5 mtu 1500 Jun 3 21:11:27 linux12 ovpn-client[7117]: Attempting to establish TCP connection with 192.168.215.2:443 [nonblock] Jun 3 21:11:37 linux12 ovpn-client[7117]: TCP: connect to 192.168.215.2:443 failed, will try again in 5 seconds: Connection timed out Jun 3 21:11:37 linux12 ovpn-client[7117]: /sbin/ifconfig tun0 0.0.0.0 Jun 3 21:11:37 linux12 ovpn-client[7117]: SIGUSR1[soft,init_instance] received, process restarting Jun 3 21:11:42 linux12 ovpn-client[7117]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 21:11:42 linux12 ovpn-client[7117]: /usr/sbin/openvpn-vulnkey -q linux9.key Jun 3 21:11:42 linux12 ovpn-client[7117]: TUN/TAP device tun0 opened Jun 3 21:11:42 linux12 ovpn-client[7117]: /sbin/ifconfig tun0 172.16.1.6 pointopoint 172.16.1.5 mtu 1500 Jun 3 21:11:42 linux12 ovpn-client[7117]: Attempting to establish TCP connection with 192.168.205.2:443 [nonblock] ... Jun 3 21:19:15 linux12 ovpn-client[7117]: TCP: connect to 192.168.215.2:443 failed, will try again in 5 seconds: Connection timed out Jun 3 21:19:15 linux12 ovpn-client[7117]: /sbin/ifconfig tun0 0.0.0.0 Jun 3 21:19:15 linux12 ovpn-client[7117]: SIGUSR1[soft,init_instance] received, process restarting Jun 3 21:19:20 linux12 ovpn-client[7117]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 21:19:20 linux12 ovpn-client[7117]: /usr/sbin/openvpn-vulnkey -q linux9.key Jun 3 21:19:20 linux12 ovpn-client[7117]: TUN/TAP device tun0 opened Jun 3 21:19:20 linux12 ovpn-client[7117]: /sbin/ifconfig tun0 172.16.1.6 pointopoint 172.16.1.5 mtu 1500 Jun 3 21:19:20 linux12 ovpn-client[7117]: Attempting to establish TCP connection with 192.168.205.2:443 [nonblock] Jun 3 21:19:30 linux12 ovpn-client[7117]: TCP: connect to 192.168.205.2:443 failed, will try again in 5 seconds: Connection timed out Jun 3 21:19:30 linux12 ovpn-client[7117]: /sbin/ifconfig tun0 0.0.0.0 |
#ssh 192.168.205.1
interface Enter the Interface Configuration Level, or execute one command for that level. vlan Add, delete, edit VLAN configuration or enter a VLAN context. debug Enable/disable debug logging. page Toggle paging mode. reload Warm reboot of the switch. ProCurve Switch 3400cl-48G(vlan-215)# no tagged 7 ProCurve Switch 3400cl-48G(vlan-215)# no tagged 7~^Z [suspend ssh] [1]+ Stopped ssh 192.168.205.1 |
#kill %
tcsetattr: Interrupted system call [1]+ Exit 143 ssh 192.168.205.1 |
#kill %
bash: kill: %: no such job |
#kill %
bash: kill: %: no such job |
#ping 192.168.205.1
PING 192.168.205.1 (192.168.205.1) 56(84) bytes of data. ^C --- 192.168.205.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1006ms |
#ping 192.168.215.1
PING 192.168.215.1 (192.168.215.1) 56(84) bytes of data. 64 bytes from 192.168.215.1: icmp_seq=1 ttl=63 time=38.1 ms 64 bytes from 192.168.215.1: icmp_seq=2 ttl=63 time=1.38 ms 64 bytes from 192.168.215.1: icmp_seq=3 ttl=63 time=0.879 ms ^C --- 192.168.215.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.879/13.470/38.144/17.448 ms |
#ping 192.168.215.22
PING 192.168.215.22 (192.168.215.22) 56(84) bytes of data. ^C --- 192.168.215.22 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 192.168.215.2
PING 192.168.215.2 (192.168.215.2) 56(84) bytes of data. 64 bytes from 192.168.215.2: icmp_seq=1 ttl=63 time=0.225 ms 64 bytes from 192.168.215.2: icmp_seq=2 ttl=63 time=0.220 ms ^C --- 192.168.215.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.220/0.222/0.225/0.015 ms |
#ping 192.168.215.1
PING 192.168.215.1 (192.168.215.1) 56(84) bytes of data. 64 bytes from 192.168.215.1: icmp_seq=1 ttl=63 time=0.932 ms 64 bytes from 192.168.215.1: icmp_seq=2 ttl=63 time=1.00 ms ^C --- 192.168.215.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.932/0.970/1.008/0.038 ms |
#ssh 192.168.215.1
ip ssh password manager password operator ProCurve Switch 3400cl-48G# ProCurve Switch 3400cl-48G# ProCurve Switch 3400cl-48G# conf t ProCurve Switch 3400cl-48G(config)# vlan 205 ProCurve Switch 3400cl-48G(vlan-205)# tag ProCurve Switch 3400cl-48G(vlan-205)# tagged 7 ProCurve Switch 3400cl-48G(vlan-205)# ProCurve Switch 3400cl-48G(config)# ProCurve Switch 3400cl-48G# conf t ProCurve Switch 3400cl-48G(config)# vlan 215 ProCurve Switch 3400cl-48G(vlan-215)# no tagged 7~^Z [suspend ssh] [1]+ Stopped ssh 192.168.215.1 |
#kill %
tcsetattr: Interrupted system call [1]+ Exit 143 ssh 192.168.215.1 |
#kill %
bash: kill: %: no such job |
#ssh 192.168.205.1
We'd like to keep you up to date about: * Software feature updates * New product announcements * Special events Please register your products now at: www.ProCurve.com root@192.168.205.1's password: Received disconnect from 192.168.205.1: 2: Sorry, the maximum number of sessions are active. Try again later. |
#ssh 192.168.205.1
We'd like to keep you up to date about: * Software feature updates * New product announcements * Special events Please register your products now at: www.ProCurve.com root@192.168.205.1's password: Received disconnect from 192.168.205.1: 2: Sorry, the maximum number of sessions are active. Try again later. |
#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_seq=2 ttl=64 time=0.626 ms 64 bytes from 192.168.15.254: icmp_seq=3 ttl=64 time=0.608 ms 64 bytes from 192.168.15.254: icmp_seq=4 ttl=64 time=0.661 ms 64 bytes from 192.168.15.254: icmp_seq=5 ttl=64 time=0.616 ms 64 bytes from 192.168.15.254: icmp_seq=6 ttl=64 time=0.623 ms 64 bytes from 192.168.15.254: icmp_seq=8 ttl=64 time=0.639 ms 64 bytes from 192.168.15.254: icmp_seq=9 ttl=64 time=0.625 ms 64 bytes from 192.168.15.254: icmp_seq=10 ttl=64 time=0.625 ms 64 bytes from 192.168.15.254: icmp_seq=11 ttl=64 time=0.610 ms ^C --- 192.168.15.254 ping statistics --- 11 packets transmitted, 9 received, 18% packet loss, time 10006ms rtt min/avg/max/mdev = 0.608/0.625/0.661/0.036 ms |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.235 ms 64 bytes from 10.0.35.1: icmp_seq=2 ttl=63 time=0.220 ms ^C --- 10.0.35.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.220/0.227/0.235/0.016 ms |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.233 ms 64 bytes from 10.0.35.1: icmp_seq=2 ttl=63 time=0.224 ms 64 bytes from 10.0.35.1: icmp_seq=3 ttl=63 time=0.223 ms 64 bytes from 10.0.35.1: icmp_seq=4 ttl=63 time=0.224 ms 64 bytes from 10.0.35.1: icmp_seq=5 ttl=63 time=0.223 ms 64 bytes from 10.0.35.1: icmp_seq=7 ttl=63 time=0.231 ms 64 bytes from 10.0.35.1: icmp_seq=8 ttl=63 time=0.223 ms 64 bytes from 10.0.35.1: icmp_seq=9 ttl=63 time=0.223 ms 64 bytes from 10.0.35.1: icmp_seq=10 ttl=63 time=0.224 ms ^C --- 10.0.35.1 ping statistics --- 10 packets transmitted, 9 received, 10% packet loss, time 9000ms rtt min/avg/max/mdev = 0.223/0.225/0.233/0.012 ms |
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data. 64 bytes from 10.0.35.100: icmp_seq=1 ttl=62 time=0.240 ms 64 bytes from 10.0.35.100: icmp_seq=2 ttl=62 time=0.224 ms ^C --- 10.0.35.100 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.224/0.232/0.240/0.008 ms |
#traceroute 10.0.35.1
traceroute to 10.0.35.1 (10.0.35.1), 30 hops max, 60 byte packets 1 (172.16.1.5) 0.507 ms 0.839 ms 0.817 ms 2 * * * 3 * * * 4 * * * 5 * * * 6 * * * 7 * * * 8 * * * 9 * * * ... 21 * * * 22 * * * 23 * * * 24 * * * 25 * * * 26 * * * 27 * * * 28 * * * 29 * * * 30 * * * |
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data. ^[[B^[[A^[[A^C --- 10.0.35.100 ping statistics --- 70 packets transmitted, 0 received, 100% packet loss, time 69113ms |
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data. ^C --- 10.0.35.100 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2015ms |
#cat /proc/sys/net/ipv4/ip_forward
1 |
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data. ^C --- 10.0.35.100 ping statistics --- 30 packets transmitted, 0 received, 100% packet loss, time 29231ms |
#ping 10.0.105.1
PING 10.0.105.1 (10.0.105.1) 56(84) bytes of data. ^C --- 10.0.105.1 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 10.0.105.2
PING 10.0.105.2 (10.0.105.2) 56(84) bytes of data. ^C --- 10.0.105.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#ping 10.0.205.2
PING 10.0.205.2 (10.0.205.2) 56(84) bytes of data. ^C --- 10.0.205.2 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 10.0.205.1
PING 10.0.205.1 (10.0.205.1) 56(84) bytes of data. ^C --- 10.0.205.1 ping statistics --- 10 packets transmitted, 0 received, 100% packet loss, time 9070ms |
#ping 10.0.105.1
PING 10.0.105.1 (10.0.105.1) 56(84) bytes of data. ^C --- 10.0.105.1 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2016ms |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. 64 bytes from 192.168.105.1: icmp_seq=1 ttl=64 time=0.517 ms ^C --- 192.168.105.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.517/0.517/0.517/0.000 ms |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. ^C --- 192.168.105.2 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2016ms |
#vim /etc/cron
--- /tmp/l3-saved-18288.28049.24778 2009-06-04 09:57:43.000000000 +0300 +++ /etc/crontab 2009-06-04 09:58:08.000000000 +0300 @@ -12,6 +12,4 @@ 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) -# - |
#vim /etc/crontab
|
#vonfig
bash: vonfig: command not found |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. ^C --- 192.168.105.2 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 1999ms |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.215.2 192.168.206.1 255.255.255.255 UGH 0 0 0 eth0.206 172.16.1.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.106.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.106 192.168.206.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.206 0.0.0.0 172.16.1.5 0.0.0.0 UG 0 0 0 tun0 |
#ping 172.16.1.5
PING 172.16.1.5 (172.16.1.5) 56(84) bytes of data. 64 bytes from 172.16.1.5: icmp_seq=1 ttl=64 time=0.495 ms ^C --- 172.16.1.5 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.495/0.495/0.495/0.000 ms |
#ping 172.16.1.6
PING 172.16.1.6 (172.16.1.6) 56(84) bytes of data. 64 bytes from 172.16.1.6: icmp_seq=1 ttl=64 time=0.018 ms 64 bytes from 172.16.1.6: icmp_seq=2 ttl=64 time=0.009 ms ^C --- 172.16.1.6 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.009/0.013/0.018/0.005 ms |
#ip route show
192.168.215.2 via 192.168.206.1 dev eth0.206 172.16.1.5 dev tun0 proto kernel scope link src 172.16.1.6 192.168.106.0/24 dev eth0.106 proto kernel scope link src 192.168.106.1 192.168.206.0/24 dev eth0.206 proto kernel scope link src 192.168.206.2 default via 172.16.1.5 dev tun0 |
#ping 192.168.215.2
PING 192.168.215.2 (192.168.215.2) 56(84) bytes of data. 64 bytes from 192.168.215.2: icmp_seq=1 ttl=63 time=0.226 ms 64 bytes from 192.168.215.2: icmp_seq=2 ttl=63 time=0.224 ms ^C --- 192.168.215.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.224/0.225/0.226/0.001 ms |
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data. ^C --- 192.168.205.2 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#vconfig
Expecting argc to be 3-5, inclusive. Was: 1 Usage: add [interface-name] [vlan_id] rem [vlan-name] set_flag [interface-name] [flag-num] [0 | 1] set_egress_map [vlan-name] [skb_priority] [vlan_qos] set_ingress_map [vlan-name] [skb_priority] [vlan_qos] set_name_type [name-type] * The [interface-name] is the name of the ethernet card that hosts the VLAN you are talking about. * The vlan_id is the identifier (0-4095) of the VLAN you are operating on. * skb_priority is the priority in the socket buffer (sk_buff). * vlan_qos is the 3 bit priority in the VLAN header * name-type: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5), DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5) * FLAGS: 1 REORDER_HDR When this is set, the VLAN device will move the ethernet header around to make it look exactly like a real ethernet device. This may help programs such as DHCPd which read the raw ethernet packet and make assumptions about the location of bytes. If you don't need it, don't turn it on, because there will be at least a small performance degradation. Default is OFF. |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. ^C --- 192.168.15.254 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3022ms |
#ssh root@10.0.35.100
ssh: connect to host 10.0.35.100 port 22: Connection timed out |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. ^C --- 192.168.15.254 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3022ms |
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data. ^C --- 192.168.205.2 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 2999ms |
#ping 192.168.202.1
PING 192.168.202.1 (192.168.202.1) 56(84) bytes of data. ^C --- 192.168.202.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1008ms |
#ping 192.168.200.1
PING 192.168.200.1 (192.168.200.1) 56(84) bytes of data. ^C --- 192.168.200.1 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 192.168.206.1.
^C |
#ping 192.168.206.1.
^C |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.215.2 192.168.206.1 255.255.255.255 UGH 0 0 0 eth0.206 172.16.1.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.106.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.106 192.168.206.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.206 0.0.0.0 172.16.1.5 0.0.0.0 UG 0 0 0 tun0 |
#ping 192.168.206.1
PING 192.168.206.1 (192.168.206.1) 56(84) bytes of data. 64 bytes from 192.168.206.1: icmp_seq=1 ttl=64 time=0.640 ms 64 bytes from 192.168.206.1: icmp_seq=2 ttl=64 time=0.623 ms 64 bytes from 192.168.206.1: icmp_seq=3 ttl=64 time=0.641 ms 64 bytes from 192.168.206.1: icmp_seq=4 ttl=64 time=0.633 ms 64 bytes from 192.168.206.1: icmp_seq=5 ttl=64 time=0.637 ms 64 bytes from 192.168.206.1: icmp_seq=6 ttl=64 time=0.616 ms 64 bytes from 192.168.206.1: icmp_seq=7 ttl=64 time=0.634 ms 64 bytes from 192.168.206.1: icmp_seq=8 ttl=64 time=0.632 ms ^C --- 192.168.206.1 ping statistics --- 8 packets transmitted, 8 received, 0% packet loss, time 6998ms rtt min/avg/max/mdev = 0.616/0.632/0.641/0.008 ms |
#ssh root@10.0.35.100
root@10.0.35.100's password: Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Jun 4 10:34:29 2009 from 192.168.201.2 l3-agent is already running: pid=4804; pidfile=/root/.lilalo/l3-agent.pid |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.215.2 192.168.206.1 255.255.255.255 UGH 0 0 0 eth0.206 172.16.1.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.106.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.106 192.168.206.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.206 0.0.0.0 172.16.1.5 0.0.0.0 UG 0 0 0 tun0 |
#/etc/init.d/openvpn stop
Stopping virtual private network daemon: client. |
#vim /etc/default/openvpn
--- /tmp/l3-saved-18288.15204.3204 2009-06-04 10:22:55.000000000 +0300 +++ /etc/default/openvpn 2009-06-04 10:23:40.000000000 +0300 @@ -6,7 +6,7 @@ # names of the VPNs. If empty, "all" is assumed. # #AUTOSTART="all" -#AUTOSTART="none" +AUTOSTART="none" #AUTOSTART="home office" # # Refresh interval (in seconds) of default status files |
#host
Usage: host [-v] [-a] [-t querytype] [options] name [server] Listing: host [-v] [-a] [-t querytype] [options] -l zone [server] Hostcount: host [-v] [options] -H [-D] [-E] [-G] zone Check soa: host [-v] [options] -C zone Addrcheck: host [-v] [options] -A host Listing options: [-L level] [-S] [-A] [-p] [-P prefserver] [-N skipzone] Common options: [-d] [-f|-F file] [-I chars] [-i|-n] [-q] [-Q] [-T] [-Z] Other options: [-c class] [-e] [-m] [-o] [-r] [-R] [-s secs] [-u] [-w] Special options: [-O srcaddr] [-j minport] [-J maxport] Extended usage: [-x [name ...]] [-X server [name ...]] |
#dig
; <<>> DiG 9.6.0-P1 <<>> ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32554 ;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 14 ;; QUESTION SECTION: ;. IN NS ;; ANSWER SECTION: . 434502 IN NS f.root-servers.net. . 434502 IN NS e.root-servers.net. ... g.root-servers.net. 344746 IN A 192.112.36.4 h.root-servers.net. 344746 IN A 128.63.2.53 h.root-servers.net. 346677 IN AAAA 2001:500:1::803f:235 i.root-servers.net. 344746 IN A 192.36.148.17 j.root-servers.net. 434502 IN A 192.58.128.30 j.root-servers.net. 434502 IN AAAA 2001:503:c27::2:30 ;; Query time: 8 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 10:44:50 2009 ;; MSG SIZE rcvd: 500 |
#nslookup
|
#host mail.ru
mail.ru A 194.67.57.126 mail.ru A 194.67.57.226 mail.ru A 194.67.57.20 mail.ru A 194.67.57.26 |
#host ya.ru
ya.ru A 213.180.204.8 |
#host google.ru
google.ru A 72.14.221.104 google.ru A 74.125.77.104 google.ru A 216.239.59.104 |
#host wwww.google.com.ua
wwww.google.com.ua does not exist, try again |
1
Время первой команды журнала | 20:21:52 2009- 6- 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:47:19 2009- 6- 4 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 35.64 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.55 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.09 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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