/l3/users/18-01-2010/nt-fbsdnet/fbsd7.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 |
|
#dig @192.168.16.254 net.nt axfr
host175.net.nt. 604800 IN A 192.168.16.175 host176.net.nt. 604800 IN A 192.168.16.176 host177.net.nt. 604800 IN A 192.168.16.177 host178.net.nt. 604800 IN A 192.168.16.178 host179.net.nt. 604800 IN A 192.168.16.179 host180.net.nt. 604800 IN A 192.168.16.180 host181.net.nt. 604800 IN A 192.168.16.181 host182.net.nt. 604800 IN A 192.168.16.182 host183.net.nt. 604800 IN A 192.168.16.183 host184.net.nt. 604800 IN A 192.168.16.184 ... debian11.js.net.nt. 604800 IN A 192.168.16.11 nz.net.nt. 604800 IN NS debian4.nz.net.nt. debian4.nz.net.nt. 604800 IN A 192.168.16.4 win.net.nt. 604800 IN NS dc.win.net.nt. dc.win.net.nt. 604800 IN A 192.168.16.150 net.nt. 604800 IN SOA debian.net.nt. sergey\.cherepenin.gmail.com. 21 604800 86400 2419200 604800 ;; Query time: 64 msec ;; SERVER: 192.168.16.254#53(192.168.16.254) ;; WHEN: Thu Jan 21 11:27:37 2010 ;; XFR size: 256 records (messages 1) |
#dig @192.168.16.254 net.nt axfr | less
|
#dig @192.168.16.254 net.nt mx
; <<>> DiG 9.3.4-P1 <<>> @192.168.16.254 net.nt mx ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44829 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2 ;; QUESTION SECTION: ;net.nt. IN MX ;; ANSWER SECTION: net.nt. 604800 IN MX 5 debian13.net.nt. ;; AUTHORITY SECTION: net.nt. 604800 IN NS debian.net.nt. ;; ADDITIONAL SECTION: debian13.net.nt. 604800 IN A 192.168.16.13 debian.net.nt. 604800 IN A 192.168.16.254 ;; Query time: 0 msec ;; SERVER: 192.168.16.254#53(192.168.16.254) ;; WHEN: Thu Jan 21 11:28:05 2010 ;; MSG SIZE rcvd: 102 |
#nslookup net.nt
Server: 192.168.16.254 Address: 192.168.16.254#53 *** Can't find net.nt: No answer õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#nslookup -t ns net.nt
![]() *** Invalid option: t nslookup: couldn't get address for 'net.nt': not found |
#nslookup
> net.nt Server: 192.168.16.254 Address: 192.168.16.254#53 *** Can't find net.nt: No answer > debian.net.nt Server: 192.168.16.254 Address: 192.168.16.254#53 Name: debian.net.nt Address: 192.168.16.254 > set type=ns ... > net.nt Server: 192.168.16.254 Address: 192.168.16.254#53 *** Can't find net.nt: No answer > debian.net.nt Server: 192.168.16.254 Address: 192.168.16.254#53 Name: debian.net.nt Address: 192.168.16.254 > exit |
#cat /etc/resolv.conf
domain net.nt nameserver 192.168.16.254 |
#ping debian13
![]() PING debian13.net.nt (192.168.16.13): 56 data bytes ^C --- debian13.net.nt ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss |
#whois
![]() usage: whois [-aAbdfgiIklmQrR6] [-c country-code | -h hostname] [-p port] name ... |
#whois nt.ua | less
|
#whois CHE-RIPE
Whois Server Version 2.0 Domain names in the .com and .net domains can now be registered with many different competing registrars. Go to http://www.internic.net for detailed information. No match for "CHE-RIPE". >>> Last update of whois database: Thu, 21 Jan 2010 09:37:15 UTC <<< NOTICE: The expiration date displayed in this record is the date the registrar's sponsorship of the domain name registration in the registry is currently set to expire. This date does not necessarily reflect the expiration date of the domain name registrant's agreement with the sponsoring ... prohibited without the prior written consent of VeriSign. You agree not to use electronic processes that are automated and high-volume to access or query the Whois database except as reasonably necessary to register domain names or modify existing registrations. VeriSign reserves the right to restrict your access to the Whois database in its sole discretion to ensure operational stability. VeriSign may restrict or terminate your access to the Whois database for failure to abide by these terms of use. VeriSign reserves the right to modify these terms at any time. The Registry database contains ONLY .COM, .NET, .EDU domains and Registrars. |
#whois CHE14-UANIC
Whois Server Version 2.0 Domain names in the .com and .net domains can now be registered with many different competing registrars. Go to http://www.internic.net for detailed information. No match for "CHE14-UANIC". >>> Last update of whois database: Thu, 21 Jan 2010 09:37:30 UTC <<< NOTICE: The expiration date displayed in this record is the date the registrar's sponsorship of the domain name registration in the registry is currently set to expire. This date does not necessarily reflect the expiration date of the domain name registrant's agreement with the sponsoring ... prohibited without the prior written consent of VeriSign. You agree not to use electronic processes that are automated and high-volume to access or query the Whois database except as reasonably necessary to register domain names or modify existing registrations. VeriSign reserves the right to restrict your access to the Whois database in its sole discretion to ensure operational stability. VeriSign may restrict or terminate your access to the Whois database for failure to abide by these terms of use. VeriSign reserves the right to modify these terms at any time. The Registry database contains ONLY .COM, .NET, .EDU domains and Registrars. |
#whois nt.ua | less
|
#whois CHE14-UANIC | less
|
#whois nt.ua | less
|
#whois CHE14-UANIC
Whois Server Version 2.0 Domain names in the .com and .net domains can now be registered with many different competing registrars. Go to http://www.internic.net for detailed information. No match for "CHE14-UANIC". >>> Last update of whois database: Thu, 21 Jan 2010 09:38:01 UTC <<< NOTICE: The expiration date displayed in this record is the date the registrar's sponsorship of the domain name registration in the registry is currently set to expire. This date does not necessarily reflect the expiration date of the domain name registrant's agreement with the sponsoring ... prohibited without the prior written consent of VeriSign. You agree not to use electronic processes that are automated and high-volume to access or query the Whois database except as reasonably necessary to register domain names or modify existing registrations. VeriSign reserves the right to restrict your access to the Whois database in its sole discretion to ensure operational stability. VeriSign may restrict or terminate your access to the Whois database for failure to abide by these terms of use. VeriSign reserves the right to modify these terms at any time. The Registry database contains ONLY .COM, .NET, .EDU domains and Registrars. |
#man whois
|
#whois -c UA CHE14-UANIC
% This is the Ukrainian Whois query server #B. % Rights restricted by copyright. % nic-handle: CHE14-UANIC person: Sergey Cherepenin address: Borovikovskogo bvd, 16 address: 36023 POLTAVA address: UA phone: +380 (68) 1551661 e-mail: sergey.cherepenin@gmail.com mnt-by: NONE changed: CHE14-UANIC 20090318174146 source: UANIC |
#whois nt.ua | grep gmail
e-mail: sergey.cherepenin@gmail.com |
#whois 19.0.0.0
OrgName: Ford Motor Company OrgID: FORDMO Address: P.O. Box 2053, RM E-1121 City: Dearborn StateProv: MI PostalCode: 48121-2053 Country: US NetRange: 19.0.0.0 - 19.255.255.255 CIDR: 19.0.0.0/8 NetName: FINET ... OrgTechHandle: ZF4-ARIN OrgTechName: DNS Administrator OrgTechPhone: +1-313-390-3476 OrgTechEmail: dnsadmin@ford.com # ARIN WHOIS database, last updated 2010-01-20 20:00 # Enter ? for additional hints on searching ARIN's WHOIS database. # # ARIN WHOIS data and services are subject to the Terms of Use # available at https://www.arin.net/whois_tou.html õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#whois 14.0.0.0
OrgName: Internet Assigned Numbers Authority OrgID: IANA Address: 4676 Admiralty Way, Suite 330 City: Marina del Rey StateProv: CA PostalCode: 90292-6695 Country: US NetRange: 14.0.0.0 - 14.255.255.255 CIDR: 14.0.0.0/8 NetName: RESERVED-14 ... OrgAbuseEmail: abuse@iana.org OrgTechHandle: IANA-IP-ARIN OrgTechName: Internet Corporation for Assigned Names and Number OrgTechPhone: +1-310-301-5820 OrgTechEmail: abuse@iana.org # ARIN WHOIS database, last updated 2010-01-20 20:00 # Enter ? for additional hints on searching ARIN's WHOIS database. # # ARIN WHOIS data and services are subject to the Terms of Use # available at https://www.arin.net/whois_tou.html |
#whois 16.0.0.0
OrgName: Hewlett-Packard Company OrgID: HP Address: 3000 Hanover Street City: Palo Alto StateProv: CA PostalCode: 94304 Country: US NetRange: 16.0.0.0 - 16.255.255.255 CIDR: 16.0.0.0/8 NetName: HP-16 ... RTechEmail: ipaddr@hp.com OrgTechHandle: HH15-ORG-ARIN OrgTechName: Hewlett-Packard Company OrgTechPhone: +1-800-524-7638 OrgTechEmail: ipaddr@hp.com # ARIN WHOIS database, last updated 2010-01-20 20:00 # Enter ? for additional hints on searching ARIN's WHOIS database. # # ARIN WHOIS data and services are subject to the Terms of Use # available at https://www.arin.net/whois_tou.html |
#whois 16.0.0.0 | less
|
#whois 11.0.0.0 | less
|
#whois 12.0.0.0 | less
|
#whois 13.0.0.0 | less
|
#whois 14.0.0.0 | less
|
#whois 15.0.0.0 | less
|
#whois 16.0.0.0 | less
|
#whois 17.0.0.0 | less
|
#whois 18.0.0.0 | less
|
#whois 9.0.0.0 | less
|
#whois 8.0.0.0 | less
|
#whois 7.0.0.0 | less
|
#whois 6.0.0.0 | less
|
#whois 5.0.0.0 | less
|
#whois 6.0.0.0 | less
|
#whois 5.0.0.0 | less
|
#whois 4.0.0.0 | less
|
#whois 3.0.0.0 | less
|
#whois 2.0.0.0 | less
|
#whois 1.0.0.0 | less
|
#whois 0.0.0.0 | less
|
#whois 10.0.0.0 | less
|
#w
w whatis wnckprop wait whereis word-list-compress wall which wpa_cli watch while wpa_passphrase watchdog who wpa_supplicant watchdogd whoami write watchgnupg whois wrjpgcom wc wicontrol wsdl wftopfa window wsdl2 wget wire-test what wlconfig |
#lynx
![]() |
#lin
![]() linc-cleanup-sockets link linc-config lint |
#lin
![]() linc-cleanup-sockets link linc-config lint |
#link
![]() usage: ln [-Ffhinsv] source_file [target_file] ln [-Ffhinsv] source_file ... target_dir link source_file target_file |
#wget -c standards.ieee.org/regauth/oui/oui.txt standards.ieee.o
![]() |
#wget -c standards.ieee.org/regauth/oui/oui.txt
--11:46:48-- http://standards.ieee.org/regauth/oui/oui.txt => `oui.txt' òÁÓÐÏÚÎÁ£ÔÓÑ standards.ieee.org... 140.98.193.16 õÓÔÁÎÁ×ÌÉ×ÁÅÔÓÑ ÓÏÅÄÉÎÅÎÉÅ Ó standards.ieee.org|140.98.193.16|:80... ÓÏÅÄÉÎÅÎÉÅ ÕÓÔÁÎÏ×ÌÅÎÏ. úÁÐÒÏÓ HTTP ÐÏÓÌÁÎ, ÏÖÉÄÁÅÔÓÑ ÏÔ×ÅÔ... 200 OK äÌÉÎÁ: 2 120 977 (2,0M) [text/plain] 100%[====================================>] 2 120 977 169,54K/s ETA 00:00 11:47:03 (191,88 KB/s) - `oui.txt' ÓÏÈÒÁΣΠ[2120977/2120977] |
#df -h
Filesystem Size Used Avail Capacity Mounted on /dev/ad0s1a 1.9G 103M 1.7G 6% / devfs 1.0K 1.0K 0B 100% /dev /dev/ad0s2e 496M 126K 456M 0% /tmp /dev/ad0s2f 3.4G 2.8G 366M 89% /usr /dev/ad0s2d 1.9G 41M 1.7G 2% /var |
#grep -i ukraine oui.txt
UKRAINE UKRAINE |
#grep -i ukraine oui.txt -A 2 -B 2
Lustdorfskaya doroga, 162 Odessa 65115 UKRAINE 00-11-47 (hex) Secom-Industry co.LTD. -- 4D ZHUKOVA BLV. ODESSA 65121 UKRAINE 00-1A-7A (hex) Lismore Instruments Limited |
#grep -i ukraine oui.txt -A 2 -
![]() |
#vim oui.txt
|
#search hit BOTTOM, continuing at TOP
![]() õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#vim .bashrc
|
#~
export PS1 ] \ && PS1='\[\033[0;31m\]'$PS1'\[\033[0m\] |
#:q!
|
#scp .lilalo/l3bashrc 192.168.16.32:/tmp
Enter passphrase for key '/root/.ssh/id_rsa': l3bashrc 100% 7522 7.4KB/s 00:00 |
#scp -r /etc 192.168.16.32:/tmp
![]() hcsecd 100% 680 0.7KB/s 00:00 hostapd 100% 376 0.4KB/s 00:00 hostname 100% 2633 2.6KB/s 00:00 ike 100% 312 0.3KB/s 00:00 inetd 100% 418 0.4KB/s 00:00 initrandom 100% 1632 1.6KB/s 00:00 ip6addrctl 100% 1600 1.6KB/s 00:00 ip6fw 100% 1337 1.3KB/s 00:00 ipfilter 100% 2804 2.7KB/s 00:00 ipfs 100% 1085 1.1KB/s 00:00 ... mac.conf 100% 564 0.6KB/s 00:00 motd 100% 1110 1.1KB/s 00:00 network.subr 100% 18KB 18.2KB/s 00:00 networks 100% 365 0.4KB/s 00:00 newsyslog.conf 100% 1947 1.9KB/s 00:00 portsnap.conf 100% 1367 1.3KB/s 00:00 pf.conf 100% 3775 3.7KB/s 00:00 pf.os 100% 28KB 27.7KB/s 00:00 phones 100% 293 0.3KB/s 00:00 profile 100% 619 0.6KB/s 00:00 |
#scp -r /etc 192.168.16.32:/tmp
![]() õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#nc 192.168.16.254 22
![]() SSH-2.0-OpenSSH_5.1p1 Debian-2 ^C |
#nc 192.168.16.254 53
![]() ^C |
#nc 192.168.16.254 110
![]() |
#nc 192.168.16.254 22
![]() SSH-2.0-OpenSSH_5.1p1 Debian-2 ^C |
#telnet
![]() telnet> ^C |
#telnet 192.168.16.254 22
Trying 192.168.16.254... Connected to debian.net.nt. Escape character is '^]'. SSH-2.0-OpenSSH_5.1p1 Debian-2 ^] telnet> q Connection closed. |
#telnet 192.168.16.254 53
Trying 192.168.16.254... Connected to debian.net.nt. Escape character is '^]'. a? ^] telnet> q Connection closed. |
#telnet 192.168.16.254 3128
Trying 192.168.16.254... Connected to debian.net.nt. Escape character is '^]'. ^] telnet> q Connection closed. |
#sockstat -4l | less
|
#sockstat -4l | grep :53
![]() |
#grep named /etc/defaults/rc.conf
# named. It may be possible to run named in a sandbox, man security for named_enable="NO" # Run named, the DNS server (or NO). named_program="/usr/sbin/named" # path to named, if you want a different one. #named_flags="" # Flags for named named_pidfile="/var/run/named/pid" # Must set this in named.conf as well named_uid="bind" # User to run named as named_chrootdir="/var/named" # Chroot directory (or "" not to auto-chroot it) named_chroot_autoupdate="YES" # Automatically install/update chrooted # components of named. See /etc/rc.d/named. named_symlink_enable="YES" # Symlink the chrooted pid file |
#echo "named_enable=\"YES\"" >> /etc/rc.conf
|
#/etc/rc.d/named start
wrote key file "/var/named/etc/namedb/rndc.key" Starting named. õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#sockstat -4l | grep :53
bind named 71679 20 udp4 127.0.0.1:53 *:* bind named 71679 21 tcp4 127.0.0.1:53 *:* |
#nc 127.0.0.1 53
![]() ^]^C |
#dig @127.0.0.1 net.nt ns
; <<>> DiG 9.3.4-P1 <<>> @127.0.0.1 net.nt ns ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 44416 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;net.nt. IN NS ;; AUTHORITY SECTION: . 10800 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2010012001 1800 900 604800 86400 ;; Query time: 85 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Jan 21 15:03:37 2010 ;; MSG SIZE rcvd: 99 |
#vim /etc/namedb/
![]() |
#vim /etc/namedb/named.conf
--- /tmp/l3-saved-69874.23320.13075 2010-01-21 15:04:18.000000000 +0200 +++ /etc/namedb/named.conf 2010-01-21 15:05:04.000000000 +0200 @@ -42,11 +42,11 @@ // If you've got a DNS server around at your upstream provider, enter // its IP address here, and enable the line below. This will make you // benefit from its cache, thus reduce overall DNS traffic in the Internet. -/* + forwarders { - 127.0.0.1; + 192.168.16.254; }; -*/ + /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source |
#pss aux | grep named
![]() bash: pss: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ |
#ps aux | grep named
bind 71679 0,0 0,7 4428 3592 ?? Is 15:01 0:00,06 /usr/sbin/named - |
#kill -1 71679
|
#tail /var/log/messages
Jan 19 16:28:12 fbsd7 xinetd[40715]: Started working: 2 available services Jan 19 16:29:13 fbsd7 xinetd[40715]: Exiting... Jan 19 16:29:13 fbsd7 xinetd[40864]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in. Jan 19 16:29:13 fbsd7 xinetd[40864]: Started working: 2 available services Jan 20 12:14:10 fbsd7 kernel: ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding disabled, default to deny, logging disabled Jan 20 16:34:15 fbsd7 sshd[49279]: error: PAM: authentication error for root from fbsd32.net.nt Jan 21 15:01:31 fbsd7 named[71679]: starting BIND 9.3.4-P1 -t /var/named -u bind Jan 21 15:01:31 fbsd7 named[71679]: command channel listening on 127.0.0.1#953 Jan 21 15:01:31 fbsd7 named[71679]: command channel listening on ::1#953 Jan 21 15:01:31 fbsd7 named[71679]: running |
#date
ÞÅÔ×ÅÒÇ, 21 ÑÎ×ÁÒÑ 2010 Ç. 15:05:42 (EET) |
#dig @127.0.0.1 net.nt ns
; <<>> DiG 9.3.4-P1 <<>> @127.0.0.1 net.nt ns ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 40911 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;net.nt. IN NS ;; AUTHORITY SECTION: . 10665 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2010012001 1800 900 604800 86400 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Jan 21 15:05:52 2010 ;; MSG SIZE rcvd: 99 |
#/etc/rc.d/named restart
Stopping named. Starting named. |
#dig @127.0.0.1 net.nt ns
; <<>> DiG 9.3.4-P1 <<>> @127.0.0.1 net.nt ns ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42048 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; QUESTION SECTION: ;net.nt. IN NS ;; ANSWER SECTION: net.nt. 604800 IN NS debian.net.nt. ;; ADDITIONAL SECTION: debian.net.nt. 604800 IN A 192.168.16.254 ;; Query time: 18 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Jan 21 15:06:05 2010 ;; MSG SIZE rcvd: 61 |
#dig @127.0.0.1 sergey.net.nt ns
; <<>> DiG 9.3.4-P1 <<>> @127.0.0.1 sergey.net.nt ns ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 54217 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;sergey.net.nt. IN NS ;; AUTHORITY SECTION: net.nt. 10800 IN SOA debian.net.nt. sergey\.cherepenin.gmail.com. 21 604800 86400 2419200 604800 ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Jan 21 15:07:00 2010 ;; MSG SIZE rcvd: 101 |
#dig @192.168.16.254 sergey.net.nt ns
; <<>> DiG 9.3.4-P1 <<>> @192.168.16.254 sergey.net.nt ns ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 19420 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;sergey.net.nt. IN NS ;; AUTHORITY SECTION: net.nt. 604800 IN SOA debian.net.nt. sergey\.cherepenin.gmail.com. 21 604800 86400 2419200 604800 ;; Query time: 1 msec ;; SERVER: 192.168.16.254#53(192.168.16.254) ;; WHEN: Thu Jan 21 15:07:31 2010 ;; MSG SIZE rcvd: 101 |
#ssh 192.168.16.254
Connection to 192.168.16.254 closed. |
#ssh 192.168.16.254
18 ; "/etc/bind/db.net.nt" 309L, 9177C 19 ; 20 nz.net.nt. NS debian4.nz 21 debian4.nz A 192.168.16.4 22 ; 23 amel.net.nt. NS debian7.amel 24 debian7.amel A 192.168.16.7 25 ; 26 js.net.nt. NS debian11.js 27 debian11.js A 192.168.16.11 28 ; 29 ; 30 ;sid.net.nt. NS deb5.sid 31 ;deb5.sid A 192.168.16.5 32 ; 33 ; 34 ;alex.net.nt. NS hostA.alex |
#d
![]() bash: d: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ |
#ps aux | grep screen
root 72159 9,2 0,3 2104 1768 ?? Rs 15:09 0:05,07 screen root 32111 0,0 0,3 2012 1612 p2 S+ ×Ô14 0:00,34 screen root 72325 0,0 0,3 2012 1620 p8 S+ 15:23 0:00,01 screen -x |
#kill -9 72159
|
#screen -x
![]() |
#screen -w
![]() |
domain net.nt nameserver 192.168.16.254
Время первой команды журнала | 10:26:56 2010- 1-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:23:55 2010- 1-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 13.86 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.95 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 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