/l3/users/29-05-2007/nt-lnet/linux2.net.nt/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 |
|
#ls -l
итого 14 -rw-r--r-- 1 root root 237 2007-01-29 15:35 db.0 -rw-r--r-- 1 root root 271 2007-01-29 15:35 db.127 -rw-r--r-- 1 root bind 0 2007-06-01 11:09 db.16.168.192 -rw-r--r-- 1 root root 237 2007-01-29 15:35 db.255 -rw-r--r-- 1 root root 353 2007-01-29 15:35 db.empty -rw-r--r-- 1 root root 256 2007-01-29 15:35 db.local -rw-r--r-- 1 root root 1507 2007-01-29 15:35 db.root -rw-r--r-- 1 root bind 0 2007-06-01 11:08 db.svl.net.nt -rw-r--r-- 1 root bind 1850 2007-06-01 11:07 named.conf -rw-r--r-- 1 root bind 165 2007-01-29 15:35 named.conf.local -rw-r--r-- 1 root bind 695 2007-01-29 15:35 named.conf.options -rw-r----- 1 bind bind 77 2007-06-01 10:32 rndc.key -rw-r--r-- 1 root root 1317 2007-01-29 15:35 zones.rfc1918 |
#vim db.16.168.192
|
#vim db.svl.net.nt
0a1,60 > $TTL 24 > @ SOA svl.net.nt. user.svl.net.nt. 2007060101 > ( > 10h > 1h > 1w > 1h > ) > > > host50.svl.net.nt. A 192.168.16.50 > host51.svl.net.nt. A 192.168.16.51 > host52.svl.net.nt. A 192.168.16.52 > host53.svl.net.nt. A 192.168.16.53 > host54.svl.net.nt. A 192.168.16.54 > host55.svl.net.nt. A 192.168.16.55 > host56.svl.net.nt. A 192.168.16.56 > host57.svl.net.nt. A 192.168.16.57 > host58.svl.net.nt. A 192.168.16.58 > host59.svl.net.nt. A 192.168.16.59 > host60.svl.net.nt. A 192.168.16.60 > host61.svl.net.nt. A 192.168.16.61 > host62.svl.net.nt. A 192.168.16.62 > host63.svl.net.nt. A 192.168.16.63 > host64.svl.net.nt. A 192.168.16.64 > host65.svl.net.nt. A 192.168.16.65 > host66.svl.net.nt. A 192.168.16.66 > host67.svl.net.nt. A 192.168.16.67 > host68.svl.net.nt. A 192.168.16.68 > host69.svl.net.nt. A 192.168.16.69 > host70.svl.net.nt. A 192.168.16.70 > host71.svl.net.nt. A 192.168.16.71 > host72.svl.net.nt. A 192.168.16.72 > host73.svl.net.nt. A 192.168.16.73 > host74.svl.net.nt. A 192.168.16.74 > host75.svl.net.nt. A 192.168.16.75 > host76.svl.net.nt. A 192.168.16.76 > host77.svl.net.nt. A 192.168.16.77 > host78.svl.net.nt. A 192.168.16.78 > host79.svl.net.nt. A 192.168.16.79 > host80.svl.net.nt. A 192.168.16.80 > host81.svl.net.nt. A 192.168.16.81 > host82.svl.net.nt. A 192.168.16.82 > host83.svl.net.nt. A 192.168.16.83 > host84.svl.net.nt. A 192.168.16.84 > host85.svl.net.nt. A 192.168.16.85 > host86.svl.net.nt. A 192.168.16.86 > host87.svl.net.nt. A 192.168.16.87 > host88.svl.net.nt. A 192.168.16.88 > host89.svl.net.nt. A 192.168.16.89 > host90.svl.net.nt. A 192.168.16.90 > host91.svl.net.nt. A 192.168.16.91 > host92.svl.net.nt. A 192.168.16.92 > host93.svl.net.nt. A 192.168.16.93 > host94.svl.net.nt. A 192.168.16.94 > host95.svl.net.nt. A 192.168.16.95 > host96.svl.net.nt. A 192.168.16.96 > host97.svl.net.nt. A 192.168.16.97 > host98.svl.net.nt. A 192.168.16.98 > host99.svl.net.nt. A 192.168.16.99 |
#vim db.16.168.192
0a1,3 > $TTL 24 > > |
#vimdiff db.16.168.192 db.
db.0 db.127 db.16.168.192 db.255 db.empty db.local db.root db.svl.net.nt |
#vimdiff db.16.168.192 db.127
| | | | | | | | | | ... ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ |
#ls /etc/bind/
db.0 db.16.168.192 db.empty db.root named.conf named.conf.options zones.rfc1918 db.127 db.255 db.local db.test.net.nt named.conf.local rndc.key |
#vim db.16.168.192
2c2,61 < @ --- > 16.168.192.in-addr.arpa. IN SOA svl.net.nt. user.svl.net.nt. 2007060101 > ( > 10h > 1h > 1w > 1h > > > NS 192.168.16.2 > > PTR host50.svl.net.nt. > PTR host51.svl.net.nt. > PTR host52.svl.net.nt. > PTR host53.svl.net.nt. > PTR host54.svl.net.nt. > PTR host55.svl.net.nt. > PTR host56.svl.net.nt. > PTR host57.svl.net.nt. > PTR host58.svl.net.nt. > PTR host59.svl.net.nt. > PTR host60.svl.net.nt. > PTR host61.svl.net.nt. > PTR host62.svl.net.nt. > PTR host63.svl.net.nt. > PTR host64.svl.net.nt. > PTR host65.svl.net.nt. > PTR host66.svl.net.nt. > PTR host67.svl.net.nt. > PTR host68.svl.net.nt. > PTR host69.svl.net.nt. > PTR host70.svl.net.nt. > PTR host71.svl.net.nt. > PTR host72.svl.net.nt. > PTR host73.svl.net.nt. > PTR host74.svl.net.nt. > PTR host75.svl.net.nt. > PTR host76.svl.net.nt. > PTR host77.svl.net.nt. > PTR host78.svl.net.nt. > PTR host79.svl.net.nt. > PTR host80.svl.net.nt. > PTR host81.svl.net.nt. > PTR host82.svl.net.nt. > PTR host83.svl.net.nt. > PTR host84.svl.net.nt. > PTR host85.svl.net.nt. > PTR host86.svl.net.nt. > PTR host87.svl.net.nt. > PTR host88.svl.net.nt. > PTR host89.svl.net.nt. > PTR host90.svl.net.nt. > PTR host91.svl.net.nt. > PTR host92.svl.net.nt. > PTR host93.svl.net.nt. > PTR host94.svl.net.nt. > PTR host95.svl.net.nt. > PTR host96.svl.net.nt. > PTR host97.svl.net.nt. > PTR host98.svl.net.nt. > PTR host99.svl.net.nt. |
#cat /etc/bind/db.16.168.192
106 PTR host106.test.net.nt. 107 PTR host107.test.net.nt. 108 PTR host108.test.net.nt. 109 PTR host109.test.net.nt. 110 PTR host110.test.net.nt. 111 PTR host111.test.net.nt. 112 PTR host112.test.net.nt. 113 PTR host113.test.net.nt. 114 PTR host114.test.net.nt. 115 PTR host115.test.net.nt. ... 245 PTR host245.test.net.nt. 246 PTR host246.test.net.nt. 247 PTR host247.test.net.nt. 248 PTR host248.test.net.nt. 249 PTR host249.test.net.nt. 250 PTR host250.test.net.nt. 251 PTR host251.test.net.nt. 252 PTR host252.test.net.nt. 253 PTR host253.test.net.nt. 254 PTR host254.test.net.nt. |
#vim /etc/bind/db.16.168.192
|
#dig axfr 192.168.16.2
; <<>> DiG 9.3.4 <<>> axfr 192.168.16.2 ;; global options: printcmd ; Transfer failed. |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#dig axfr 192.168.16.4
dig: parse of /etc/resolv.conf failed |
#vim /etc/resolv.conf
1,2c1,2 < search net.nt test.net.nt test2.test.net.nt < nameserver 192.168.16.15 192.168.16.4 192.168.16.2 --- > search net.nt svl.net.nt okno.net.nt > nameserver 192.168.16.15 192.168.16.1 192.168.16.2 |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#dig axfr 192.168.16.4
dig: parse of /etc/resolv.conf failed |
#vim /etc/resolv.conf
2c2 < nameserver 192.168.16.15 192.168.16.1 192.168.16.2 --- > nameserver 192.168.16.15 192.168.16.2 192.168.16.1 |
#tail /etc/var/log
tail: невозможно открыть `/etc/var/log' для чтения: No such file or directory |
#tail /etc/v
vga/ vim/ |
#tail /var/l
lib/ local/ lock/ log/ lost+found/ |
#tail /var/lo
local/ lock/ log/ lost+found/ |
#tail /var/log/
tail: ошибка чтения `/var/log/': Is a directory |
#tail /var/log/b
boot btmp btmp.1 |
#tail /etc/var/log
1 1 28 host65.svl.net.nt. A 192.168.16.65 3 3 29 host66.svl.net.nt. A 192.168.16.66 5 5 30 host67.svl.net.nt. A 192.168.16.67 87 87 31 host68.svl.net.nt. A 192.168.16.68 89 89 32 host69.svl.net.nt. A 192.168.16.69 ... 41 host78.svl.net.nt. A 192.168.16.78 42 host79.svl.net.nt. A 192.168.16.79 43 host80.svl.net.nt. A 192.168.16.80 44 host81.svl.net.nt. A 192.168.16.81 45 host82.svl.net.nt. A 192.168.16.82 46 host83.svl.net.nt. A 192.168.16.83 47 host84.svl.net.nt. A 192.168.16.84 48 host85.svl.net.nt. A 192.168.16.85 49 host86.svl.net.nt. A 192.168.16.86 tail: невозможно открыть `/etc/var/log' для чтения: No such file or directory |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#vim /etc/resolv.conf
|
#dig axfr 192.168.16.4
dig: parse of /etc/resolv.conf failed |
#vim /etc/resolv.conf
|
#tail /var/log/daemon.log
Jun 1 11:48:15 linux2 named[4609]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 11:48:15 linux2 named[4609]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 11:48:15 linux2 named[4609]: dns_rdata_fromtext: /etc/bind/db.16.168.192:2: near eol: unexpected end of input Jun 1 11:48:15 linux2 named[4609]: zone 16.168.192.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unexpected end of input Jun 1 11:48:15 linux2 named[4609]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 11:48:15 linux2 named[4609]: zone localhost/IN: loaded serial 1 Jun 1 11:48:15 linux2 named[4609]: zone net.nt/IN: loaded serial 2007010933 Jun 1 11:48:15 linux2 named[4609]: dns_rdata_fromtext: /etc/bind/db.svl.net.nt:2: near eol: unexpected end of input Jun 1 11:48:15 linux2 named[4609]: zone svl.net.nt/IN: loading master file /etc/bind/db.svl.net.nt: unexpected end of input Jun 1 11:48:15 linux2 named[4609]: running |
#vim db.svl.net.nt
|
#ifconfig eth1:1 192.168.16.50 netmask 255.255.255.0
|
#ifconfig
eth1 Link encap:Ethernet HWaddr 00:D0:B7:CD:1B:CF inet addr:192.168.16.2 Bcast:192.168.16.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:25666 errors:0 dropped:0 overruns:0 frame:0 TX packets:20905 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:9807293 (9.3 MiB) TX bytes:1747808 (1.6 MiB) Base address:0xcc00 Memory:ff7e0000-ff800000 eth1:1 Link encap:Ethernet HWaddr 00:D0:B7:CD:1B:CF inet addr:192.168.16.50 Bcast:192.168.16.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Base address:0xcc00 Memory:ff7e0000-ff800000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:94 errors:0 dropped:0 overruns:0 frame:0 TX packets:94 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:7021 (6.8 KiB) TX bytes:7021 (6.8 KiB) |
#vim db.svl.net.nt
|
#ifconfig
eth1 Link encap:Ethernet HWaddr 00:D0:B7:CD:1B:CF inet addr:192.168.16.2 Bcast:192.168.16.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:25758 errors:0 dropped:0 overruns:0 frame:0 TX packets:20993 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:9831933 (9.3 MiB) TX bytes:1755607 (1.6 MiB) Base address:0xcc00 Memory:ff7e0000-ff800000 eth1:1 Link encap:Ethernet HWaddr 00:D0:B7:CD:1B:CF inet addr:192.168.16.50 Bcast:192.168.16.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Base address:0xcc00 Memory:ff7e0000-ff800000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:94 errors:0 dropped:0 overruns:0 frame:0 TX packets:94 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:7021 (6.8 KiB) TX bytes:7021 (6.8 KiB) |
#vim db.svl.net.nt
|
#vim db.16.168.192
10c10 < NS 192.168.16.2 --- > NS 192.168.16.50 |
#vim /etc/resolv.conf
2c2 < nameserver 192.168.16.15 192.168.16.2 192.168.16.1 --- > nameserver 192.168.16.15 192.168.16.50 192.168.16.1 |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#tail /var/log/daemon.log
Jun 1 11:54:39 linux2 named[4809]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 11:54:39 linux2 named[4809]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 11:54:39 linux2 named[4809]: dns_rdata_fromtext: /etc/bind/db.16.168.192:2: near eol: unexpected end of input Jun 1 11:54:39 linux2 named[4809]: zone 16.168.192.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unexpected end of input Jun 1 11:54:39 linux2 named[4809]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 11:54:39 linux2 named[4809]: zone localhost/IN: loaded serial 1 Jun 1 11:54:39 linux2 named[4809]: zone net.nt/IN: loaded serial 2007010933 Jun 1 11:54:39 linux2 named[4809]: dns_rdata_fromtext: /etc/bind/db.svl.net.nt:2: near eol: unexpected end of input Jun 1 11:54:39 linux2 named[4809]: zone svl.net.nt/IN: loading master file /etc/bind/db.svl.net.nt: unexpected end of input Jun 1 11:54:39 linux2 named[4809]: running |
#dig axfr 192.168.16.4
dig: parse of /etc/resolv.conf failed |
#dig axfr 192.168.16.50
dig: parse of /etc/resolv.conf failed |
#dig axfr 192.168.16.50
; <<>> DiG 9.3.4 <<>> axfr 192.168.16.50 ;; global options: printcmd ; Transfer failed. |
#vim /etc/resolv.conf
2c2 < nameserver 192.168.16.15 192.168.16.50 192.168.16.1 --- > nameserver 192.168.16.50 192.168.16.1 |
#dig @192.168.16.2 svl.net.nt axfr
dig: parse of /etc/resolv.conf failed |
#dig axfr 192.168.16.1
dig: parse of /etc/resolv.conf failed |
#vim /etc/bind/named.conf
|
#vim /etc/resolv.conf
2c2,3 < nameserver 192.168.16.50 192.168.16.1 --- > nameserver 192.168.16.50 > nameserver 192.168.16.15 |
#vim /etc/resolv.conf
2c2,3 < nameserver 192.168.16.50 192.168.16.1 --- > nameserver 192.168.16.50 > nameserver 192.168.16.15 |
#dig @192.168.16.2 svl.net.nt axfr
; <<>> DiG 9.3.4 <<>> @192.168.16.2 svl.net.nt axfr ; (1 server found) ;; global options: printcmd ; Transfer failed. |
#dig @192.168.16.2 svl.net.nt axfr
1 search net.nt svl.net.nt okno.net.nt 2 nameserver 192.168.16.50 E325nameserver 192.168.16.15 3 nameserver 192.168.16.1 ~ ; <<>> DiG 9.3.4 <<>> @192.168.16.2 svl.net.nt axfr ~ ; (1 server found) ~ ;; global options: printcmd ... ~ ~ ~ ~ ~ ~ ~ ~ ~ -- ВСТАВ W10: Предупреждение: Изменение файла с правами только 4,2 Весь |
#vim /etc/bind/named.conf
|
#:q
bash: :q: command not found |
#dig axfr 192.168.16.1
; <<>> DiG 9.3.4 <<>> axfr 192.168.16.1 ;; global options: printcmd ; Transfer failed. |
#dig axfr 192.168.16.50
; <<>> DiG 9.3.4 <<>> axfr 192.168.16.50 ;; global options: printcmd ; Transfer failed. |
#vim /etc/bind/named.conf.options
22a23 > allow-transfer { 192.168.16.0; } ; |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#dig axfr 192.168.16.50
; <<>> DiG 9.3.4 <<>> axfr 192.168.16.50 ;; global options: printcmd ; Transfer failed. |
#dig @192.168.16.2 svl.net.nt axfr
; <<>> DiG 9.3.4 <<>> @192.168.16.2 svl.net.nt axfr ; (1 server found) ;; global options: printcmd ; Transfer failed. |
#netstat -lnp | g
tcp 0 0 192.168.16.50:53 0.0.0.0:* LISTEN 5665/named tcp 0 0 192.168.16.2:53 0.0.0.0:* LISTEN 5665/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 5665/named udp 0 0 192.168.16.50:53 0.0.0.0:* 5665/named udp 0 0 192.168.16.2:53 0.0.0.0:* 5665/named udp 0 0 127.0.0.1:53 0.0.0.0:* 5665/named |
#vim /etc/bind/named.conf
|
#less /var//log/daemon.log
|
#vim /etc/bind/db.svl.net.nt
|
#screen
|
#ls
db.0 db.16.168.192 db.empty db.root named.conf named.conf.options zones.rfc1918 db.127 db.255 db.local db.svl.net.nt named.conf.local rndc.key |
#tail /var/log/daemon.log
[root@linux2:bind]# [root@linux2:bind]# [root@linux2:bind]# [root@linux2:bind]# ls db.0 db.16.168.192 db.empty db.root named.conf named.conf.options zones.rfc1918 db.127 db.255 db.local db.svl.net.nt named.conf.local rndc.key [root@linux2:bind]# tail /var/log/daemon.log Jun 1 12:02:46 linux2 named[5665]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:02:46 linux2 named[5665]: dns_rdata_fromtext: /etc/bind/db.16.168.192:2: near eol: unexpected end of input Jun 1 12:02:46 linux2 named[5665]: zone 16.168.192.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unexpected end of input ... Jun 1 12:02:46 linux2 named[5665]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:02:46 linux2 named[5665]: dns_rdata_fromtext: /etc/bind/db.16.168.192:2: near eol: unexpected end of input Jun 1 12:02:46 linux2 named[5665]: zone 16.168.192.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unexpected end of input Jun 1 12:02:46 linux2 named[5665]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:02:46 linux2 named[5665]: zone localhost/IN: loaded serial 1 Jun 1 12:02:46 linux2 named[5665]: zone net.nt/IN: loaded serial 2007010933 Jun 1 12:02:46 linux2 named[5665]: dns_rdata_fromtext: /etc/bind/db.svl.net.nt:2: near eol: unexpected end of input Jun 1 12:02:46 linux2 named[5665]: zone svl.net.nt/IN: loading master file /etc/bind/db.svl.net.nt: unexpected end of input Jun 1 12:02:46 linux2 named[5665]: running Jun 1 12:02:50 linux2 named[5665]: client 192.168.16.50#42841: bad zone transfer request: '192.168.16.50/IN': non-authoritative zone (NOTAUTH) |
#vim db.svl.net.nt
|
#/etc/init.d/bind9 restart
3 3 4 4 5 5 6 6 7 7 8 8 79 79 0 0 1 1 2 2 ... 1 1 2 2 3 3 "db.svl.net.nt" 62L, 1863C записано [root@linux2:bind]# /etc/init.d/bind9 restart Stopping domain name service...: bind. Starting domain name service...: bind. [root@linux2:bind]# tail /var/log/daemon.log Stopping domain name service...: bind. Starting domain name service...: bind. |
#tail /var/log/daemon.log
3 3 "db.svl.net.nt" 62L, 1863C записано [root@linux2:bind]# /etc/init.d/bind9 restart Stopping domain name service...: bind. Starting domain name service...: bind. [root@linux2:bind]# tail /var/log/daemon.log Jun 1 12:07:02 linux2 named[6022]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:07:02 linux2 named[6022]: dns_rdata_fromtext: /etc/bind/db.16.168.192:2: near eol: unexpected end of inpu ut Jun 1 12:07:02 linux2 named[6022]: zone 16.168.192.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: u ... Jun 1 12:07:02 linux2 named[6022]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:07:02 linux2 named[6022]: dns_rdata_fromtext: /etc/bind/db.16.168.192:2: near eol: unexpected end of input Jun 1 12:07:02 linux2 named[6022]: zone 16.168.192.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unexpected end of input Jun 1 12:07:02 linux2 named[6022]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:07:02 linux2 named[6022]: zone localhost/IN: loaded serial 1 Jun 1 12:07:02 linux2 named[6022]: zone net.nt/IN: loaded serial 2007010933 Jun 1 12:07:02 linux2 named[6022]: zone svl.net.nt/IN: loaded serial 2007060101 Jun 1 12:07:02 linux2 named[6022]: running Jun 1 12:07:02 linux2 named[6022]: zone svl.net.nt/IN: sending notifies (serial 2007060101) Jun 1 12:07:02 linux2 named[6022]: client 192.168.16.50#32784: received notify for zone 'svl.net.nt' |
#vim db.16.168.192
8c8 < --- > ) 10c10 < NS 192.168.16.50 --- > NS host50 |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#tail /var/log/daemon.log
39 PTR host77.svl.net.nt. 40 PTR host78.svl.net.nt. 41 PTR host79.svl.net.nt. 42 PTR host80.svl.net.nt. 43 PTR host81.svl.net.nt. 44 PTR host82.svl.net.nt. 45 PTR host83.svl.net.nt. 46 PTR host84.svl.net.nt. 47 PTR host85.svl.net.nt. 48 PTR host86.svl.net.nt. ... Jun 1 12:08:26 linux2 named[6081]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:08:26 linux2 named[6081]: dns_rdata_fromtext: /etc/bind/db.16.168.192:2: near eol: unexpected end of input Jun 1 12:08:26 linux2 named[6081]: zone 16.168.192.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unexpected end of input Jun 1 12:08:26 linux2 named[6081]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:08:26 linux2 named[6081]: zone localhost/IN: loaded serial 1 Jun 1 12:08:26 linux2 named[6081]: zone net.nt/IN: loaded serial 2007010933 Jun 1 12:08:26 linux2 named[6081]: zone svl.net.nt/IN: loaded serial 2007060101 Jun 1 12:08:26 linux2 named[6081]: running Jun 1 12:08:26 linux2 named[6081]: zone svl.net.nt/IN: sending notifies (serial 2007060101) Jun 1 12:08:26 linux2 named[6081]: client 192.168.16.50#32785: received notify for zone 'svl.net.nt' |
#vim db.16.168.192
2c2 < 16.168.192.in-addr.arpa. IN SOA svl.net.nt. user.svl.net.nt. 2007060101 --- > 16.168.192.in-addr.arpa. IN SOA svl.net.nt. user.svl.net.nt. 2007060101 8c8 < ) --- > ) 10c10 < NS host50 --- > NS host50 |
#vim db.16.168.192
2c2 < 16.168.192.in-addr.arpa. IN SOA svl.net.nt. user.svl.net.nt. 2007060101 --- > 16.168.192.in-addr.arpa. IN SOA svl.net.nt. user.svl.net.nt. 2007060102 |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#dig axfr 192.168.16.50
33 PTR host71.svl.net.nt. 34 PTR host72.svl.net.nt. 35 PTR host73.svl.net.nt. 36 PTR host74.svl.net.nt. 37 PTR host75.svl.net.nt. 38 PTR host76.svl.net.nt. 39 PTR host77.svl.net.nt. 40 PTR host78.svl.net.nt. 41 PTR host79.svl.net.nt. 42 PTR host80.svl.net.nt. ... 50 PTR host88.svl.net.nt. 51 PTR host89.svl.net.nt. 52 PTR host90.svl.net.nt. 53 PTR host91.svl.net.nt. 54 PTR host92.svl.net.nt. 55 PTR host93.svl.net.nt. 56 PTR host94.svl.net.nt. ; <<>> DiG 9.3.4 <<>> axfr 192.168.16.50 ;; global options: printcmd ; Transfer failed. |
#dig @192.168.16.2 svl.net.nt axfr
34 PTR host72.svl.net.nt. 35 PTR host73.svl.net.nt. 36 PTR host74.svl.net.nt. 37 PTR host75.svl.net.nt. 38 PTR host76.svl.net.nt. 39 PTR host77.svl.net.nt. 40 PTR host78.svl.net.nt. 41 PTR host79.svl.net.nt. 42 PTR host80.svl.net.nt. 43 PTR host81.svl.net.nt. ... 51 PTR host89.svl.net.nt. 52 PTR host90.svl.net.nt. 53 PTR host91.svl.net.nt. 54 PTR host92.svl.net.nt. 55 PTR host93.svl.net.nt. 56 PTR host94.svl.net.nt. ; <<>> DiG 9.3.4 <<>> @192.168.16.2 svl.net.nt axfr ; (1 server found) ;; global options: printcmd ; Transfer failed. |
#tail /var/lo
1 1 28 host65.svl.net.nt. A 192.168.16.65 3 3 29 host66.svl.net.nt. A 192.168.16.66 5 5 30 host67.svl.net.nt. A 192.168.16.67 87 87 31 host68.svl.net.nt. A 192.168.16.68 89 89 32 host69.svl.net.nt. A 192.168.16.69 ... 41 host78.svl.net.nt. A 192.168.16.78 42 host79.svl.net.nt. A 192.168.16.79 43 host80.svl.net.nt. A 192.168.16.80 44 host81.svl.net.nt. A 192.168.16.81 45 host82.svl.net.nt. A 192.168.16.82 46 host83.svl.net.nt. A 192.168.16.83 47 host84.svl.net.nt. A 192.168.16.84 48 host85.svl.net.nt. A 192.168.16.85 49 host86.svl.net.nt. A 192.168.16.86 local/ lock/ log/ lost+found/ |
#tail /var/log/daemon.log
Jun 1 12:10:14 linux2 named[6153]: zone 16.168.192.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unexpected end of input Jun 1 12:10:14 linux2 named[6153]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:10:14 linux2 named[6153]: zone localhost/IN: loaded serial 1 Jun 1 12:10:14 linux2 named[6153]: zone net.nt/IN: loaded serial 2007010933 Jun 1 12:10:14 linux2 named[6153]: zone svl.net.nt/IN: loaded serial 2007060101 Jun 1 12:10:14 linux2 named[6153]: zone svl.net.nt/IN: sending notifies (serial 2007060101) Jun 1 12:10:14 linux2 named[6153]: running Jun 1 12:10:14 linux2 named[6153]: client 192.168.16.50#32786: received notify for zone 'svl.net.nt' Jun 1 12:10:45 linux2 named[6153]: client 192.168.16.50#36653: bad zone transfer request: '192.168.16.50/IN': non-authoritative zone (NOTAUTH) Jun 1 12:12:22 linux2 named[6153]: client 192.168.16.2#37768: zone transfer 'svl.net.nt/AXFR/IN' denied |
#netstat -lnp | grep :53
35 PTR host73.svl.net.nt. 36 PTR host74.svl.net.nt. 37 PTR host75.svl.net.nt. 38 PTR host76.svl.net.nt. 39 PTR host77.svl.net.nt. 40 PTR host78.svl.net.nt. 41 PTR host79.svl.net.nt. 42 PTR host80.svl.net.nt. 43 PTR host81.svl.net.nt. 44 PTR host82.svl.net.nt. ... 53 PTR host91.svl.net.nt. 54 PTR host92.svl.net.nt. 55 PTR host93.svl.net.nt. 56 PTR host94.svl.net.nt. tcp 0 0 192.168.16.50:53 0.0.0.0:* LISTEN 6153/named tcp 0 0 192.168.16.2:53 0.0.0.0:* LISTEN 6153/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 6153/named udp 0 0 192.168.16.50:53 0.0.0.0:* 6153/named udp 0 0 192.168.16.2:53 0.0.0.0:* 6153/named udp 0 0 127.0.0.1:53 0.0.0.0:* 6153/named |
#/etc/init.d/bind9 restart
3 3 29 host66.svl.net.nt. A 192.168.16.66 5 5 30 host67.svl.net.nt. A 192.168.16.67 87 87 31 host68.svl.net.nt. A 192.168.16.68 89 89 32 host69.svl.net.nt. A 192.168.16.69 1 1 33 host70.svl.net.nt. A 192.168.16.70 ... 42 host79.svl.net.nt. A 192.168.16.79 43 host80.svl.net.nt. A 192.168.16.80 44 host81.svl.net.nt. A 192.168.16.81 45 host82.svl.net.nt. A 192.168.16.82 46 host83.svl.net.nt. A 192.168.16.83 47 host84.svl.net.nt. A 192.168.16.84 48 host85.svl.net.nt. A 192.168.16.85 49 host86.svl.net.nt. A 192.168.16.86 Stopping domain name service...: bind. Starting domain name service...: bind. |
#dig @192.168.16.2 svl.net.nt axfr
; <<>> DiG 9.3.4 <<>> @192.168.16.2 svl.net.nt axfr ; (1 server found) ;; global options: printcmd ; Transfer failed. |
#vim named.conf.options
|
#vim named.conf
|
#dig @192.168.16.2 svl.net.nt axfr
34 PTR host72.svl.net.nt. 35 PTR host73.svl.net.nt. 36 PTR host74.svl.net.nt. 37 PTR host75.svl.net.nt. 38 PTR host76.svl.net.nt. 39 PTR host77.svl.net.nt. 40 PTR host78.svl.net.nt. 41 PTR host79.svl.net.nt. 42 PTR host80.svl.net.nt. 43 PTR host81.svl.net.nt. ... 51 PTR host89.svl.net.nt. 52 PTR host90.svl.net.nt. 53 PTR host91.svl.net.nt. 54 PTR host92.svl.net.nt. 55 PTR host93.svl.net.nt. 56 PTR host94.svl.net.nt. ; <<>> DiG 9.3.4 <<>> @192.168.16.2 svl.net.nt axfr ; (1 server found) ;; global options: printcmd ; Transfer failed. |
#dig @192.168.16.2 net.nt axfr
34 PTR host72.svl.net.nt. 35 PTR host73.svl.net.nt. 36 PTR host74.svl.net.nt. 37 PTR host75.svl.net.nt. 38 PTR host76.svl.net.nt. 39 PTR host77.svl.net.nt. 40 PTR host78.svl.net.nt. 41 PTR host79.svl.net.nt. 42 PTR host80.svl.net.nt. 43 PTR host81.svl.net.nt. ... 51 PTR host89.svl.net.nt. 52 PTR host90.svl.net.nt. 53 PTR host91.svl.net.nt. 54 PTR host92.svl.net.nt. 55 PTR host93.svl.net.nt. 56 PTR host94.svl.net.nt. ; <<>> DiG 9.3.4 <<>> @192.168.16.2 net.nt axfr ; (1 server found) ;; global options: printcmd ; Transfer failed. |
#tail -f /var/log/daemon.log
Jun 1 12:14:13 linux2 named[6153]: shutting down: flushing changes Jun 1 12:14:13 linux2 named[6153]: stopping command channel on 127.0.0.1#953 Jun 1 12:14:13 linux2 named[6153]: no longer listening on 127.0.0.1#53 Jun 1 12:14:13 linux2 named[6153]: no longer listening on 192.168.16.2#53 Jun 1 12:14:13 linux2 named[6153]: no longer listening on 192.168.16.50#53 Jun 1 12:14:13 linux2 named[6153]: exiting Jun 1 12:14:15 linux2 named[6334]: starting BIND 9.3.4 -u bind Jun 1 12:14:15 linux2 named[6334]: found 2 CPUs, using 2 worker threads Jun 1 12:14:15 linux2 named[6334]: loading configuration from '/etc/bind/named.conf' Jun 1 12:14:15 linux2 named[6334]: no IPv6 interfaces found ... Jun 1 12:14:15 linux2 named[6334]: dns_rdata_fromtext: /etc/bind/db.16.168.192:2: near eol: unexpected end of input Jun 1 12:14:15 linux2 named[6334]: zone 16.168.192.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unexpected end of input Jun 1 12:14:15 linux2 named[6334]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:14:15 linux2 named[6334]: zone localhost/IN: loaded serial 1 Jun 1 12:14:15 linux2 named[6334]: zone net.nt/IN: loaded serial 2007010933 Jun 1 12:14:15 linux2 named[6334]: zone svl.net.nt/IN: loaded serial 2007060101 Jun 1 12:14:15 linux2 named[6334]: running Jun 1 12:14:15 linux2 named[6334]: zone svl.net.nt/IN: sending notifies (serial 2007060101) Jun 1 12:14:15 linux2 named[6334]: client 192.168.16.50#32787: received notify for zone 'svl.net.nt' q |
#tail /var/log/daemon.log
Jun 1 12:14:15 linux2 named[6334]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:14:15 linux2 named[6334]: dns_rdata_fromtext: /etc/bind/db.16.168.192:2: near eol: unexpected end of input Jun 1 12:14:15 linux2 named[6334]: zone 16.168.192.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unexpected end of input Jun 1 12:14:15 linux2 named[6334]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:14:15 linux2 named[6334]: zone localhost/IN: loaded serial 1 Jun 1 12:14:15 linux2 named[6334]: zone net.nt/IN: loaded serial 2007010933 Jun 1 12:14:15 linux2 named[6334]: zone svl.net.nt/IN: loaded serial 2007060101 Jun 1 12:14:15 linux2 named[6334]: running Jun 1 12:14:15 linux2 named[6334]: zone svl.net.nt/IN: sending notifies (serial 2007060101) Jun 1 12:14:15 linux2 named[6334]: client 192.168.16.50#32787: received notify for zone 'svl.net.nt' |
#vim /etc/bind/db.16.168.192
|
#vim named.conf.options
23c23 < allow-transfer { 192.168.16.0; } ; --- > allow-transfer { 192.168.16.0/24; } ; |
#/etc/init.d/bind9 restart
31 PTR host69.svl.net.nt. 32 PTR host70.svl.net.nt. 33 PTR host71.svl.net.nt. 34 PTR host72.svl.net.nt. 35 PTR host73.svl.net.nt. 36 PTR host74.svl.net.nt. 37 PTR host75.svl.net.nt. 38 PTR host76.svl.net.nt. 39 PTR host77.svl.net.nt. 40 PTR host78.svl.net.nt. ... 49 PTR host87.svl.net.nt. 50 PTR host88.svl.net.nt. 51 PTR host89.svl.net.nt. 52 PTR host90.svl.net.nt. 53 PTR host91.svl.net.nt. 54 PTR host92.svl.net.nt. 55 PTR host93.svl.net.nt. 56 PTR host94.svl.net.nt. Stopping domain name service...: bind. Starting domain name service...: bind. |
#dig @192.168.16.2 net.nt axfr
host206.net.nt. 10800000 IN A 192.168.16.206 host207.net.nt. 10800000 IN A 192.168.16.207 host208.net.nt. 10800000 IN A 192.168.16.208 host209.net.nt. 10800000 IN A 192.168.16.209 host210.net.nt. 10800000 IN A 192.168.16.210 host211.net.nt. 10800000 IN A 192.168.16.211 host212.net.nt. 10800000 IN A 192.168.16.212 host213.net.nt. 10800000 IN A 192.168.16.213 host214.net.nt. 10800000 IN A 192.168.16.214 host215.net.nt. 10800000 IN A 192.168.16.215 ... m02.net.nt. 10800000 IN CNAME fbsd2.net.nt. m03.net.nt. 10800000 IN CNAME fbsd3.net.nt. xlotus.net.net.nt. 10800000 IN A 10.0.69.1 serzh.net.nt. 10800000 IN CNAME net.nt. sled.net.nt. 10800000 IN A 192.168.16.31 net.nt. 10800000 IN SOA net.nt. clint.net.nt. 2007010933 36000 3600 604800 3600 ;; Query time: 45 msec ;; SERVER: 192.168.16.2#53(192.168.16.2) ;; WHEN: Fri Jun 1 12:14:49 2007 ;; XFR size: 264 records (messages 1) |
#dig @192.168.16.2 svl.net.nt axfr
; <<>> DiG 9.3.4 <<>> @192.168.16.2 svl.net.nt axfr ; (1 server found) ;; global options: printcmd svl.net.nt. 24 IN SOA svl.net.nt. user.svl.net.nt. 2007060101 36000 3600 604800 3600 svl.net.nt. 24 IN NS host50.svl.net.nt. host50.svl.net.nt. 24 IN A 192.168.16.50 host51.svl.net.nt. 24 IN A 192.168.16.51 host52.svl.net.nt. 24 IN A 192.168.16.52 host53.svl.net.nt. 24 IN A 192.168.16.53 host54.svl.net.nt. 24 IN A 192.168.16.54 ... host95.svl.net.nt. 24 IN A 192.168.16.95 host96.svl.net.nt. 24 IN A 192.168.16.96 host97.svl.net.nt. 24 IN A 192.168.16.97 host98.svl.net.nt. 24 IN A 192.168.16.98 host99.svl.net.nt. 24 IN A 192.168.16.99 svl.net.nt. 24 IN SOA svl.net.nt. user.svl.net.nt. 2007060101 36000 3600 604800 3600 ;; Query time: 237 msec ;; SERVER: 192.168.16.2#53(192.168.16.2) ;; WHEN: Fri Jun 1 12:14:57 2007 ;; XFR size: 53 records (messages 1) |
#vim named.conf.options
|
106 PTR host106.test.net.nt. 107 PTR host107.test.net.nt. 108 PTR host108.test.net.nt. 109 PTR host109.test.net.nt. 110 PTR host110.test.net.nt. 111 PTR host111.test.net.nt. 112 PTR host112.test.net.nt. 113 PTR host113.test.net.nt. 114 PTR host114.test.net.nt. 115 PTR host115.test.net.nt. 116 PTR host116.test.net.nt. 117 PTR host117.test.net.nt. 118 PTR host118.test.net.nt. 119 PTR host119.test.net.nt. 120 PTR host120.test.net.nt. 121 PTR host121.test.net.nt. 122 PTR host122.test.net.nt. 123 PTR host123.test.net.nt. 124 PTR host124.test.net.nt. 125 PTR host125.test.net.nt. 126 PTR host126.test.net.nt. 127 PTR host127.test.net.nt. 128 PTR host128.test.net.nt. 129 PTR host129.test.net.nt. 130 PTR host130.test.net.nt. 131 PTR host131.test.net.nt. 132 PTR host132.test.net.nt. 133 PTR host133.test.net.nt. 134 PTR host134.test.net.nt. 135 PTR host135.test.net.nt. 136 PTR host136.test.net.nt. 137 PTR host137.test.net.nt. 138 PTR host138.test.net.nt. 139 PTR host139.test.net.nt. 140 PTR host140.test.net.nt. 141 PTR host141.test.net.nt. 142 PTR host142.test.net.nt. 143 PTR host143.test.net.nt. 144 PTR host144.test.net.nt. 145 PTR host145.test.net.nt. 146 PTR host146.test.net.nt. 147 PTR host147.test.net.nt. 148 PTR host148.test.net.nt. 149 PTR host149.test.net.nt. 150 PTR host150.test.net.nt. 151 PTR host151.test.net.nt. 152 PTR host152.test.net.nt. 153 PTR host153.test.net.nt. 154 PTR host154.test.net.nt. 155 PTR host155.test.net.nt. 156 PTR host156.test.net.nt. 157 PTR host157.test.net.nt. 158 PTR host158.test.net.nt. 159 PTR host159.test.net.nt. 160 PTR host160.test.net.nt. 161 PTR host161.test.net.nt. 162 PTR host162.test.net.nt. 163 PTR host163.test.net.nt. 164 PTR host164.test.net.nt. 165 PTR host165.test.net.nt. 166 PTR host166.test.net.nt. 167 PTR host167.test.net.nt. 168 PTR host168.test.net.nt. 169 PTR host169.test.net.nt. 170 PTR host170.test.net.nt. 171 PTR host171.test.net.nt. 172 PTR host172.test.net.nt. 173 PTR host173.test.net.nt. 174 PTR host174.test.net.nt. 175 PTR host175.test.net.nt. 176 PTR host176.test.net.nt. 177 PTR host177.test.net.nt. 178 PTR host178.test.net.nt. 179 PTR host179.test.net.nt. 180 PTR host180.test.net.nt. 181 PTR host181.test.net.nt. 182 PTR host182.test.net.nt. 183 PTR host183.test.net.nt. 184 PTR host184.test.net.nt. 185 PTR host185.test.net.nt. 186 PTR host186.test.net.nt. 187 PTR host187.test.net.nt. 188 PTR host188.test.net.nt. 189 PTR host189.test.net.nt. 190 PTR host190.test.net.nt. 191 PTR host191.test.net.nt. 192 PTR host192.test.net.nt. 193 PTR host193.test.net.nt. 194 PTR host194.test.net.nt. 195 PTR host195.test.net.nt. 196 PTR host196.test.net.nt. 197 PTR host197.test.net.nt. 198 PTR host198.test.net.nt. 199 PTR host199.test.net.nt. 200 PTR host200.test.net.nt. 201 PTR host201.test.net.nt. 202 PTR host202.test.net.nt. 203 PTR host203.test.net.nt. 204 PTR host204.test.net.nt. 205 PTR host205.test.net.nt. 206 PTR host206.test.net.nt. 207 PTR host207.test.net.nt. 208 PTR host208.test.net.nt. 209 PTR host209.test.net.nt. 210 PTR host210.test.net.nt. 211 PTR host211.test.net.nt. 212 PTR host212.test.net.nt. 213 PTR host213.test.net.nt. 214 PTR host214.test.net.nt. 215 PTR host215.test.net.nt. 216 PTR host216.test.net.nt. 217 PTR host217.test.net.nt. 218 PTR host218.test.net.nt. 219 PTR host219.test.net.nt. 220 PTR host220.test.net.nt. 221 PTR host221.test.net.nt. 222 PTR host222.test.net.nt. 223 PTR host223.test.net.nt. 224 PTR host224.test.net.nt. 225 PTR host225.test.net.nt. 226 PTR host226.test.net.nt. 227 PTR host227.test.net.nt. 228 PTR host228.test.net.nt. 229 PTR host229.test.net.nt. 230 PTR host230.test.net.nt. 231 PTR host231.test.net.nt. 232 PTR host232.test.net.nt. 233 PTR host233.test.net.nt. 234 PTR host234.test.net.nt. 235 PTR host235.test.net.nt. 236 PTR host236.test.net.nt. 237 PTR host237.test.net.nt. 238 PTR host238.test.net.nt. 239 PTR host239.test.net.nt. 240 PTR host240.test.net.nt. 241 PTR host241.test.net.nt. 242 PTR host242.test.net.nt. 243 PTR host243.test.net.nt. 244 PTR host244.test.net.nt. 245 PTR host245.test.net.nt. 246 PTR host246.test.net.nt. 247 PTR host247.test.net.nt. 248 PTR host248.test.net.nt. 249 PTR host249.test.net.nt. 250 PTR host250.test.net.nt. 251 PTR host251.test.net.nt. 252 PTR host252.test.net.nt. 253 PTR host253.test.net.nt. 254 PTR host254.test.net.nt.
Время первой команды журнала | 11:12:42 2007- 6- 1 | ||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 12:14:58 2007- 6- 1 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 18.81 | ||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.04 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.62 | ||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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