/l3/users/10-09-2007/nt-bsdnet/fbsd3.unix.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 :28 :29 :30 :31 :32 :33 :34 :35 :36 |
|
#mail
No mail for root |
#mail
No mail for root |
#vim /etc/namedb/
|
#vim /etc/namedb/db.taras.unix.nt
8a9 > taras.unix.nt. MX 5 host1.taras.unix.nt. |
#vim /etc/namedb/db.taras.unix.nt
8a9 > taras.unix.nt. MX 5 host1.taras.unix.nt. |
#vim /etc/namedb/db.taras.unix.nt
8a9 > taras.unix.nt. MX 5 host1.taras.unix.nt. |
#/etc/rc.d/named restart
13:21:32.030484 IP 192.168.15.22.54178 > 192.168.15.180.53: 8379+ [1au] AAAA? mail.google.com. (44) 13:21:32.313733 IP 192.168.15.180.53 > 192.168.15.22.54178: 8379 1/1/1 CNAME[|domain] 13:21:32.317557 IP 192.168.15.22.54178 > 192.168.15.180.53: 30549+ [1au] AAAA? googlemail.l.google.com. (52) 13:21:32.318099 IP 192.168.15.180.53 > 192.168.15.22.54178: 30549 0/1/1 (100) 13:23:24.973799 IP 192.168.15.22.54178 > 192.168.15.180.53: 25696+ [1au] A? mail.google.com. (44) 13:23:25.130067 IP 192.168.15.180.53 > 192.168.15.22.54178: 25696 3/7/1 CNAME[|domain] 13:23:25.134439 IP 192.168.15.22.54178 > 192.168.15.180.53: 45616+ [1au] AAAA? mail.google.com. (44) 13:23:25.279225 IP 192.168.15.180.53 > 192.168.15.22.54178: 45616 1/1/1 CNAME[|domain] 13:23:25.283030 IP 192.168.15.22.54178 > 192.168.15.180.53: 22808+ [1au] AAAA? googlemail.l.google.com. (52) 13:23:25.285462 IP 192.168.15.180.53 > 192.168.15.22.54178: 22808 0/1/1 (100) ... 13:37:59.115877 IP 192.168.15.22.54178 > 192.168.15.180.53: 42500+% [1au] AAAA? ns1.sputnikmedia.net. (49) 13:37:59.116991 IP 192.168.15.22.54178 > 192.168.15.180.53: 10745+% [1au] A? ns3.sputnikmedia.net. (49) 13:37:59.117837 IP 192.168.15.22.54178 > 192.168.15.180.53: 10207+% [1au] AAAA? ns3.sputnikmedia.net. (49) 13:37:59.118932 IP 192.168.15.22.54178 > 192.168.15.180.53: 42352+% [1au] A? ns6.sputnikmedia.net. (49) 13:37:59.119874 IP 192.168.15.22.54178 > 192.168.15.180.53: 21176+% [1au] AAAA? ns6.sputnikmedia.net. (49) 13:37:59.132428 IP 192.168.15.180.53 > 192.168.15.22.54178: 24783 0/1/1 (103) 13:37:59.166751 IP 192.168.15.22.54178 > 192.168.15.180.53: 10588+ [1au] AAAA? b-one.com.ua. (41) 13:37:59.167626 IP 192.168.15.22.54178 > 192.168.15.180.53: 38062+% [1au] A? ns3.prohosting.com.ua. (50) Stopping named. Starting named. |
#/etc/rc.d/named restart
13:21:32.030484 IP 192.168.15.22.54178 > 192.168.15.180.53: 8379+ [1au] AAAA? mail.google.com. (44) 13:21:32.313733 IP 192.168.15.180.53 > 192.168.15.22.54178: 8379 1/1/1 CNAME[|domain] 13:21:32.317557 IP 192.168.15.22.54178 > 192.168.15.180.53: 30549+ [1au] AAAA? googlemail.l.google.com. (52) 13:21:32.318099 IP 192.168.15.180.53 > 192.168.15.22.54178: 30549 0/1/1 (100) 13:23:24.973799 IP 192.168.15.22.54178 > 192.168.15.180.53: 25696+ [1au] A? mail.google.com. (44) 13:23:25.130067 IP 192.168.15.180.53 > 192.168.15.22.54178: 25696 3/7/1 CNAME[|domain] 13:23:25.134439 IP 192.168.15.22.54178 > 192.168.15.180.53: 45616+ [1au] AAAA? mail.google.com. (44) 13:23:25.279225 IP 192.168.15.180.53 > 192.168.15.22.54178: 45616 1/1/1 CNAME[|domain] 13:23:25.283030 IP 192.168.15.22.54178 > 192.168.15.180.53: 22808+ [1au] AAAA? googlemail.l.google.com. (52) 13:23:25.285462 IP 192.168.15.180.53 > 192.168.15.22.54178: 22808 0/1/1 (100) ... 13:37:59.115877 IP 192.168.15.22.54178 > 192.168.15.180.53: 42500+% [1au] AAAA? ns1.sputnikmedia.net. (49) 13:37:59.116991 IP 192.168.15.22.54178 > 192.168.15.180.53: 10745+% [1au] A? ns3.sputnikmedia.net. (49) 13:37:59.117837 IP 192.168.15.22.54178 > 192.168.15.180.53: 10207+% [1au] AAAA? ns3.sputnikmedia.net. (49) 13:37:59.118932 IP 192.168.15.22.54178 > 192.168.15.180.53: 42352+% [1au] A? ns6.sputnikmedia.net. (49) 13:37:59.119874 IP 192.168.15.22.54178 > 192.168.15.180.53: 21176+% [1au] AAAA? ns6.sputnikmedia.net. (49) 13:37:59.132428 IP 192.168.15.180.53 > 192.168.15.22.54178: 24783 0/1/1 (103) 13:37:59.166751 IP 192.168.15.22.54178 > 192.168.15.180.53: 10588+ [1au] AAAA? b-one.com.ua. (41) 13:37:59.167626 IP 192.168.15.22.54178 > 192.168.15.180.53: 38062+% [1au] A? ns3.prohosting.com.ua. (50) Stopping named. Starting named. |
#vim /etc/namedb/db.taras.unix.nt
|
#vim /etc/namedb/db.taras.unix.nt
|
#vim /etc/namedb/db.taras.unix.nt
|
#vim /etc/namedb/db.taras.unix.nt
2c2 < @ SOA host1.taras.unix.nt user.host1.taras.unix.nt 2007150903 ( --- > @ SOA host1.taras.unix.nt user.host1.taras.unix.nt 2007150904 ( |
#vim /etc/namedb/db.taras.unix.nt
2c2 < @ SOA host1.taras.unix.nt user.host1.taras.unix.nt 2007150903 ( --- > @ SOA host1.taras.unix.nt user.host1.taras.unix.nt 2007150904 ( |
#vim /etc/namedb/db.taras.unix.nt
2c2 < @ SOA host1.taras.unix.nt user.host1.taras.unix.nt 2007150903 ( --- > @ SOA host1.taras.unix.nt user.host1.taras.unix.nt 2007150904 ( |
#/etc/rc.d/named restart
Stopping named. Starting named. |
#/etc/rc.d/named restart
Stopping named. Starting named. |
#/etc/rc.d/named restart
Stopping named. Starting named. |
#dig taras.unix.nt mx
; <<>> DiG 9.3.3 <<>> taras.unix.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15160 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;taras.unix.nt. IN MX ;; ANSWER SECTION: taras.unix.nt. 10800000 IN MX 5 host1.taras.unix.nt. ;; AUTHORITY SECTION: taras.unix.nt. 10800000 IN NS host1.taras.unix.nt. ;; ADDITIONAL SECTION: host1.taras.unix.nt. 10800000 IN A 192.168.15.22 ;; Query time: 2 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 13 16:33:26 2007 ;; MSG SIZE rcvd: 83 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#vim /usr/share/examples/cvsup/ports-supfile
|
#vim /usr/share/examples/cvsup/ports-supfile
|
#cd /usr/ports/
|
#make search name=cowsay
Port: cowsay-3.03_1 Path: /usr/ports/games/cowsay Info: Configurable talking characters in ASCII art Maint: kris@FreeBSD.org B-deps: perl-5.8.8 R-deps: perl-5.8.8 WWW: http://www.nog.net/~tony/warez/cowsay.shtml |
#cd games/cowsay/
13:21:31.879226 IP 192.168.15.22.54178 > 192.168.15.180.53: 33752+ [1au] A? mail.google.com. (44) 13:21:32.026039 IP 192.168.15.180.53 > 192.168.15.22.54178: 33752 3/7/1 CNAME[|domain] 13:21:32.030484 IP 192.168.15.22.54178 > 192.168.15.180.53: 8379+ [1au] AAAA? mail.google.com. (44) 13:21:32.313733 IP 192.168.15.180.53 > 192.168.15.22.54178: 8379 1/1/1 CNAME[|domain] 13:21:32.317557 IP 192.168.15.22.54178 > 192.168.15.180.53: 30549+ [1au] AAAA? googlemail.l.google.com. (52) 13:21:32.318099 IP 192.168.15.180.53 > 192.168.15.22.54178: 30549 0/1/1 (100) 13:23:24.973799 IP 192.168.15.22.54178 > 192.168.15.180.53: 25696+ [1au] A? mail.google.com. (44) 13:23:25.130067 IP 192.168.15.180.53 > 192.168.15.22.54178: 25696 3/7/1 CNAME[|domain] 13:23:25.134439 IP 192.168.15.22.54178 > 192.168.15.180.53: 45616+ [1au] AAAA? mail.google.com. (44) 13:23:25.279225 IP 192.168.15.180.53 > 192.168.15.22.54178: 45616 1/1/1 CNAME[|domain] ... 13:37:59.113942 IP 192.168.15.22.54178 > 192.168.15.180.53: 6461+% [1au] AAAA? ns0.sputnikmedia.net. (49) 13:37:59.114939 IP 192.168.15.22.54178 > 192.168.15.180.53: 62333+% [1au] A? ns1.sputnikmedia.net. (49) 13:37:59.115877 IP 192.168.15.22.54178 > 192.168.15.180.53: 42500+% [1au] AAAA? ns1.sputnikmedia.net. (49) 13:37:59.116991 IP 192.168.15.22.54178 > 192.168.15.180.53: 10745+% [1au] A? ns3.sputnikmedia.net. (49) 13:37:59.117837 IP 192.168.15.22.54178 > 192.168.15.180.53: 10207+% [1au] AAAA? ns3.sputnikmedia.net. (49) 13:37:59.118932 IP 192.168.15.22.54178 > 192.168.15.180.53: 42352+% [1au] A? ns6.sputnikmedia.net. (49) 13:37:59.119874 IP 192.168.15.22.54178 > 192.168.15.180.53: 21176+% [1au] AAAA? ns6.sputnikmedia.net. (49) 13:37:59.132428 IP 192.168.15.180.53 > 192.168.15.22.54178: 24783 0/1/1 (103) 13:37:59.166751 IP 192.168.15.22.54178 > 192.168.15.180.53: 10588+ [1au] AAAA? b-one.com.ua. (41) 13:37:59.167626 IP 192.168.15.22.54178 > 192.168.15.180.53: 38062+% [1au] A? ns3.prohosting.com.ua. (50) |
#cd games/cowsay/
13:21:31.879226 IP 192.168.15.22.54178 > 192.168.15.180.53: 33752+ [1au] A? mail.google.com. (44) 13:21:32.026039 IP 192.168.15.180.53 > 192.168.15.22.54178: 33752 3/7/1 CNAME[|domain] 13:21:32.030484 IP 192.168.15.22.54178 > 192.168.15.180.53: 8379+ [1au] AAAA? mail.google.com. (44) 13:21:32.313733 IP 192.168.15.180.53 > 192.168.15.22.54178: 8379 1/1/1 CNAME[|domain] 13:21:32.317557 IP 192.168.15.22.54178 > 192.168.15.180.53: 30549+ [1au] AAAA? googlemail.l.google.com. (52) 13:21:32.318099 IP 192.168.15.180.53 > 192.168.15.22.54178: 30549 0/1/1 (100) 13:23:24.973799 IP 192.168.15.22.54178 > 192.168.15.180.53: 25696+ [1au] A? mail.google.com. (44) 13:23:25.130067 IP 192.168.15.180.53 > 192.168.15.22.54178: 25696 3/7/1 CNAME[|domain] 13:23:25.134439 IP 192.168.15.22.54178 > 192.168.15.180.53: 45616+ [1au] AAAA? mail.google.com. (44) 13:23:25.279225 IP 192.168.15.180.53 > 192.168.15.22.54178: 45616 1/1/1 CNAME[|domain] ... 13:37:59.113942 IP 192.168.15.22.54178 > 192.168.15.180.53: 6461+% [1au] AAAA? ns0.sputnikmedia.net. (49) 13:37:59.114939 IP 192.168.15.22.54178 > 192.168.15.180.53: 62333+% [1au] A? ns1.sputnikmedia.net. (49) 13:37:59.115877 IP 192.168.15.22.54178 > 192.168.15.180.53: 42500+% [1au] AAAA? ns1.sputnikmedia.net. (49) 13:37:59.116991 IP 192.168.15.22.54178 > 192.168.15.180.53: 10745+% [1au] A? ns3.sputnikmedia.net. (49) 13:37:59.117837 IP 192.168.15.22.54178 > 192.168.15.180.53: 10207+% [1au] AAAA? ns3.sputnikmedia.net. (49) 13:37:59.118932 IP 192.168.15.22.54178 > 192.168.15.180.53: 42352+% [1au] A? ns6.sputnikmedia.net. (49) 13:37:59.119874 IP 192.168.15.22.54178 > 192.168.15.180.53: 21176+% [1au] AAAA? ns6.sputnikmedia.net. (49) 13:37:59.132428 IP 192.168.15.180.53 > 192.168.15.22.54178: 24783 0/1/1 (103) 13:37:59.166751 IP 192.168.15.22.54178 > 192.168.15.180.53: 10588+ [1au] AAAA? b-one.com.ua. (41) 13:37:59.167626 IP 192.168.15.22.54178 > 192.168.15.180.53: 38062+% [1au] A? ns3.prohosting.com.ua. (50) |
#cd games/cowsay/
13:21:31.879226 IP 192.168.15.22.54178 > 192.168.15.180.53: 33752+ [1au] A? mail.google.com. (44) 13:21:32.026039 IP 192.168.15.180.53 > 192.168.15.22.54178: 33752 3/7/1 CNAME[|domain] 13:21:32.030484 IP 192.168.15.22.54178 > 192.168.15.180.53: 8379+ [1au] AAAA? mail.google.com. (44) 13:21:32.313733 IP 192.168.15.180.53 > 192.168.15.22.54178: 8379 1/1/1 CNAME[|domain] 13:21:32.317557 IP 192.168.15.22.54178 > 192.168.15.180.53: 30549+ [1au] AAAA? googlemail.l.google.com. (52) 13:21:32.318099 IP 192.168.15.180.53 > 192.168.15.22.54178: 30549 0/1/1 (100) 13:23:24.973799 IP 192.168.15.22.54178 > 192.168.15.180.53: 25696+ [1au] A? mail.google.com. (44) 13:23:25.130067 IP 192.168.15.180.53 > 192.168.15.22.54178: 25696 3/7/1 CNAME[|domain] 13:23:25.134439 IP 192.168.15.22.54178 > 192.168.15.180.53: 45616+ [1au] AAAA? mail.google.com. (44) 13:23:25.279225 IP 192.168.15.180.53 > 192.168.15.22.54178: 45616 1/1/1 CNAME[|domain] ... 13:37:59.113942 IP 192.168.15.22.54178 > 192.168.15.180.53: 6461+% [1au] AAAA? ns0.sputnikmedia.net. (49) 13:37:59.114939 IP 192.168.15.22.54178 > 192.168.15.180.53: 62333+% [1au] A? ns1.sputnikmedia.net. (49) 13:37:59.115877 IP 192.168.15.22.54178 > 192.168.15.180.53: 42500+% [1au] AAAA? ns1.sputnikmedia.net. (49) 13:37:59.116991 IP 192.168.15.22.54178 > 192.168.15.180.53: 10745+% [1au] A? ns3.sputnikmedia.net. (49) 13:37:59.117837 IP 192.168.15.22.54178 > 192.168.15.180.53: 10207+% [1au] AAAA? ns3.sputnikmedia.net. (49) 13:37:59.118932 IP 192.168.15.22.54178 > 192.168.15.180.53: 42352+% [1au] A? ns6.sputnikmedia.net. (49) 13:37:59.119874 IP 192.168.15.22.54178 > 192.168.15.180.53: 21176+% [1au] AAAA? ns6.sputnikmedia.net. (49) 13:37:59.132428 IP 192.168.15.180.53 > 192.168.15.22.54178: 24783 0/1/1 (103) 13:37:59.166751 IP 192.168.15.22.54178 > 192.168.15.180.53: 10588+ [1au] AAAA? b-one.com.ua. (41) 13:37:59.167626 IP 192.168.15.22.54178 > 192.168.15.180.53: 38062+% [1au] A? ns3.prohosting.com.ua. (50) |
#make install
===> Vulnerability check disabled, database not found => cowsay-3.03.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from ftp://ftp.nog.net/pub/tony/cowsay/. cowsay-3.03.tar.gz 100% of 14 kB 25 kBps ===> Extracting for cowsay-3.03_1 => MD5 Checksum OK for cowsay-3.03.tar.gz. => SHA256 Checksum OK for cowsay-3.03.tar.gz. ===> cowsay-3.03_1 depends on file: /usr/local/bin/perl5.8.8 - found ===> Patching for cowsay-3.03_1 ===> cowsay-3.03_1 depends on file: /usr/local/bin/perl5.8.8 - found ... x cows/tux.cow x cows/udder.cow x cows/vader-koala.cow x cows/www.cow x cows/vader.cow + set +x Okay, let us see if the install actually worked. Installation complete! Enjoy the cows! ===> Compressing manual pages for cowsay-3.03_1 ===> Registering installation for cowsay-3.03_1 |
#make install
===> Vulnerability check disabled, database not found => cowsay-3.03.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from ftp://ftp.nog.net/pub/tony/cowsay/. cowsay-3.03.tar.gz 100% of 14 kB 25 kBps ===> Extracting for cowsay-3.03_1 => MD5 Checksum OK for cowsay-3.03.tar.gz. => SHA256 Checksum OK for cowsay-3.03.tar.gz. ===> cowsay-3.03_1 depends on file: /usr/local/bin/perl5.8.8 - found ===> Patching for cowsay-3.03_1 ===> cowsay-3.03_1 depends on file: /usr/local/bin/perl5.8.8 - found ... x cows/tux.cow x cows/udder.cow x cows/vader-koala.cow x cows/www.cow x cows/vader.cow + set +x Okay, let us see if the install actually worked. Installation complete! Enjoy the cows! ===> Compressing manual pages for cowsay-3.03_1 ===> Registering installation for cowsay-3.03_1 |
#make install
===> Vulnerability check disabled, database not found => cowsay-3.03.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from ftp://ftp.nog.net/pub/tony/cowsay/. cowsay-3.03.tar.gz 100% of 14 kB 25 kBps ===> Extracting for cowsay-3.03_1 => MD5 Checksum OK for cowsay-3.03.tar.gz. => SHA256 Checksum OK for cowsay-3.03.tar.gz. ===> cowsay-3.03_1 depends on file: /usr/local/bin/perl5.8.8 - found ===> Patching for cowsay-3.03_1 ===> cowsay-3.03_1 depends on file: /usr/local/bin/perl5.8.8 - found ... x cows/tux.cow x cows/udder.cow x cows/vader-koala.cow x cows/www.cow x cows/vader.cow + set +x Okay, let us see if the install actually worked. Installation complete! Enjoy the cows! ===> Compressing manual pages for cowsay-3.03_1 ===> Registering installation for cowsay-3.03_1 |
#pkg_info -Lx cowsay
Information for cowsay-3.03_1: Files: /usr/local/man/man1/cowsay.1.gz /usr/local/man/man1/cowthink.1.gz /usr/local/bin/cowsay /usr/local/bin/cowthink /usr/local/share/cows/beavis.zen.cow /usr/local/share/cows/bong.cow /usr/local/share/cows/box.cow /usr/local/share/cows/bud-frogs.cow ... /usr/local/share/cows/telebears.cow /usr/local/share/cows/three-eyes.cow /usr/local/share/cows/turkey.cow /usr/local/share/cows/turtle.cow /usr/local/share/cows/tux.cow /usr/local/share/cows/tux-stab.cow /usr/local/share/cows/udder.cow /usr/local/share/cows/vader-koala.cow /usr/local/share/cows/vader.cow /usr/local/share/cows/www.cow |
#pkg_info -Lx cowsay
Information for cowsay-3.03_1: Files: /usr/local/man/man1/cowsay.1.gz /usr/local/man/man1/cowthink.1.gz /usr/local/bin/cowsay /usr/local/bin/cowthink /usr/local/share/cows/beavis.zen.cow /usr/local/share/cows/bong.cow /usr/local/share/cows/box.cow /usr/local/share/cows/bud-frogs.cow ... /usr/local/share/cows/telebears.cow /usr/local/share/cows/three-eyes.cow /usr/local/share/cows/turkey.cow /usr/local/share/cows/turtle.cow /usr/local/share/cows/tux.cow /usr/local/share/cows/tux-stab.cow /usr/local/share/cows/udder.cow /usr/local/share/cows/vader-koala.cow /usr/local/share/cows/vader.cow /usr/local/share/cows/www.cow |
#pkg_info -Lx cowsay
Information for cowsay-3.03_1: Files: /usr/local/man/man1/cowsay.1.gz /usr/local/man/man1/cowthink.1.gz /usr/local/bin/cowsay /usr/local/bin/cowthink /usr/local/share/cows/beavis.zen.cow /usr/local/share/cows/bong.cow /usr/local/share/cows/box.cow /usr/local/share/cows/bud-frogs.cow ... /usr/local/share/cows/telebears.cow /usr/local/share/cows/three-eyes.cow /usr/local/share/cows/turkey.cow /usr/local/share/cows/turtle.cow /usr/local/share/cows/tux.cow /usr/local/share/cows/tux-stab.cow /usr/local/share/cows/udder.cow /usr/local/share/cows/vader-koala.cow /usr/local/share/cows/vader.cow /usr/local/share/cows/www.cow |
#cowsay HELOO -f /usr/local/share/cows/tux.cow
________________________________________ < HELOO -f /usr/local/share/cows/tux.cow > ---------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || |
#cowsay HELOO -f /usr/local/share/cows/tux.cow
________________________________________ < HELOO -f /usr/local/share/cows/tux.cow > ---------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || |
#cowsay HELOO -f /usr/local/share/cows/tux.cow
________________________________________ < HELOO -f /usr/local/share/cows/tux.cow > ---------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || |
#cowsay HELO /usr/local/share/cows/tux.cow
____________________________________ < HELO /usr/local/share/cows/tux.cow > ------------------------------------ \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || |
#cowsay /usr/local/share/cows/tux.cow HELOO
_____________________________________ < /usr/local/share/cows/tux.cow HELOO > ------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || |
#cowsay /usr/local/share/cows/tux.cow HELOO
_____________________________________ < /usr/local/share/cows/tux.cow HELOO > ------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || |
#cowsay -f /usr/local/share/cows/tux.cow HELO
______ < HELO > ------ \ \ .--. |o_o | |:_/ | // \ \ (| | ) /'\_ _/`\ \___)=(___/ |
#cp /usr/share/examples/cvsup/ports-supfile /tmp
|
#cp /usr/share/examples/cvsup/ports-supfile /tmp
|
#cp /usr/share/examples/cvsup/ports-supfile /tmp
|
#cp /usr/share/examples/cvsup/ports-supfile /tmp
|
#vim /tmp/ports-supfile
51c51 < *default host=CHANGE_THIS.FreeBSD.org --- > *default host=ftp7.ua.FreeBSD.org 54c54 < *default release=cvs tag=. --- > *default release=cvs tag=RELENG_4 67c67 < ports-all --- > #ports-all 97c97 < #ports-games --- > ports-games |
#vim /tmp/ports-supfile
51c51 < *default host=CHANGE_THIS.FreeBSD.org --- > *default host=ftp7.ua.FreeBSD.org 54c54 < *default release=cvs tag=. --- > *default release=cvs tag=RELENG_4 67c67 < ports-all --- > #ports-all 97c97 < #ports-games --- > ports-games |
#vim /tmp/ports-supfile
|
#cvsup -g -L 2 /tmp/ports-supfile
bash: cvsup: command not found |
#cvsup -g -L 2 /tmp/ports-supfile
bash: cvsup: command not found |
#pg_add -r cvsup
13:21:32.026039 IP 192.168.15.180.53 > 192.168.15.22.54178: 33752 3/7/1 CNAME[|domain] 13:21:32.030484 IP 192.168.15.22.54178 > 192.168.15.180.53: 8379+ [1au] AAAA? mail.google.com. (44) 13:21:32.313733 IP 192.168.15.180.53 > 192.168.15.22.54178: 8379 1/1/1 CNAME[|domain] 13:21:32.317557 IP 192.168.15.22.54178 > 192.168.15.180.53: 30549+ [1au] AAAA? googlemail.l.google.com. (52) 13:21:32.318099 IP 192.168.15.180.53 > 192.168.15.22.54178: 30549 0/1/1 (100) 13:23:24.973799 IP 192.168.15.22.54178 > 192.168.15.180.53: 25696+ [1au] A? mail.google.com. (44) 13:23:25.130067 IP 192.168.15.180.53 > 192.168.15.22.54178: 25696 3/7/1 CNAME[|domain] 13:23:25.134439 IP 192.168.15.22.54178 > 192.168.15.180.53: 45616+ [1au] AAAA? mail.google.com. (44) 13:23:25.279225 IP 192.168.15.180.53 > 192.168.15.22.54178: 45616 1/1/1 CNAME[|domain] 13:23:25.283030 IP 192.168.15.22.54178 > 192.168.15.180.53: 22808+ [1au] AAAA? googlemail.l.google.com. (52) ... 13:37:59.114939 IP 192.168.15.22.54178 > 192.168.15.180.53: 62333+% [1au] A? ns1.sputnikmedia.net. (49) 13:37:59.115877 IP 192.168.15.22.54178 > 192.168.15.180.53: 42500+% [1au] AAAA? ns1.sputnikmedia.net. (49) 13:37:59.116991 IP 192.168.15.22.54178 > 192.168.15.180.53: 10745+% [1au] A? ns3.sputnikmedia.net. (49) 13:37:59.117837 IP 192.168.15.22.54178 > 192.168.15.180.53: 10207+% [1au] AAAA? ns3.sputnikmedia.net. (49) 13:37:59.118932 IP 192.168.15.22.54178 > 192.168.15.180.53: 42352+% [1au] A? ns6.sputnikmedia.net. (49) 13:37:59.119874 IP 192.168.15.22.54178 > 192.168.15.180.53: 21176+% [1au] AAAA? ns6.sputnikmedia.net. (49) 13:37:59.132428 IP 192.168.15.180.53 > 192.168.15.22.54178: 24783 0/1/1 (103) 13:37:59.166751 IP 192.168.15.22.54178 > 192.168.15.180.53: 10588+ [1au] AAAA? b-one.com.ua. (41) 13:37:59.167626 IP 192.168.15.22.54178 > 192.168.15.180.53: 38062+% [1au] A? ns3.prohosting.com.ua. (50) bash: pg_add: command not found |
#pg_add -r cvsup
13:21:32.026039 IP 192.168.15.180.53 > 192.168.15.22.54178: 33752 3/7/1 CNAME[|domain] 13:21:32.030484 IP 192.168.15.22.54178 > 192.168.15.180.53: 8379+ [1au] AAAA? mail.google.com. (44) 13:21:32.313733 IP 192.168.15.180.53 > 192.168.15.22.54178: 8379 1/1/1 CNAME[|domain] 13:21:32.317557 IP 192.168.15.22.54178 > 192.168.15.180.53: 30549+ [1au] AAAA? googlemail.l.google.com. (52) 13:21:32.318099 IP 192.168.15.180.53 > 192.168.15.22.54178: 30549 0/1/1 (100) 13:23:24.973799 IP 192.168.15.22.54178 > 192.168.15.180.53: 25696+ [1au] A? mail.google.com. (44) 13:23:25.130067 IP 192.168.15.180.53 > 192.168.15.22.54178: 25696 3/7/1 CNAME[|domain] 13:23:25.134439 IP 192.168.15.22.54178 > 192.168.15.180.53: 45616+ [1au] AAAA? mail.google.com. (44) 13:23:25.279225 IP 192.168.15.180.53 > 192.168.15.22.54178: 45616 1/1/1 CNAME[|domain] 13:23:25.283030 IP 192.168.15.22.54178 > 192.168.15.180.53: 22808+ [1au] AAAA? googlemail.l.google.com. (52) ... 13:37:59.114939 IP 192.168.15.22.54178 > 192.168.15.180.53: 62333+% [1au] A? ns1.sputnikmedia.net. (49) 13:37:59.115877 IP 192.168.15.22.54178 > 192.168.15.180.53: 42500+% [1au] AAAA? ns1.sputnikmedia.net. (49) 13:37:59.116991 IP 192.168.15.22.54178 > 192.168.15.180.53: 10745+% [1au] A? ns3.sputnikmedia.net. (49) 13:37:59.117837 IP 192.168.15.22.54178 > 192.168.15.180.53: 10207+% [1au] AAAA? ns3.sputnikmedia.net. (49) 13:37:59.118932 IP 192.168.15.22.54178 > 192.168.15.180.53: 42352+% [1au] A? ns6.sputnikmedia.net. (49) 13:37:59.119874 IP 192.168.15.22.54178 > 192.168.15.180.53: 21176+% [1au] AAAA? ns6.sputnikmedia.net. (49) 13:37:59.132428 IP 192.168.15.180.53 > 192.168.15.22.54178: 24783 0/1/1 (103) 13:37:59.166751 IP 192.168.15.22.54178 > 192.168.15.180.53: 10588+ [1au] AAAA? b-one.com.ua. (41) 13:37:59.167626 IP 192.168.15.22.54178 > 192.168.15.180.53: 38062+% [1au] A? ns3.prohosting.com.ua. (50) bash: pg_add: command not found |
#pkg_add -r cvsup
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/cvsup.tbz... Done. |
#pkg_add -r cvsup
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/cvsup.tbz... Done. |
#pkg_add -r cvsup
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/cvsup.tbz... Done. |
#cvsup -g -L 2 /tmp/ports-supfile
Delete ports/games/egoboo/pkg-plist Delete ports/games/eif/Makefile Delete ports/games/eif/distinfo Delete ports/games/eif/pkg-descr Delete ports/games/eif/pkg-plist Delete ports/games/eights/Makefile Delete ports/games/eights/distinfo Delete ports/games/eights/files/patch-eights.c Delete ports/games/eights/pkg-descr Delete ports/games/einstein/Makefile ... Delete ports/games/falconseye/files/x-config Delete ports/games/falconseye/pkg-descr Delete ports/games/falconseye/pkg-plist Delete ports/games/farblazer/Makefile Delete ports/games/farblazer/distinfo Delete ports/games/farblazer/files/patch-code::sprites::objrocket.py Delete ports/games/farblazer/pkg-descr Delete ports/games/farblazer/pkg-plist Delete ports/games/fargoal/Makefile Delete ports/games/fargoal/distinfo |
#cvsup -g -L 2 /tmp/ports-supfile
Delete ports/games/egoboo/pkg-plist Delete ports/games/eif/Makefile Delete ports/games/eif/distinfo Delete ports/games/eif/pkg-descr Delete ports/games/eif/pkg-plist Delete ports/games/eights/Makefile Delete ports/games/eights/distinfo Delete ports/games/eights/files/patch-eights.c Delete ports/games/eights/pkg-descr Delete ports/games/einstein/Makefile ... Delete ports/games/falconseye/files/x-config Delete ports/games/falconseye/pkg-descr Delete ports/games/falconseye/pkg-plist Delete ports/games/farblazer/Makefile Delete ports/games/farblazer/distinfo Delete ports/games/farblazer/files/patch-code::sprites::objrocket.py Delete ports/games/farblazer/pkg-descr Delete ports/games/farblazer/pkg-plist Delete ports/games/fargoal/Makefile Delete ports/games/fargoal/distinfo |
#pkg_version cowsay
3proxy = 44bsd-rdist = ORBit2 = OpenEXR = aalib = akode = akode-plugins-mpc = akode-plugins-mpeg = ^C |
#pkg_version cowsay
3proxy = 44bsd-rdist = ORBit2 = OpenEXR = aalib = akode = akode-plugins-mpc = akode-plugins-mpeg = ^C |
#pkg_version cowsay
3proxy = 44bsd-rdist = ORBit2 = OpenEXR = aalib = akode = akode-plugins-mpc = akode-plugins-mpeg = ^C |
#pkg_version | grep cowsay
^C |
#pkg_version | grep cowsay
^C |
#pkg_version | grep cowsay
^C |
#pkg_version -Ix gowsay
pkg_version: illegal option -- x usage: pkg_version [-hIoqv] [-l limchar] [-L limchar] [[-X] -s string] [-O origin] [index] pkg_version -t v1 v2 pkg_version -T name pattern |
#pkg_version -Ix gowsay
pkg_version: illegal option -- x usage: pkg_version [-hIoqv] [-l limchar] [-L limchar] [[-X] -s string] [-O origin] [index] pkg_version -t v1 v2 pkg_version -T name pattern |
#pkg_version -Ix gowsay
pkg_version: illegal option -- x usage: pkg_version [-hIoqv] [-l limchar] [-L limchar] [[-X] -s string] [-O origin] [index] pkg_version -t v1 v2 pkg_version -T name pattern |
#pkg_version -Ix cowsay
pkg_version: illegal option -- x usage: pkg_version [-hIoqv] [-l limchar] [-L limchar] [[-X] -s string] [-O origin] [index] pkg_version -t v1 v2 pkg_version -T name pattern |
#pkg_version -Ix cowsay
pkg_version: illegal option -- x usage: pkg_version [-hIoqv] [-l limchar] [-L limchar] [[-X] -s string] [-O origin] [index] pkg_version -t v1 v2 pkg_version -T name pattern |
#pkg_info -Ix cowsay
cowsay-3.03_1 Configurable talking characters in ASCII art |
#cd..
bash: cd..: command not found |
#cd
|
#cd /usr/ports/games/cowsay/
|
#pkg_info -Ix cowsay
cowsay-3.03_1 Configurable talking characters in ASCII art |
#ls
work |
#ls work/
.PLIST.flattened .configure_done.cowsay._usr_local .PLIST.mktmp .extract_done.cowsay._usr_local .PLIST.objdump .install_done.cowsay._usr_local .PLIST.setuid .patch_done.cowsay._usr_local .PLIST.writable cowsay-3.03 .build_done.cowsay._usr_local |
#ls
work |
#cd ..
|
#ls
cowsay |
#c
bash: c: command not found |
#cd
|
#vim /tmp/ports-supfile
|
#vim /tmp/ports-supfile
|
#cvsup -g -L 2 /tmp/ports-supfile
Parsing supfile "/tmp/ports-supfile" Connecting to ftp7.ua.FreeBSD.org Connected to ftp7.ua.FreeBSD.org Server software version: SNAP_16_1h Negotiating file attribute support Exchanging collection information Establishing multiplexed-mode data connection Running Updating collection ports-games/cvs Shutting down connection to server Finished successfully |
#cvsup -g -L 2 /tmp/ports-supfile
Parsing supfile "/tmp/ports-supfile" Connecting to ftp7.ua.FreeBSD.org Connected to ftp7.ua.FreeBSD.org Server software version: SNAP_16_1h Negotiating file attribute support Exchanging collection information Establishing multiplexed-mode data connection Running Updating collection ports-games/cvs Shutting down connection to server Finished successfully |
#cvsup -g -L 2 /tmp/ports-supfile
Parsing supfile "/tmp/ports-supfile" Connecting to ftp7.ua.FreeBSD.org Connected to ftp7.ua.FreeBSD.org Server software version: SNAP_16_1h Negotiating file attribute support Exchanging collection information Establishing multiplexed-mode data connection Running Updating collection ports-games/cvs Shutting down connection to server Finished successfully |
#ls /usr/ports/games/
cowsay |
#ls /usr/ports/games/
cowsay |
#ls /usr/ports/games/
cowsay |
#vim /tmp/ports-supfile
51c51 < *default host=ftp7.ua.FreeBSD.org --- > *default host=ftp.FreeBSD.org |
#vim /tmp/ports-supfile
51c51 < *default host=ftp7.ua.FreeBSD.org --- > *default host=ftp.FreeBSD.org |
#cvsup -g -L 2 /tmp/ports-supfile
Parsing supfile "/tmp/ports-supfile" Connecting to ftp.FreeBSD.org Cannot connect to ftp.FreeBSD.org: Connection refused Will retry at 17:36:27 ^C |
#cvsup -g -L 2 /tmp/ports-supfile
Parsing supfile "/tmp/ports-supfile" Connecting to ftp.FreeBSD.org Cannot connect to ftp.FreeBSD.org: Connection refused Will retry at 17:36:27 ^C |
#vim /tmp/ports-supfile
51c51 < *default host=ftp.FreeBSD.org --- > *default host=ftp1.FreeBSD.org |
#vim /tmp/ports-supfile
51c51 < *default host=ftp.FreeBSD.org --- > *default host=ftp1.FreeBSD.org |
#vim /tmp/ports-supfile
51c51 < *default host=ftp.FreeBSD.org --- > *default host=ftp1.FreeBSD.org |
#vim /tmp/ports-supfile
51c51 < *default host=ftp.FreeBSD.org --- > *default host=ftp1.FreeBSD.org |
#cvsup -g -L 2 /tmp/ports-supfile
Parsing supfile "/tmp/ports-supfile" Connecting to ftp1.FreeBSD.org ^C |
#cvsup -g -L 2 /tmp/ports-supfile
Parsing supfile "/tmp/ports-supfile" Connecting to ftp1.FreeBSD.org ^C |
#vim /tmp/ports-supfile
51c51 < *default host=ftp1.FreeBSD.org --- > *default host=ftp.ua.FreeBSD.org |
#vim /tmp/ports-supfile
51c51 < *default host=ftp1.FreeBSD.org --- > *default host=ftp.ua.FreeBSD.org |
#vim /tmp/ports-supfile
51c51 < *default host=ftp1.FreeBSD.org --- > *default host=ftp.ua.FreeBSD.org |
Время первой команды журнала | 16:25:53 2007- 9-13 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:33:19 2007- 9-13 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 8.91 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 5.94 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.46 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 3.65 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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