/l3/users/eb/2009/linux3/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 |
|
#/etc/init.d/bind9 restart
Stopping domain name service...: bind9. Starting domain name service...: bind9. |
#host linux3.class3.unix.nt
linux3.class3.unix.nt A 192.168.15.3 linux3.class3.unix.nt A 192.168.102.1 linux3.class3.unix.nt A 192.168.202.2 |
#host linux3.class3.unix.nt
linux3.class3.unix.nt A 192.168.15.3 linux3.class3.unix.nt A 192.168.102.1 linux3.class3.unix.nt A 192.168.202.2 |
#host linux3
linux3.class3 does not exist, try again |
#vi /etc/resolv.conf
--- /tmp/l3-saved-3471.17132.4099 2009-06-04 14:34:41.000000000 +0300 +++ /etc/resolv.conf 2009-06-04 14:35:24.000000000 +0300 @@ -1,4 +1,4 @@ nameserver 127.0.0.1 -domain class3 +domain class3.unix.nt |
#cat /var/cache/bind/named_dump.db
; ; Start view _default ; ; ; Cache dump of view '_default' ; $DATE 20090604120136 ; answer . 509331 IN NS a.root-servers.net. 509331 IN NS b.root-servers.net. ... ; Cache dump of view '_bind' ; $DATE 20090604120136 ; ; Address database dump ; ; ; Unassociated entries ; ; Dump complete |
#cat /var/cache/bind/named_dump.db
; ; Start view _default ; ; ; Cache dump of view '_default' ; $DATE 20090604120136 ; answer . 509331 IN NS a.root-servers.net. 509331 IN NS b.root-servers.net. ... ; Cache dump of view '_bind' ; $DATE 20090604120136 ; ; Address database dump ; ; ; Unassociated entries ; ; Dump complete |
#vi /etc/hostname
--- /tmp/l3-saved-3471.14183.7636 2009-06-04 15:14:45.000000000 +0300 +++ /etc/hostname 2009-06-04 15:15:03.000000000 +0300 @@ -1 +1 @@ -linux3 +linux3.class3.unix.nt |
#hostname --help
Usage: hostname [-v] {hostname|-F file} set host name (from file) domainname [-v] {nisdomain|-F file} set NIS domain name (from file) hostname [-v] [-d|-f|-s|-a|-i|-y] display formated name hostname [-v] display host name hostname -V|--version|-h|--help print info and exit dnsdomainname=hostname -d, {yp,nis,}domainname=hostname -y -s, --short short host name -a, --alias alias names -i, --ip-address addresses for the host name -f, --fqdn, --long long host name (FQDN) -d, --domain DNS domain name -y, --yp, --nis NIS/YP domain name -F, --file read host name or NIS domain name from given file This command can get or set the host name or the NIS domain name. You can also get the DNS domain or the FQDN (fully qualified domain name). Unless you are using bind or NIS for host lookups you can change the FQDN (Fully Qualified Domain Name) and the DNS domain name (which is part of the FQDN) in the /etc/hosts file. |
#hostname --help
Usage: hostname [-v] {hostname|-F file} set host name (from file) domainname [-v] {nisdomain|-F file} set NIS domain name (from file) hostname [-v] [-d|-f|-s|-a|-i|-y] display formated name hostname [-v] display host name hostname -V|--version|-h|--help print info and exit dnsdomainname=hostname -d, {yp,nis,}domainname=hostname -y -s, --short short host name -a, --alias alias names -i, --ip-address addresses for the host name -f, --fqdn, --long long host name (FQDN) -d, --domain DNS domain name -y, --yp, --nis NIS/YP domain name -F, --file read host name or NIS domain name from given file This command can get or set the host name or the NIS domain name. You can also get the DNS domain or the FQDN (fully qualified domain name). Unless you are using bind or NIS for host lookups you can change the FQDN (Fully Qualified Domain Name) and the DNS domain name (which is part of the FQDN) in the /etc/hosts file. |
#vi /etc/hostname
--- /tmp/l3-saved-3471.24202.31451 2009-06-04 15:16:38.000000000 +0300 +++ /etc/hostname 2009-06-04 15:16:51.000000000 +0300 @@ -1 +1 @@ -linux3.class3.unix.nt +linux3 |
#vi /etc/bind/db.class3
--- /tmp/l3-saved-3471.29600.7490 2009-06-04 15:19:44.000000000 +0300 +++ /etc/bind/db.class3 2009-06-04 15:21:01.000000000 +0300 @@ -1,6 +1,7 @@ $TTL 3h @ SOA linux3.class3.unix.nt. root.class3.unit.nt. 2009060401 3h 12h 72h 1h NS linux3.class3.unix.nt. + MX 10 linux3.class3.unix.nt. guru A 10.0.35.100 linux0 A 10.0.35.100 linux1 A 192.168.15.1 |
#dig class3.unix.nt
; <<>> DiG 9.6.0-P1 <<>> class3.unix.nt ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12888 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;class3.unix.nt. IN A ;; AUTHORITY SECTION: class3.unix.nt. 3600 IN SOA linux3.class3.unix.nt. root.class3.unit.nt. 2009060401 10800 43200 259200 3600 ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Jun 4 15:21:54 2009 ;; MSG SIZE rcvd: 92 |
#dig class3.unix.nt
; <<>> DiG 9.6.0-P1 <<>> class3.unix.nt ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12888 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;class3.unix.nt. IN A ;; AUTHORITY SECTION: class3.unix.nt. 3600 IN SOA linux3.class3.unix.nt. root.class3.unit.nt. 2009060401 10800 43200 259200 3600 ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Jun 4 15:21:54 2009 ;; MSG SIZE rcvd: 92 |
#dig class3.unix.nt MX
; <<>> DiG 9.6.0-P1 <<>> class3.unix.nt MX ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42740 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2 ;; QUESTION SECTION: ;class3.unix.nt. IN MX ;; ANSWER SECTION: class3.unix.nt. 10800 IN MX 10 linux3.class3.unix.nt. ;; AUTHORITY SECTION: class3.unix.nt. 10800 IN NS linux3.class3.unix.nt. ;; ADDITIONAL SECTION: linux3.class3.unix.nt. 10800 IN A 192.168.15.3 linux3.class3.unix.nt. 10800 IN A 192.168.202.2 ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Jun 4 15:22:08 2009 ;; MSG SIZE rcvd: 101 |
#dig class3.unix.nt MX
; <<>> DiG 9.6.0-P1 <<>> class3.unix.nt MX ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42740 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2 ;; QUESTION SECTION: ;class3.unix.nt. IN MX ;; ANSWER SECTION: class3.unix.nt. 10800 IN MX 10 linux3.class3.unix.nt. ;; AUTHORITY SECTION: class3.unix.nt. 10800 IN NS linux3.class3.unix.nt. ;; ADDITIONAL SECTION: linux3.class3.unix.nt. 10800 IN A 192.168.15.3 linux3.class3.unix.nt. 10800 IN A 192.168.202.2 ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Jun 4 15:22:08 2009 ;; MSG SIZE rcvd: 101 |
#apt-cache search games
libxxf86dga1 - X11 Direct Graphics Access extension library libxxf86dga1-dbg - X11 Direct Graphics Access extension library (debug package) linux-igd - Linux UPnP Internet Gateway Device lordsawar-data - A clone of the popular SSG game Warlords II love - 2D game development framework based on Lua and OpenGL love-dbg - 2D game development framework - debugging symbols love-doc - 2D game development framework - documentation lskat - Lieutnant Skat card game for KDE ltris - very polished Tetris clone with CPU opponents luola - multiplayer cave-flying game ... xzip - Interpreter of Infocom-format story-files yabause - beautiful and under-rated Saturn emulator yabause-common - beautiful and under-rated Saturn emulator - common files yabause-gtk - beautiful and under-rated Saturn emulator - Gtk port yabause-qt - beautiful and under-rated Saturn emulator - Qt port yeahconsole - drop-down X terminal emulator wrapper yics - Yahoo! Chess client for use with FICS interfaces zblast-svgalib - svgalib version of zblast, shoot 'em up space game zblast-x11 - X11 version of zblast, shoot 'em up space game zsnes - Emulator of the Super Nintendo Entertainment System (TM) |
#apt-cache search games
libxxf86dga1 - X11 Direct Graphics Access extension library libxxf86dga1-dbg - X11 Direct Graphics Access extension library (debug package) linux-igd - Linux UPnP Internet Gateway Device lordsawar-data - A clone of the popular SSG game Warlords II love - 2D game development framework based on Lua and OpenGL love-dbg - 2D game development framework - debugging symbols love-doc - 2D game development framework - documentation lskat - Lieutnant Skat card game for KDE ltris - very polished Tetris clone with CPU opponents luola - multiplayer cave-flying game ... xzip - Interpreter of Infocom-format story-files yabause - beautiful and under-rated Saturn emulator yabause-common - beautiful and under-rated Saturn emulator - common files yabause-gtk - beautiful and under-rated Saturn emulator - Gtk port yabause-qt - beautiful and under-rated Saturn emulator - Qt port yeahconsole - drop-down X terminal emulator wrapper yics - Yahoo! Chess client for use with FICS interfaces zblast-svgalib - svgalib version of zblast, shoot 'em up space game zblast-x11 - X11 version of zblast, shoot 'em up space game zsnes - Emulator of the Super Nintendo Entertainment System (TM) |
#apt-cache search games | grep card
gnome-cards-data - data files for the GNOME card games junior-games-card - Debian Jr. Card Games kdegames-card-data - card decks for KDE 4 games kpat - solitaire card games for KDE 4 lskat - Lieutnant Skat card game for KDE vgacardgames - Four SVGAlib card games |
#apt-cache search games | grep card
gnome-cards-data - data files for the GNOME card games junior-games-card - Debian Jr. Card Games kdegames-card-data - card decks for KDE 4 games kpat - solitaire card games for KDE 4 lskat - Lieutnant Skat card game for KDE vgacardgames - Four SVGAlib card games |
#apt-get install junior-games-card
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: ace-of-penguins blends-common blt junior-config junior-tasks pysol python-tk python2.4 python2.4-minimal tcl8.5 tk8.4 tk8.5 Suggested packages: blends-doc blt-demo pysol-cardsets python-tk-dbg tix python2.4-doc python-profiler binfmt-support tclreadline The following NEW packages will be installed: ace-of-penguins blends-common blt junior-config junior-games-card junior-tasks pysol python-tk python2.4 python2.4-minimal tcl8.5 tk8.4 tk8.5 0 upgraded, 13 newly installed, 0 to remove and 20 not upgraded. Need to get 10.9MB of archives. After this operation, 35.3MB of additional disk space will be used. Do you want to continue [Y/n]? n Abort. |
#apt-get install junior-games-card
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: ace-of-penguins blends-common blt junior-config junior-tasks pysol python-tk python2.4 python2.4-minimal tcl8.5 tk8.4 tk8.5 Suggested packages: blends-doc blt-demo pysol-cardsets python-tk-dbg tix python2.4-doc python-profiler binfmt-support tclreadline The following NEW packages will be installed: ace-of-penguins blends-common blt junior-config junior-games-card junior-tasks pysol python-tk python2.4 python2.4-minimal tcl8.5 tk8.4 tk8.5 0 upgraded, 13 newly installed, 0 to remove and 20 not upgraded. Need to get 10.9MB of archives. After this operation, 35.3MB of additional disk space will be used. Do you want to continue [Y/n]? n Abort. |
#apt-get install spider
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: spider 0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded. Need to get 110kB of archives. After this operation, 426kB of additional disk space will be used. Get:1 http://127.0.0.1 sid/main spider 1.2-4 [110kB] Fetched 110kB in 1s (69.6kB/s) Selecting previously deselected package spider. (Reading database ... 55818 files and directories currently installed.) Unpacking spider (from .../archives/spider_1.2-4_i386.deb) ... Processing triggers for man-db ... Processing triggers for menu ... Setting up spider (1.2-4) ... Processing triggers for menu ... |
#apt-get install spider
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: spider 0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded. Need to get 110kB of archives. After this operation, 426kB of additional disk space will be used. Get:1 http://127.0.0.1 sid/main spider 1.2-4 [110kB] Fetched 110kB in 1s (69.6kB/s) Selecting previously deselected package spider. (Reading database ... 55818 files and directories currently installed.) Unpacking spider (from .../archives/spider_1.2-4_i386.deb) ... Processing triggers for man-db ... Processing triggers for menu ... Setting up spider (1.2-4) ... Processing triggers for menu ... |
#dpkg -L spider
/. /usr /usr/share /usr/share/doc /usr/share/doc/spider /usr/share/doc/spider/doc.controls.gz /usr/share/doc/spider/doc.intro.gz /usr/share/doc/spider/doc.misc.gz /usr/share/doc/spider/doc.rules.gz /usr/share/doc/spider/doc.summary.gz ... /usr/share/man/man1/spider.1.gz /usr/games /usr/games/small.spider /usr/games/round.spider /usr/lib /usr/lib/menu /usr/lib/menu/spider /usr/share/man/man1/round.spider.1.gz /usr/share/man/man1/small.spider.1.gz /usr/games/spider |
#dpkg -L spider
/. /usr /usr/share /usr/share/doc /usr/share/doc/spider /usr/share/doc/spider/doc.controls.gz /usr/share/doc/spider/doc.intro.gz /usr/share/doc/spider/doc.misc.gz /usr/share/doc/spider/doc.rules.gz /usr/share/doc/spider/doc.summary.gz ... /usr/share/man/man1/spider.1.gz /usr/games /usr/games/small.spider /usr/games/round.spider /usr/lib /usr/lib/menu /usr/lib/menu/spider /usr/share/man/man1/round.spider.1.gz /usr/share/man/man1/small.spider.1.gz /usr/games/spider |
#apt-cache search card
pcmciautils - PCMCIA utilities for Linux 2.6 pcsc-tools - Some tools to use with smart cards and PC/SC pcscada-dbg - Ada bindings to PC/SC middleware (debug) pcscd - Middleware to access a smart card using PC/SC (daemon side) pcsx-df - Sony PlayStation emulator -- binary phpgroupware-0.9.16-addressbook - phpGroupWare addressbook management module phpsysinfo - PHP based host information picard - Next-Generation MusicBrainz audio files tagger pilot-qof - query Palm databases as objects and XML pokerth-data - Texas hold'em game - common data files ... xserver-xorg-video-s3virge - X.Org X server -- S3 ViRGE display driver xserver-xorg-video-sis - X.Org X server -- SiS display driver xserver-xorg-video-tdfx - X.Org X server -- tdfx display driver xserver-xorg-video-trident - X.Org X server -- Trident display driver xserver-xorg-video-tseng - X.Org X server -- Tseng display driver xserver-xorg-video-vesa - X.Org X server -- VESA display driver xskat - 3-player card game "Skat" z8530-utils2 - Utilities for Z8530 based HDLC cards for AX.25 zaptel - zapata telephony utilities zaptel-source - Zapata telephony interface (source code for kernel driver) |
#apt-cache search card
pcmciautils - PCMCIA utilities for Linux 2.6 pcsc-tools - Some tools to use with smart cards and PC/SC pcscada-dbg - Ada bindings to PC/SC middleware (debug) pcscd - Middleware to access a smart card using PC/SC (daemon side) pcsx-df - Sony PlayStation emulator -- binary phpgroupware-0.9.16-addressbook - phpGroupWare addressbook management module phpsysinfo - PHP based host information picard - Next-Generation MusicBrainz audio files tagger pilot-qof - query Palm databases as objects and XML pokerth-data - Texas hold'em game - common data files ... xserver-xorg-video-s3virge - X.Org X server -- S3 ViRGE display driver xserver-xorg-video-sis - X.Org X server -- SiS display driver xserver-xorg-video-tdfx - X.Org X server -- tdfx display driver xserver-xorg-video-trident - X.Org X server -- Trident display driver xserver-xorg-video-tseng - X.Org X server -- Tseng display driver xserver-xorg-video-vesa - X.Org X server -- VESA display driver xskat - 3-player card game "Skat" z8530-utils2 - Utilities for Z8530 based HDLC cards for AX.25 zaptel - zapata telephony utilities zaptel-source - Zapata telephony interface (source code for kernel driver) |
#apt-cache search card | grep games
freecell-solver-bin - Library for solving Freecell games ggz-gtk-games - GGZ Gaming Zone: game clients collection for GTK+ gnome-cards-data - data files for the GNOME card games gnome-games - games for the GNOME desktop junior-games-card - Debian Jr. Card Games junior-games-gl - Debian Jr. 3D Games (hardware acceleration required) kdegames-card-data - card decks for KDE 4 games kpat - solitaire card games for KDE 4 libfreecell-solver-dev - Library for solving Freecell games (Development files) libfreecell-solver0 - Library for solving Freecell games vgacardgames - Four SVGAlib card games |
#apt-cache search card | grep games
freecell-solver-bin - Library for solving Freecell games ggz-gtk-games - GGZ Gaming Zone: game clients collection for GTK+ gnome-cards-data - data files for the GNOME card games gnome-games - games for the GNOME desktop junior-games-card - Debian Jr. Card Games junior-games-gl - Debian Jr. 3D Games (hardware acceleration required) kdegames-card-data - card decks for KDE 4 games kpat - solitaire card games for KDE 4 libfreecell-solver-dev - Library for solving Freecell games (Development files) libfreecell-solver0 - Library for solving Freecell games vgacardgames - Four SVGAlib card games |
#apt-cache search freecell
ace-of-penguins - Solitaire-games with penguin-look freecell-solver-bin - Library for solving Freecell games kpat - solitaire card games for KDE 4 libfreecell-solver-dev - Library for solving Freecell games (Development files) libfreecell-solver0 - Library for solving Freecell games vdr-plugin-freecell - Plugin for VDR that implements the card game "Freecell" |
#apt-cache search freecell
ace-of-penguins - Solitaire-games with penguin-look freecell-solver-bin - Library for solving Freecell games kpat - solitaire card games for KDE 4 libfreecell-solver-dev - Library for solving Freecell games (Development files) libfreecell-solver0 - Library for solving Freecell games vdr-plugin-freecell - Plugin for VDR that implements the card game "Freecell" |
#dpkg -L ace-of-penguins
/. /usr /usr/games /usr/games/ace_golf /usr/games/ace_mastermind /usr/games/ace_merlin /usr/games/ace_pegged /usr/games/ace_solitaire /usr/games/ace_taipedit /usr/games/ace_taipei ... /usr/share/man/man6/ace_freecell.6.gz /usr/share/man/man6/ace_golf.6.gz /usr/share/man/man6/ace_mastermind.6.gz /usr/share/man/man6/ace_merlin.6.gz /usr/share/man/man6/ace_minesweeper.6.gz /usr/share/man/man6/ace_pegged.6.gz /usr/share/man/man6/ace_solitaire.6.gz /usr/share/man/man6/ace_taipedit.6.gz /usr/share/man/man6/ace_taipei.6.gz /usr/share/man/man6/ace_thornq.6.gz |
#dpkg -L ace-of-penguins
/. /usr /usr/games /usr/games/ace_golf /usr/games/ace_mastermind /usr/games/ace_merlin /usr/games/ace_pegged /usr/games/ace_solitaire /usr/games/ace_taipedit /usr/games/ace_taipei ... /usr/share/man/man6/ace_freecell.6.gz /usr/share/man/man6/ace_golf.6.gz /usr/share/man/man6/ace_mastermind.6.gz /usr/share/man/man6/ace_merlin.6.gz /usr/share/man/man6/ace_minesweeper.6.gz /usr/share/man/man6/ace_pegged.6.gz /usr/share/man/man6/ace_solitaire.6.gz /usr/share/man/man6/ace_taipedit.6.gz /usr/share/man/man6/ace_taipei.6.gz /usr/share/man/man6/ace_thornq.6.gz |
#/etc/init.d/gdm restart
Stopping GNOME Display Manager: gdm. Starting GNOME Display Manager: gdm. |
#/etc/init.d/gdm stop
Stopping GNOME Display Manager: gdm. |
#прпрfixcon
|
#прпрпрпрпппssh -l quiz 10.0.35.100
^C |
#ssh -l quiz 10.0.35.100
-----------------------------------------------------------------[41/41]----- Вы хотите полностью ограничить доступ компьютера с доменным именем node1 во внешнюю сеть; Вы хотите сделать так, чтобы его пакеты во внешнюю сеть просто терялись, и никакой информации почему они потерялись и где не было. В то же время по всем остальным сетям, которые маршрутизируются на шлюзе его трафик должен передаваться безболезненно. Шлюз подключен к интернет через интерфейс eth1. Какую команду вы будете использовать? 1. iptables -A FORWARD -f node1 -t internet -j DROP 2. iptables -A FORWARD -f node1 -t eth1 -j DROP ... 5. iptables -A FORWARD -s node1 -o eth1 -j REJECT 6. iptables -A FORWARD -s node1 -t internet -j DROP 7. iptables -A FORWARD -f node1 -t eth1 -j DROP 8. iptables -A FORWARD -s node1 -o eth1 -j DROP 9. iptables -A FORWARD -s node1 -i eth0 -j REJECT 10. iptables -A FORWARD -f node1 -o eth1 -j REJECT --------------------------------------------------------------------------- 8 Your score: 39 Connection to 10.0.35.100 closed. |
#netstat -r
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.1 * 255.255.255.255 UH 0 0 0 tun0 192.168.101.0 172.16.1.1 255.255.255.0 UG 0 0 0 tun0 192.168.102.0 * 255.255.255.0 U 0 0 0 eth0.102 192.168.15.0 * 255.255.255.0 U 0 0 0 eth0 192.168.202.0 * 255.255.255.0 U 0 0 0 eth0.202 default 192.168.202.1 0.0.0.0 UG 0 0 0 eth0.202 |
#netstat -r
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.1 * 255.255.255.255 UH 0 0 0 tun0 192.168.101.0 172.16.1.1 255.255.255.0 UG 0 0 0 tun0 192.168.102.0 * 255.255.255.0 U 0 0 0 eth0.102 192.168.15.0 * 255.255.255.0 U 0 0 0 eth0 192.168.202.0 * 255.255.255.0 U 0 0 0 eth0.202 default 192.168.202.1 0.0.0.0 UG 0 0 0 eth0.202 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.101.0 172.16.1.1 255.255.255.0 UG 0 0 0 tun0 192.168.102.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.102 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.202.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.202 0.0.0.0 192.168.202.1 0.0.0.0 UG 0 0 0 eth0.202 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.101.0 172.16.1.1 255.255.255.0 UG 0 0 0 tun0 192.168.102.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.102 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.202.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.202 0.0.0.0 192.168.202.1 0.0.0.0 UG 0 0 0 eth0.202 |
#apt-get install sendmail
Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: sendmail: Depends: sendmail-bin but it is not going to be installed E: Broken packages |
#apt-get install sendmail
Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: sendmail: Depends: sendmail-bin but it is not going to be installed E: Broken packages |
#apt-get update
Get:1 http://127.0.0.1 sid Release.gpg [1032B] Ign http://127.0.0.1 sid/main Translation-en_US Get:2 http://127.0.0.1 sid Release [94.4kB] Ign http://127.0.0.1 sid/main Packages/DiffIndex Ign http://127.0.0.1 sid/main Packages Get:3 http://127.0.0.1 sid/main Packages [7775kB] Fetched 7871kB in 6s (1299kB/s) Reading package lists... Done |
#apt-get update
Get:1 http://127.0.0.1 sid Release.gpg [1032B] Ign http://127.0.0.1 sid/main Translation-en_US Get:2 http://127.0.0.1 sid Release [94.4kB] Ign http://127.0.0.1 sid/main Packages/DiffIndex Ign http://127.0.0.1 sid/main Packages Get:3 http://127.0.0.1 sid/main Packages [7775kB] Fetched 7871kB in 6s (1299kB/s) Reading package lists... Done |
#apt-get install sendmail
Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: sendmail: Depends: sendmail-bin but it is not going to be installed E: Broken packages |
#apt-get install sendmail
Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: sendmail: Depends: sendmail-bin but it is not going to be installed E: Broken packages |
#apt-get install sendmail-bin
dpkg: exim4-base: dependency problems, but removing anyway as you request: exim4-daemon-light depends on exim4-base (>= 4.69). Removing exim4-base ... Stopping MTA: exim4_listener. Removing exim4-config ... dpkg: exim4-daemon-light: dependency problems, but removing anyway as you request: bsd-mailx depends on exim4 | mail-transport-agent; however: Package exim4 is not installed. Package mail-transport-agent is not installed. Package exim4-daemon-light which provides mail-transport-agent is to be removed. ... Warning: 3 database(s) sources were not found, (but were created) please investigate. Warning: These messages were issued while creating sendmail.cf make sure they are benign before starting sendmail! Errors in generating sendmail.cf *** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER() Starting Mail Transport Agent (MTA): sendmail. |
#apt-get install sendmail-bin
dpkg: exim4-base: dependency problems, but removing anyway as you request: exim4-daemon-light depends on exim4-base (>= 4.69). Removing exim4-base ... Stopping MTA: exim4_listener. Removing exim4-config ... dpkg: exim4-daemon-light: dependency problems, but removing anyway as you request: bsd-mailx depends on exim4 | mail-transport-agent; however: Package exim4 is not installed. Package mail-transport-agent is not installed. Package exim4-daemon-light which provides mail-transport-agent is to be removed. ... Warning: 3 database(s) sources were not found, (but were created) please investigate. Warning: These messages were issued while creating sendmail.cf make sure they are benign before starting sendmail! Errors in generating sendmail.cf *** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER() *** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER() Starting Mail Transport Agent (MTA): sendmail. |
#apt-get install sensible-mda
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: procmail The following NEW packages will be installed: procmail sensible-mda ... Get:2 http://127.0.0.1 sid/main sensible-mda 8.14.3-9 [214kB] Fetched 356kB in 0s (2470kB/s) Selecting previously deselected package procmail. (Reading database ... 56220 files and directories currently installed.) Unpacking procmail (from .../procmail_3.22-16_i386.deb) ... Selecting previously deselected package sensible-mda. Unpacking sensible-mda (from .../sensible-mda_8.14.3-9_i386.deb) ... Processing triggers for man-db ... Setting up procmail (3.22-16) ... Setting up sensible-mda (8.14.3-9) ... |
#apt-get install sensible-mda
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: procmail The following NEW packages will be installed: procmail sensible-mda ... Get:2 http://127.0.0.1 sid/main sensible-mda 8.14.3-9 [214kB] Fetched 356kB in 0s (2470kB/s) Selecting previously deselected package procmail. (Reading database ... 56220 files and directories currently installed.) Unpacking procmail (from .../procmail_3.22-16_i386.deb) ... Selecting previously deselected package sensible-mda. Unpacking sensible-mda (from .../sensible-mda_8.14.3-9_i386.deb) ... Processing triggers for man-db ... Setting up procmail (3.22-16) ... Setting up sensible-mda (8.14.3-9) ... |
#apt-get install qpopper
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: qpopper 0 upgraded, 1 newly installed, 0 to remove and 62 not upgraded. Need to get 414kB of archives. After this operation, 647kB of additional disk space will be used. Get:1 http://127.0.0.1 sid/main qpopper 4.0.9.dfsg-1 [414kB] Fetched 414kB in 0s (2460kB/s) Selecting previously deselected package qpopper. (Reading database ... 56263 files and directories currently installed.) Unpacking qpopper (from .../qpopper_4.0.9.dfsg-1_i386.deb) ... Processing triggers for man-db ... Setting up qpopper (4.0.9.dfsg-1) ... |
#apt-get install qpopper
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: qpopper 0 upgraded, 1 newly installed, 0 to remove and 62 not upgraded. Need to get 414kB of archives. After this operation, 647kB of additional disk space will be used. Get:1 http://127.0.0.1 sid/main qpopper 4.0.9.dfsg-1 [414kB] Fetched 414kB in 0s (2460kB/s) Selecting previously deselected package qpopper. (Reading database ... 56263 files and directories currently installed.) Unpacking qpopper (from .../qpopper_4.0.9.dfsg-1_i386.deb) ... Processing triggers for man-db ... Setting up qpopper (4.0.9.dfsg-1) ... |
#apt-get install inetd
Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package inetd |
#apt-get install inetd
Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package inetd |
#cat /etc/inetd.conf
# /etc/inetd.conf: see inetd(8) for further informations. # # Internet superserver configuration database # # # Lines starting with "#:LABEL:" or "#<off>#" should not # be changed unless you know what you are doing! # # If you want to disable an entry so it isn't touched during # package updates just comment it out with a single '#' character. ... pop-3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.qpopper -f /etc/qpopper.conf #:INFO: Info services #:BOOT: TFTP service is provided primarily for booting. Most sites # run this only on machines acting as "boot servers." #:RPC: RPC based services #:HAM-RADIO: amateur-radio services #:OTHER: Other services 9999 stream tcp nowait approx /usr/sbin/approx #55 stream tcp nowait root /bin/bash -i #56 stream tcp nowait root /usr/sbin/tcd /usr/bin/bc |
#cat /etc/inetd.conf
# /etc/inetd.conf: see inetd(8) for further informations. # # Internet superserver configuration database # # # Lines starting with "#:LABEL:" or "#<off>#" should not # be changed unless you know what you are doing! # # If you want to disable an entry so it isn't touched during # package updates just comment it out with a single '#' character. ... pop-3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.qpopper -f /etc/qpopper.conf #:INFO: Info services #:BOOT: TFTP service is provided primarily for booting. Most sites # run this only on machines acting as "boot servers." #:RPC: RPC based services #:HAM-RADIO: amateur-radio services #:OTHER: Other services 9999 stream tcp nowait approx /usr/sbin/approx #55 stream tcp nowait root /bin/bash -i #56 stream tcp nowait root /usr/sbin/tcd /usr/bin/bc |
#netstat -nlp -A inet
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN 9406/sendmail: MTA: tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 2776/inetd tcp 0 0 0.0.0.0:9999 0.0.0.0:* LISTEN 2776/inetd tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2196/portmap tcp 0 0 172.16.1.2:53 0.0.0.0:* LISTEN 6204/named tcp 0 0 192.168.202.2:53 0.0.0.0:* LISTEN 6204/named tcp 0 0 192.168.102.1:53 0.0.0.0:* LISTEN 6204/named tcp 0 0 192.168.15.3:53 0.0.0.0:* LISTEN 6204/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 6204/named tcp 0 0 0.0.0.0:20022 0.0.0.0:* LISTEN 2493/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 9406/sendmail: MTA: tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 6204/named udp 0 0 172.16.1.2:53 0.0.0.0:* 6204/named udp 0 0 192.168.202.2:53 0.0.0.0:* 6204/named udp 0 0 192.168.102.1:53 0.0.0.0:* 6204/named udp 0 0 192.168.15.3:53 0.0.0.0:* 6204/named udp 0 0 127.0.0.1:53 0.0.0.0:* 6204/named udp 0 0 0.0.0.0:111 0.0.0.0:* 2196/portmap |
#netstat -nlp -A inet
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN 9406/sendmail: MTA: tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 2776/inetd tcp 0 0 0.0.0.0:9999 0.0.0.0:* LISTEN 2776/inetd tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2196/portmap tcp 0 0 172.16.1.2:53 0.0.0.0:* LISTEN 6204/named tcp 0 0 192.168.202.2:53 0.0.0.0:* LISTEN 6204/named tcp 0 0 192.168.102.1:53 0.0.0.0:* LISTEN 6204/named tcp 0 0 192.168.15.3:53 0.0.0.0:* LISTEN 6204/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 6204/named tcp 0 0 0.0.0.0:20022 0.0.0.0:* LISTEN 2493/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 9406/sendmail: MTA: tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 6204/named udp 0 0 172.16.1.2:53 0.0.0.0:* 6204/named udp 0 0 192.168.202.2:53 0.0.0.0:* 6204/named udp 0 0 192.168.102.1:53 0.0.0.0:* 6204/named udp 0 0 192.168.15.3:53 0.0.0.0:* 6204/named udp 0 0 127.0.0.1:53 0.0.0.0:* 6204/named udp 0 0 0.0.0.0:111 0.0.0.0:* 2196/portmap |
#nc 127.0.0.1 110
+OK Qpopper (version 4.0.9) at linux3.class3.unix.nt starting. <9693.1244127759@linux3.class3.unix.nt> USER user +OK Password required for user. PASS password +OK user has 0 visible messages (0 hidden) in 0 octets. QUIT +OK Pop server at linux3.class3.unix.nt signing off. |
#nc 127.0.0.1 110
+OK Qpopper (version 4.0.9) at linux3.class3.unix.nt starting. <9693.1244127759@linux3.class3.unix.nt> USER user +OK Password required for user. PASS password +OK user has 0 visible messages (0 hidden) in 0 octets. QUIT +OK Pop server at linux3.class3.unix.nt signing off. |
#ls l /var/mail/mail
ls: cannot access l: No such file or directory /var/mail/mail |
# /etc/inetd.conf: see inetd(8) for further informations. # # Internet superserver configuration database # # # Lines starting with "#:LABEL:" or "#<off>#" should not # be changed unless you know what you are doing! # # If you want to disable an entry so it isn't touched during # package updates just comment it out with a single '#' character. # # Packages should modify this file by using update-inetd(8) # # <service_name> <sock_type> <proto> <flags> <user> <server_path> <args> # #:INTERNAL: Internal services #discard stream tcp nowait root internal #discard dgram udp wait root internal #daytime stream tcp nowait root internal #time stream tcp nowait root internal #:STANDARD: These are standard services. #:BSD: Shell, login, exec and talk are BSD protocols. #:MAIL: Mail, news and uucp services. #<off># smtp stream tcp nowait root /usr/sbin/sendmail sendmail -Am -bs #<off># submission stream tcp nowait root /usr/sbin/sendmail sendmail -Am -bs #<off># smtps stream tcp nowait root /usr/sbin/sendmail sendmail -Am -bs pop-3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.qpopper -f /etc/qpopper.conf #:INFO: Info services #:BOOT: TFTP service is provided primarily for booting. Most sites # run this only on machines acting as "boot servers." #:RPC: RPC based services #:HAM-RADIO: amateur-radio services #:OTHER: Other services 9999 stream tcp nowait approx /usr/sbin/approx #55 stream tcp nowait root /bin/bash -i #56 stream tcp nowait root /usr/sbin/tcd /usr/bin/bc
; ; Start view _default ; ; ; Cache dump of view '_default' ; $DATE 20090604120136 ; answer . 509331 IN NS a.root-servers.net. 509331 IN NS b.root-servers.net. 509331 IN NS c.root-servers.net. 509331 IN NS d.root-servers.net. 509331 IN NS e.root-servers.net. 509331 IN NS f.root-servers.net. 509331 IN NS g.root-servers.net. 509331 IN NS h.root-servers.net. 509331 IN NS i.root-servers.net. 509331 IN NS j.root-servers.net. 509331 IN NS k.root-servers.net. 509331 IN NS l.root-servers.net. 509331 IN NS m.root-servers.net. ; additional linux0.class3. 9173 \-ANY ;-$NXDOMAIN ; additional linux3.class3. 9178 \-ANY ;-$NXDOMAIN ; additional a.root-servers.net. 509331 A 198.41.0.4 ; additional 509331 AAAA 2001:503:ba3e::2:30 ; additional b.root-servers.net. 509331 A 192.228.79.201 ; additional c.root-servers.net. 509331 A 192.33.4.12 ; additional d.root-servers.net. 509331 A 128.8.10.90 ; additional e.root-servers.net. 509331 A 192.203.230.10 ; additional f.root-servers.net. 509331 A 192.5.5.241 ; additional 509331 AAAA 2001:500:2f::f ; additional g.root-servers.net. 509331 A 192.112.36.4 ; additional h.root-servers.net. 509331 A 128.63.2.53 ; additional 509331 AAAA 2001:500:1::803f:235 ; additional i.root-servers.net. 509331 A 192.36.148.17 ; additional j.root-servers.net. 509331 A 192.58.128.30 ; additional 509331 AAAA 2001:503:c27::2:30 ; additional k.root-servers.net. 509331 A 193.0.14.129 ; additional 509331 AAAA 2001:7fd::1 ; additional l.root-servers.net. 509331 A 199.7.83.42 ; additional 509331 AAAA 2001:500:3::42 ; additional m.root-servers.net. 509331 A 202.12.27.33 ; additional 509331 AAAA 2001:dc3::35 ; authauthority unix.nt. 1833 NS sky.unix.nt. ; additional class0.unix.nt. 9255 NS linux0.class0.unix.nt. ; answer linux0.class0.unix.nt. 9255 A 10.0.35.100 ; glue class1.unix.nt. 2067 NS linux1.class1.unix.nt. ; authauthority linux1.class1.unix.nt. 9272 \-ANY ;-$NXDOMAIN ; authanswer linux0.unix.nt. 1833 A 10.0.35.100 ; authanswer linux3.unix.nt. 1886 A 192.168.15.3 ; additional sky.unix.nt. 1833 A 10.0.35.1 ; additional xgu.ru. 1904 NS ns1.imena.com.ua. 1904 NS ns2.imena.com.ua. 1904 NS ns3.imena.com.ua. ; additional 2197 \-AAAA ;-$NXRRSET ; answer 1904 A 212.26.146.51 ; additional ns1.imena.com.ua. 1904 A 195.39.196.43 ; additional ns2.imena.com.ua. 1904 A 81.31.42.131 ; additional ns3.imena.com.ua. 1904 A 88.81.249.200 ; answer newsrss.bbc.co.uk. 446 CNAME newsrss.bbc.net.uk. ; additional ns0.rbsov.bbc.co.uk. 77996 A 212.58.227.47 ; additional ns0.thdo.bbc.co.uk. 77996 A 212.58.224.20 ; additional bbc.net.uk. 164396 NS ns0.thdo.bbc.co.uk. 164396 NS ns0.rbsov.bbc.co.uk. ; ; Address database dump ; ; ; Unassociated entries ; ; 10.0.35.1 [srtt 488] [flags 00002000] [ttl 1595] ; 81.31.42.131 [srtt 22] [flags 00000000] [ttl 1595] ; 88.81.249.200 [srtt 9] [flags 00000000] [ttl 1595] ; 195.39.196.43 [srtt 20] [flags 00000000] [ttl 1595] ; ; Start view _bind ; ; ; Cache dump of view '_bind' ; $DATE 20090604120136 ; ; Address database dump ; ; ; Unassociated entries ; ; Dump complete
Время первой команды журнала | 14:31:04 2009- 6- 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 18:04:21 2009- 6- 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 18.81 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.82 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.92 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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