/l3/users/eb/2009/linux13/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 :45 :46 :47 :48 :49 :50 :51 :52 :53 :54 :55 :56 :57 :58 :59 :60 :61 :62 :63 :64 :65 :66 :67 :68 :69 :70 :71 :72 :73 :74 :75 :76 |
|
#vim /etc/default/openvpn
--- /tmp/l3-saved-3955.27321.31191 2009-06-04 10:18:39.000000000 +0300 +++ /etc/default/openvpn 2009-06-04 10:20:44.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 |
#/etc/init.d/openvpn stop
Stopping virtual private network daemon: server. |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 * 255.255.255.0 U 0 0 0 eth0 192.168.207.0 * 255.255.255.0 U 0 0 0 eth0.207 192.168.107.0 * 255.255.255.0 U 0 0 0 eth0.107 default 192.168.207.1 0.0.0.0 UG 0 0 0 eth0.207 |
#route del default
|
#route add default gw 192.168.15.254
|
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 * 255.255.255.0 U 0 0 0 eth0 192.168.207.0 * 255.255.255.0 U 0 0 0 eth0.207 192.168.107.0 * 255.255.255.0 U 0 0 0 eth0.107 default 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#vim /etc/resolv.conf
|
#iptables-save
# Generated by iptables-save v1.4.3.2 on Thu Jun 4 10:34:37 2009 *filter :INPUT ACCEPT [11967:2346661] :FORWARD ACCEPT [16801:7218731] :OUTPUT ACCEPT [14100:7089075] COMMIT # Completed on Thu Jun 4 10:34:37 2009 # Generated by iptables-save v1.4.3.2 on Thu Jun 4 10:34:37 2009 *nat :PREROUTING ACCEPT [957:64898] :POSTROUTING ACCEPT [99:6097] :OUTPUT ACCEPT [350:21146] -A POSTROUTING -o eth0.207 -j MASQUERADE COMMIT # Completed on Thu Jun 4 10:34:37 2009 |
#iptables -D POSTROUTING -o eth0.207 -j MASQUERADE
iptables: Bad rule (does a matching rule exist in that chain?). |
#iptables-save>1
|
#vi 1
--- /tmp/l3-saved-6632.29163.8307 2009-06-04 10:35:24.000000000 +0300 +++ 1 2009-06-04 10:35:41.000000000 +0300 @@ -10,6 +10,6 @@ :PREROUTING ACCEPT [957:64898] :POSTROUTING ACCEPT [110:6736] :OUTPUT ACCEPT [361:21785] --A POSTROUTING -o eth0.207 -j MASQUERADE +-A POSTROUTING -j MASQUERADE COMMIT # Completed on Thu Jun 4 10:35:20 2009 |
#iptables-restore<1
|
#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.194 ms 64 bytes from 10.0.35.1: icmp_seq=2 ttl=63 time=0.223 ms ^C --- 10.0.35.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.194/0.208/0.223/0.020 ms |
#apt-get install eth-tool
Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package eth-tool |
#~
mail.ru A 194.67.57.226 mail.ru A 194.67.57.20 mail.ru A 194.67.57.26 mail.ru A 194.67.57.126 |
#host google.com
google.com A 74.125.45.100 google.com A 74.125.67.100 google.com A 209.85.171.100 |
#host 74.125.45.100
Name: yx-in-f100.google.com Address: 74.125.45.100 |
#dig ya.ru
; <<>> DiG 9.6.0-P1 <<>> ya.ru ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35824 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2 ;; QUESTION SECTION: ;ya.ru. IN A ;; ANSWER SECTION: ya.ru. 3040 IN A 213.180.204.8 ;; AUTHORITY SECTION: ya.ru. 3040 IN NS ns5.yandex.ru. ya.ru. 3040 IN NS ns1.yandex.ru. ;; ADDITIONAL SECTION: ns1.yandex.ru. 175311 IN A 213.180.193.1 ns5.yandex.ru. 175311 IN A 213.180.204.1 ;; Query time: 1 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 10:47:23 2009 ;; MSG SIZE rcvd: 114 |
#dig 213.180.193.1
; <<>> DiG 9.6.0-P1 <<>> 213.180.193.1 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 382 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;213.180.193.1. IN A ;; AUTHORITY SECTION: . 10800 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2009060301 1800 900 604800 86400 ;; Query time: 70 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 10:47:42 2009 ;; MSG SIZE rcvd: 106 |
#mii-tool
eth0: negotiated 1000baseT-FD flow-control, link ok |
#ethtool
ethtool: bad command line argument(s) For more information run ethtool -h |
#ethtool -h
ethtool version 6git Usage: ethtool DEVNAME Display standard information about device ethtool -s|--change DEVNAME Change generic options [ speed %%d ] [ duplex half|full ] [ port tp|aui|bnc|mii|fibre ] [ autoneg on|off ] [ advertise %%x ] [ phyad %%d ] ... ethtool -p|--identify DEVNAME Show visible port identification (e.g. blinking) [ TIME-IN-SECONDS ] ethtool -t|--test DEVNAME Execute adapter self test [ online | offline ] ethtool -S|--statistics DEVNAME Show adapter statistics ethtool -n|--show-nfc DEVNAME Show Rx network flow classificationoptions [ rx-flow-hash tcp4|udp4|ah4|sctp4|tcp6|udp6|ah6|sctp6 ] ethtool -N|--config-nfc DEVNAME Configure Rx network flow classification options [ rx-flow-hash tcp4|udp4|ah4|sctp4|tcp6|udp6|ah6|sctp6 p|m|v|t|s|d|f|n|r... ] ethtool -h|--help DEVNAME Show this help |
#apt-get install eth-tools
Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package eth-tools |
#ethtool eth0
Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: g Wake-on: d Current message level: 0x0000003f (63) Link detected: yes |
#dig eb.co.ua
; <<>> DiG 9.6.0-P1 <<>> eb.co.ua ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58895 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;eb.co.ua. IN A ;; AUTHORITY SECTION: eb.co.ua. 3057 IN SOA dns.eb.co.ua. uiyn.email.ua. 200712056 10800 3600 604800 3600 ;; Query time: 0 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 10:55:48 2009 ;; MSG SIZE rcvd: 77 |
#apt-cache search ethtool
ifplugd - configuration daemon for ethernet devices ethtool - display or change Ethernet device settings |
#apt-get install ethtools
Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package ethtools |
#apt-get install ethtool
Reading package lists... Done Building dependency tree Reading state information... Done ethtool is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#apt-get update
Hit http://192.168.15.13 lenny Release.gpg Ign http://192.168.15.13 lenny/main Translation-en_US Ign http://192.168.15.13 lenny/contrib Translation-en_US Ign http://192.168.15.13 lenny/non-free Translation-en_US Hit http://192.168.15.13 lenny Release Ign http://192.168.15.13 lenny/main Packages/DiffIndex Ign http://192.168.15.13 lenny/contrib Packages/DiffIndex Ign http://192.168.15.13 lenny/non-free Packages/DiffIndex Ign http://192.168.15.13 lenny/main Packages Ign http://192.168.15.13 lenny/contrib Packages Ign http://192.168.15.13 lenny/non-free Packages Hit http://192.168.15.13 lenny/main Packages Hit http://192.168.15.13 lenny/contrib Packages Hit http://192.168.15.13 lenny/non-free Packages Reading package lists... Done |
#dig mail.ru
; <<>> DiG 9.6.0-P1 <<>> mail.ru ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64587 ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 6, ADDITIONAL: 0 ;; QUESTION SECTION: ;mail.ru. IN A ;; ANSWER SECTION: mail.ru. 2970 IN A 194.67.57.20 mail.ru. 2970 IN A 194.67.57.26 ... mail.ru. 2657 IN NS ns.mail.ru. mail.ru. 2657 IN NS ns1.mail.ru. mail.ru. 2657 IN NS ns3.mail.ru. mail.ru. 2657 IN NS ns2.mail.ru. mail.ru. 2657 IN NS ns4.mail.ru. mail.ru. 2657 IN NS ns5.mail.ru. ;; Query time: 0 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 10:56:03 2009 ;; MSG SIZE rcvd: 196 |
#dig kz ns
; <<>> DiG 9.6.0-P1 <<>> kz ns ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14262 ;; flags: qr rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 3 ;; QUESTION SECTION: ;kz. IN NS ;; ANSWER SECTION: kz. 86384 IN NS ns.ricc.kz. kz. 86384 IN NS auth00.ns.uu.net. ... kz. 86384 IN NS ns.nursat.net. kz. 86384 IN NS ns-kz.ripe.net. ;; ADDITIONAL SECTION: ns.ru.net. 9648 IN A 193.124.22.65 ns.spb.ru. 34641 IN A 193.124.83.69 auth00.ns.uu.net. 75949 IN A 198.6.1.65 ;; Query time: 0 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 10:58:47 2009 ;; MSG SIZE rcvd: 233 |
#dig mail.ru mx
; <<>> DiG 9.6.0-P1 <<>> mail.ru mx ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65126 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 1 ;; QUESTION SECTION: ;mail.ru. IN MX ;; ANSWER SECTION: mail.ru. 3598 IN MX 10 mxs.mail.ru. ;; AUTHORITY SECTION: ... mail.ru. 2620 IN NS ns4.mail.ru. mail.ru. 2620 IN NS ns.mail.ru. mail.ru. 2620 IN NS ns5.mail.ru. mail.ru. 2620 IN NS ns2.mail.ru. ;; ADDITIONAL SECTION: mxs.mail.ru. 3598 IN A 94.100.176.20 ;; Query time: 23 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 10:56:41 2009 ;; MSG SIZE rcvd: 168 |
#dig ya.ru mx
; <<>> DiG 9.6.0-P1 <<>> ya.ru mx ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27531 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2 ;; QUESTION SECTION: ;ya.ru. IN MX ;; ANSWER SECTION: ya.ru. 7200 IN MX 10 mx2.yandex.ru. ya.ru. 7200 IN MX 10 mx1.yandex.ru. ;; AUTHORITY SECTION: ya.ru. 2450 IN NS ns1.yandex.ru. ya.ru. 2450 IN NS ns5.yandex.ru. ;; ADDITIONAL SECTION: ns1.yandex.ru. 174721 IN A 213.180.193.1 ns5.yandex.ru. 174721 IN A 213.180.204.1 ;; Query time: 34 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 10:57:13 2009 ;; MSG SIZE rcvd: 138 |
#dig ya.ru
; <<>> DiG 9.6.0-P1 <<>> ya.ru ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33419 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2 ;; QUESTION SECTION: ;ya.ru. IN A ;; ANSWER SECTION: ya.ru. 2444 IN A 213.180.204.8 ;; AUTHORITY SECTION: ya.ru. 2444 IN NS ns1.yandex.ru. ya.ru. 2444 IN NS ns5.yandex.ru. ;; ADDITIONAL SECTION: ns1.yandex.ru. 174715 IN A 213.180.193.1 ns5.yandex.ru. 174715 IN A 213.180.204.1 ;; Query time: 0 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 10:57:19 2009 ;; MSG SIZE rcvd: 114 |
#dig ua ns
; <<>> DiG 9.6.0-P1 <<>> ua ns ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48332 ;; flags: qr rd ra; QUERY: 1, ANSWER: 10, AUTHORITY: 0, ADDITIONAL: 4 ;; QUESTION SECTION: ;ua. IN NS ;; ANSWER SECTION: ua. 172792 IN NS he1.ns.ua. ua. 172792 IN NS sunic.sunet.se. ... ua. 172792 IN NS ns2.nic.fr. ;; ADDITIONAL SECTION: ns2.nic.fr. 109160 IN A 192.93.0.4 ns2.nic.fr. 109160 IN AAAA 2001:660:3005:1::1:2 sunic.sunet.se. 5377 IN A 192.36.125.2 sunic.sunet.se. 5377 IN AAAA 2001:6b0:7::2 ;; Query time: 0 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 10:58:01 2009 ;; MSG SIZE rcvd: 334 |
#dig ru ns
; <<>> DiG 9.6.0-P1 <<>> ru ns ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31092 ;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;ru. IN NS ;; ANSWER SECTION: ru. 345596 IN NS ns.ripn.net. ru. 345596 IN NS ns2.nic.fr. ru. 345596 IN NS ns2.ripn.net. ru. 345596 IN NS ns9.ripn.net. ru. 345596 IN NS e.dns.ripn.net. ru. 345596 IN NS ns5.msk-ix.net. ;; ADDITIONAL SECTION: ns2.nic.fr. 109139 IN A 192.93.0.4 ns2.nic.fr. 109139 IN AAAA 2001:660:3005:1::1:2 ;; Query time: 0 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 10:58:23 2009 ;; MSG SIZE rcvd: 194 |
#dig br ns
; <<>> DiG 9.6.0-P1 <<>> br ns ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49738 ;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;br. IN NS ;; ANSWER SECTION: br. 172800 IN NS a.dns.br. br. 172800 IN NS e.dns.br. br. 172800 IN NS b.dns.br. br. 172800 IN NS f.dns.br. br. 172800 IN NS c.dns.br. br. 172800 IN NS d.dns.br. ;; Query time: 271 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 10:58:32 2009 ;; MSG SIZE rcvd: 120 |
#host a.dns.br
a.dns.br A 200.160.0.10 |
#dig ua ns
; <<>> DiG 9.6.0-P1 <<>> ua ns ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49940 ;; flags: qr rd ra; QUERY: 1, ANSWER: 10, AUTHORITY: 0, ADDITIONAL: 4 ;; QUESTION SECTION: ;ua. IN NS ;; ANSWER SECTION: ua. 172734 IN NS ns.uu.net. ua. 172734 IN NS he1.ns.ua. ... ua. 172734 IN NS ns2.nic.fr. ;; ADDITIONAL SECTION: ns2.nic.fr. 109102 IN A 192.93.0.4 ns2.nic.fr. 109102 IN AAAA 2001:660:3005:1::1:2 sunic.sunet.se. 5319 IN A 192.36.125.2 sunic.sunet.se. 5319 IN AAAA 2001:6b0:7::2 ;; Query time: 0 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 10:59:00 2009 ;; MSG SIZE rcvd: 334 |
#dig tj ns
; <<>> DiG 9.6.0-P1 <<>> tj ns ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52876 ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;tj. IN NS ;; ANSWER SECTION: tj. 172659 IN NS tjmirror.eastera.tj. tj. 172659 IN NS ns2.tojikiston.com. tj. 172659 IN NS ns-tj.ripe.net. tj. 172659 IN NS phloem.uoregon.edu. tj. 172659 IN NS ns1.nic.tj. ;; Query time: 0 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 11:01:08 2009 ;; MSG SIZE rcvd: 165 |
#host ns2.tojikiston.com
ns2.tojikiston.com A 193.111.11.4 |
#whois 200.160.0.10
% Copyright (c) Nic.br % The use of the data below is only permitted as described in % full by the terms of use (http://registro.br/termo/en.html), % being prohibited its distribution, comercialization or % reproduction, in particular, to use it for advertising or % any similar purpose. % 2009-06-04 05:03:00 (BRT -03:00) inetnum: 200.160.0/20 aut-num: AS22548 abuse-c: FAN ... e-mail: fneves@registro.br created: 19971217 changed: 20030721 % Security and mail abuse issues should also be addressed to % cert.br, http://www.cert.br/, respectivelly to cert@cert.br % and mail-abuse@cert.br % % whois.registro.br accepts only direct match queries. Types % of queries are: domain (.br), ticket, provider, ID, CIDR % block, IP and ASN. |
#host 89.105.249.137
Name: 137-249-105-89.static.lviv.farlep.net Address: 89.105.249.137 |
#dig ua mx
; <<>> DiG 9.6.0-P1 <<>> ua mx ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57136 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 10, ADDITIONAL: 4 ;; QUESTION SECTION: ;ua. IN MX ;; ANSWER SECTION: ua. 172295 IN MX 10 mr.kolo.net. ;; AUTHORITY SECTION: ... ua. 172283 IN NS ns.uu.net. ;; ADDITIONAL SECTION: ns2.nic.fr. 108651 IN A 192.93.0.4 ns2.nic.fr. 108651 IN AAAA 2001:660:3005:1::1:2 sunic.sunet.se. 4868 IN A 192.36.125.2 sunic.sunet.se. 4868 IN AAAA 2001:6b0:7::2 ;; Query time: 0 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 11:06:30 2009 ;; MSG SIZE rcvd: 358 |
#dig md mx
;; Warning, extra type option ; <<>> DiG 9.6.0-P1 <<>> md mx ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54958 ;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;. IN NS ;; ANSWER SECTION: . 433142 IN NS m.root-servers.net. ... . 433142 IN NS c.root-servers.net. . 433142 IN NS h.root-servers.net. . 433142 IN NS g.root-servers.net. ;; ADDITIONAL SECTION: j.root-servers.net. 433142 IN A 192.58.128.30 j.root-servers.net. 433142 IN AAAA 2001:503:c27::2:30 ;; Query time: 0 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 11:07:18 2009 ;; MSG SIZE rcvd: 272 |
#dig lucky.net mx
; <<>> DiG 9.6.0-P1 <<>> lucky.net mx ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43975 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 4 ;; QUESTION SECTION: ;lucky.net. IN MX ;; ANSWER SECTION: lucky.net. 86400 IN MX 10 mx.lucky.net. ;; AUTHORITY SECTION: ... lucky.net. 86400 IN NS ns.lucky.net. ;; ADDITIONAL SECTION: mx.lucky.net. 600 IN A 62.244.55.218 mx.lucky.net. 600 IN A 62.244.55.219 mx.lucky.net. 600 IN A 193.193.193.137 ns2.lucky.net. 85066 IN A 193.193.193.115 ;; Query time: 15 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 11:07:29 2009 ;; MSG SIZE rcvd: 167 |
#dig ua mx
; <<>> DiG 9.6.0-P1 <<>> ua mx ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4796 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 10, ADDITIONAL: 4 ;; QUESTION SECTION: ;ua. IN MX ;; ANSWER SECTION: ua. 172240 IN MX 10 mr.kolo.net. ;; AUTHORITY SECTION: ... ua. 172228 IN NS sns-pb.isc.org. ;; ADDITIONAL SECTION: ns2.nic.fr. 108596 IN A 192.93.0.4 ns2.nic.fr. 108596 IN AAAA 2001:660:3005:1::1:2 sunic.sunet.se. 4813 IN A 192.36.125.2 sunic.sunet.se. 4813 IN AAAA 2001:6b0:7::2 ;; Query time: 0 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 11:07:26 2009 ;; MSG SIZE rcvd: 358 |
#dig uz.gov.ua @ axfr
dig: couldn't get address for '': not found |
#dig yaplakal.com mx
; <<>> DiG 9.6.0-P1 <<>> yaplakal.com mx ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55328 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3 ;; QUESTION SECTION: ;yaplakal.com. IN MX ;; ANSWER SECTION: yaplakal.com. 600 IN MX 10 mail.yaplakal.com. ;; AUTHORITY SECTION: yaplakal.com. 600 IN NS ns2.busexpert.ru. yaplakal.com. 600 IN NS ns.busexpert.ru. ;; ADDITIONAL SECTION: mail.yaplakal.com. 600 IN A 84.252.151.11 ns.busexpert.ru. 599 IN A 82.179.244.244 ns2.busexpert.ru. 599 IN A 81.29.133.2 ;; Query time: 337 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 11:07:42 2009 ;; MSG SIZE rcvd: 146 |
#dig bash.org.ru mx
; <<>> DiG 9.6.0-P1 <<>> bash.org.ru mx ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62067 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3 ;; QUESTION SECTION: ;bash.org.ru. IN MX ;; ANSWER SECTION: bash.org.ru. 300 IN MX 5 mail.bash.org.ru. ;; AUTHORITY SECTION: bash.org.ru. 300 IN NS ns.comintern.ru. bash.org.ru. 300 IN NS hikaru.zoi.ru. bash.org.ru. 300 IN NS ns1.twisted4life.com. ;; ADDITIONAL SECTION: mail.bash.org.ru. 300 IN A 74.55.2.115 ns.comintern.ru. 84745 IN A 213.148.1.98 ns1.twisted4life.com. 81944 IN A 202.157.182.142 ;; Query time: 178 msec ;; SERVER: 10.0.35.1#53(10.0.35.1) ;; WHEN: Thu Jun 4 11:07:54 2009 ;; MSG SIZE rcvd: 184 |
#dig bash.org.ru axfr
; <<>> DiG 9.6.0-P1 <<>> bash.org.ru axfr ;; global options: +cmd ; Transfer failed. |
#dig uz.gov.ua axfr
; <<>> DiG 9.6.0-P1 <<>> uz.gov.ua axfr ;; global options: +cmd ; Transfer failed. |
#dig uz.gov.ua @ns.gov.ua axfr
; <<>> DiG 9.6.0-P1 <<>> uz.gov.ua @ns.gov.ua axfr ;; global options: +cmd ; Transfer failed. |
#dig uz.gov.ua @ns2.gov.ua axfr
dig: couldn't get address for 'ns2.gov.ua': not found |
#dig uz.gov.ua @ns2.uz.gov.ua axfr
; <<>> DiG 9.6.0-P1 <<>> uz.gov.ua @ns2.uz.gov.ua axfr ;; global options: +cmd uz.gov.ua. 10800 IN SOA ns.uz.gov.ua. hostmaster.uz.gov.ua. 2009021801 28800 14400 864000 86400 uz.gov.ua. 10800 IN A 195.149.70.27 uz.gov.ua. 10800 IN MX 10 relay.uz.gov.ua. uz.gov.ua. 10800 IN NS ns.uz.gov.ua. uz.gov.ua. 10800 IN NS ns.secondary.net.ua. uz.gov.ua. 10800 IN NS ns2.uz.gov.ua. cargo.uz.gov.ua. 10800 IN A 195.149.70.27 ci.uz.gov.ua. 10800 IN A 195.149.70.21 ... xz.uz.gov.ua. 10800 IN A 195.149.70.23 zp.uz.gov.ua. 10800 IN NS ns.uz.gov.ua. zp.uz.gov.ua. 10800 IN NS ns.zp.uz.gov.ua. zp.uz.gov.ua. 10800 IN NS ns2.uz.gov.ua. ns.zp.uz.gov.ua. 10800 IN A 193.108.46.123 uz.gov.ua. 10800 IN SOA ns.uz.gov.ua. hostmaster.uz.gov.ua. 2009021801 28800 14400 864000 86400 ;; Query time: 61 msec ;; SERVER: 195.149.70.30#53(195.149.70.30) ;; WHEN: Thu Jun 4 11:09:46 2009 ;; XFR size: 65 records (messages 1, bytes 1370) |
#dig @ns2.uz.gov.ua version.bind. chaos txt
; <<>> DiG 9.6.0-P1 <<>> @ns2.uz.gov.ua version.bind. chaos txt ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54441 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;version.bind. CH TXT ;; ANSWER SECTION: version.bind. 0 CH TXT "9.3.1" ;; AUTHORITY SECTION: version.bind. 0 CH NS version.bind. ;; Query time: 10 msec ;; SERVER: 195.149.70.30#53(195.149.70.30) ;; WHEN: Thu Jun 4 11:11:24 2009 ;; MSG SIZE rcvd: 62 |
#dig @ns2.uz.gov.ua version.bind. chaos txt
; <<>> DiG 9.6.0-P1 <<>> @ns2.uz.gov.ua version.bind. chaos txt ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47127 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;version.bind. CH TXT ;; ANSWER SECTION: version.bind. 0 CH TXT "9.3.1" ;; AUTHORITY SECTION: version.bind. 0 CH NS version.bind. ;; Query time: 9 msec ;; SERVER: 195.149.70.30#53(195.149.70.30) ;; WHEN: Thu Jun 4 11:11:36 2009 ;; MSG SIZE rcvd: 62 |
#dig @alpha.eb.co.ua version.bind. chaos txt
; <<>> DiG 9.6.0-P1 <<>> @alpha.eb.co.ua version.bind. chaos txt ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41107 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;version.bind. CH TXT ;; ANSWER SECTION: version.bind. 0 CH TXT "9.4.2" ;; AUTHORITY SECTION: version.bind. 0 CH NS version.bind. ;; Query time: 9 msec ;; SERVER: 62.80.163.45#53(62.80.163.45) ;; WHEN: Thu Jun 4 11:12:33 2009 ;; MSG SIZE rcvd: 62 |
#dig @hikaru.zoi.ru version.bind. chaos txt
; <<>> DiG 9.6.0-P1 <<>> @hikaru.zoi.ru version.bind. chaos txt ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15271 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;version.bind. CH TXT ;; ANSWER SECTION: version.bind. 0 CH TXT "9.3.4-P1.1" ;; AUTHORITY SECTION: version.bind. 0 CH NS version.bind. ;; Query time: 99 msec ;; SERVER: 213.148.6.69#53(213.148.6.69) ;; WHEN: Thu Jun 4 11:13:46 2009 ;; MSG SIZE rcvd: 67 |
#dig @ns.comintern.ru version.bind. chaos txt
; <<>> DiG 9.6.0-P1 <<>> @ns.comintern.ru version.bind. chaos txt ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54176 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;version.bind. CH TXT ;; ANSWER SECTION: version.bind. 0 CH TXT "9.3.2" ;; AUTHORITY SECTION: version.bind. 0 CH NS version.bind. ;; Query time: 101 msec ;; SERVER: 213.148.1.98#53(213.148.1.98) ;; WHEN: Thu Jun 4 11:14:04 2009 ;; MSG SIZE rcvd: 62 |
#dig @ares.utel.net.ua version.bind. chaos txt
; <<>> DiG 9.6.0-P1 <<>> @ares.utel.net.ua version.bind. chaos txt ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31935 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;version.bind. CH TXT ;; ANSWER SECTION: version.bind. 0 CH TXT "LATEST \;-)" ;; AUTHORITY SECTION: version.bind. 0 CH NS version.bind. ;; Query time: 23 msec ;; SERVER: 212.113.37.157#53(212.113.37.157) ;; WHEN: Thu Jun 4 11:14:52 2009 ;; MSG SIZE rcvd: 67 |
#ping 89.105.249.138
PING 89.105.249.138 (89.105.249.138) 56(84) bytes of data. ^C --- 89.105.249.138 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 2999ms |
#ping 89.105.249.137
PING 89.105.249.137 (89.105.249.137) 56(84) bytes of data. ^C --- 89.105.249.137 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1009ms |
#dig @89.105.249.138 version.bind. chaos txt
|
#vim /etc/apt/sources.list
--- /tmp/l3-saved-3955.10920.26742 2009-06-04 11:18:50.000000000 +0300 +++ /etc/apt/sources.list 2009-06-04 11:19:50.000000000 +0300 @@ -1,2 +1,2 @@ -deb http://192.168.15.13:9999/debian lenny main contrib non-free +deb http://192.168.15.13:9999/debian sid main contrib non-free # deb http://www.debian-multimedia.org sid main |
#dig @89.105.249.137 version.bind. chaos txt
|
#ping 89.105.249.138
PING 89.105.249.138 (89.105.249.138) 56(84) bytes of data. From 62.221.56.107 icmp_seq=1 Destination Host Unreachable From 62.221.56.107 icmp_seq=3 Destination Host Unreachable From 62.221.56.107 icmp_seq=4 Destination Host Unreachable ^C --- 89.105.249.138 ping statistics --- 5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4001ms , pipe 2 |
#ping 89.105.249.137
PING 89.105.249.137 (89.105.249.137) 56(84) bytes of data. 64 bytes from 89.105.249.137: icmp_seq=1 ttl=54 time=33.5 ms ^C --- 89.105.249.137 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 33.522/33.522/33.522/0.000 ms |
#rndc flush
bash: rndc: command not found |
#apt-cache search rndc
libisccfg50 - Config File Handling Library used by BIND libisccc50 - Command Channel Library used by BIND |
#apt-get install libisccc50
Reading package lists... Done Building dependency tree Reading state information... Done libisccc50 is already the newest version. libisccc50 set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#ssh 192.168.15.5
Linux linux5 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 16:18:54 2009 from linux13.unix.nt |
#exit
exit Connection to 192.168.15.5 closed. |
#openvt
|
#openvt
|
#openvt
|
#openvt
|
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 * 255.255.255.0 U 0 0 0 eth0 192.168.207.0 * 255.255.255.0 U 0 0 0 eth0.207 192.168.107.0 * 255.255.255.0 U 0 0 0 eth0.107 default 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#ssh 10.0.35.100
root@10.0.35.100's password: Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Jun 4 11:13:25 2009 from 192.168.201.2 l3-agent is already running: pid=4804; pidfile=/root/.lilalo/l3-agent.pid |
#finch
â - General da â ⯠Dimedrol â ⯠ex3mer â â Utyf â ⯠Vadik_M â ⯠xMorpheus â ⯠Zek â- Work â â â AlEX ââ ... â ⯠ÐллÑÑÑâAc ⯠Ivanov A. âStatus: Not Available: УХÐ!!!! â ⯠ÐикÑÑаââ ââ â¯ Ð¤ÐµÑ ââ ââ â â ⯠d.r.i.m.f â ⯠Ivanov A. |
#iptables-save
|
#cat 1
# Generated by iptables-save v1.4.3.2 on Thu Jun 4 10:35:20 2009 *filter :INPUT ACCEPT [12076:2356701] :FORWARD ACCEPT [16802:7219161] :OUTPUT ACCEPT [14179:7099059] COMMIT # Completed on Thu Jun 4 10:35:20 2009 # Generated by iptables-save v1.4.3.2 on Thu Jun 4 10:35:20 2009 *nat :PREROUTING ACCEPT [957:64898] :POSTROUTING ACCEPT [110:6736] :OUTPUT ACCEPT [361:21785] -A POSTROUTING -j MASQUERADE COMMIT # Completed on Thu Jun 4 10:35:20 2009 |
#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=2.62 ms 64 bytes from 10.0.35.100: icmp_seq=2 ttl=62 time=0.234 ms 64 bytes from 10.0.35.100: icmp_seq=3 ttl=62 time=0.235 ms ^C --- 10.0.35.100 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.234/1.032/2.627/1.127 ms |
#iptables-save
# Generated by iptables-save v1.4.3.2 on Thu Jun 4 11:42:00 2009 *nat :PREROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] :OUTPUT ACCEPT [1:228] -A POSTROUTING -j MASQUERADE COMMIT # Completed on Thu Jun 4 11:42:00 2009 # Generated by iptables-save v1.4.3.2 on Thu Jun 4 11:42:00 2009 *filter :INPUT ACCEPT [9:660] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [9:1172] COMMIT # Completed on Thu Jun 4 11:42:00 2009 |
#ping 89.105.249.137
PING 89.105.249.137 (89.105.249.137) 56(84) bytes of data. 64 bytes from 89.105.249.137: icmp_seq=1 ttl=54 time=39.7 ms 64 bytes from 89.105.249.137: icmp_seq=2 ttl=54 time=35.8 ms 64 bytes from 89.105.249.137: icmp_seq=3 ttl=54 time=41.0 ms ^C --- 89.105.249.137 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 35.822/38.872/41.081/2.239 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.231 ms 64 bytes from 10.0.35.1: icmp_seq=2 ttl=63 time=0.222 ms ^C --- 10.0.35.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.222/0.226/0.231/0.015 ms |
#which hald
/usr/sbin/hald |
#ping 89.105.249.138
PING 89.105.249.138 (89.105.249.138) 56(84) bytes of data. 64 bytes from 89.105.249.138: icmp_seq=1 ttl=53 time=92.2 ms 64 bytes from 89.105.249.138: icmp_seq=2 ttl=53 time=114 ms 64 bytes from 89.105.249.138: icmp_seq=3 ttl=53 time=56.6 ms 64 bytes from 89.105.249.138: icmp_seq=4 ttl=53 time=54.0 ms ^C --- 89.105.249.138 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3004ms rtt min/avg/max/mdev = 54.063/79.470/114.887/25.411 ms |
#ping 89.105.249.139
PING 89.105.249.139 (89.105.249.139) 56(84) bytes of data. ^C --- 89.105.249.139 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2016ms |
# Generated by iptables-save v1.4.3.2 on Thu Jun 4 10:35:20 2009 *filter :INPUT ACCEPT [12076:2356701] :FORWARD ACCEPT [16802:7219161] :OUTPUT ACCEPT [14179:7099059] COMMIT # Completed on Thu Jun 4 10:35:20 2009 # Generated by iptables-save v1.4.3.2 on Thu Jun 4 10:35:20 2009 *nat :PREROUTING ACCEPT [957:64898] :POSTROUTING ACCEPT [110:6736] :OUTPUT ACCEPT [361:21785] -A POSTROUTING -j MASQUERADE COMMIT # Completed on Thu Jun 4 10:35:20 2009
Время первой команды журнала | 10:18:14 2009- 6- 4 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:42:19 2009- 6- 4 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 11.88 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.40 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.20 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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