/l3/users/oleg22/nt-voip/linux2.unix.nt/root :1 :2 :3 :4 :5 |
|
#w
12:38:19 up 35 min, 8 users, load average: 0.04, 0.07, 0.18 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 12:03 13:03 0.33s 0.22s ssh user@192.168.15.252 root tty2 12:04 20:28 0.20s 0.18s -bash root tty3 12:09 23:45 0.11s 0.09s -bash root tty4 12:38 0.00s 0.14s 0.00s script -f -c bash -q /root/.lilalo//202514788372921662-1318844297.script user tty7 :0 12:18 35:28 44.40s 0.08s x-session-manager root pts/1 :0.0 12:19 15.00s 0.00s 0.00s bash root pts/3 :0.0 12:19 7:40 0.24s 0.24s mc user pts/4 :0.0 12:30 6:47 0.13s 0.02s script -f -c bash -q /home/user/.lilalo//1774045921310929443-1318843850.script |
#df -h
Filesystem Size Used Avail Use% Mounted on /dev/sda1 92G 3.4G 84G 4% / tmpfs 4.0G 0 4.0G 0% /lib/init/rw udev 4.0G 156K 4.0G 1% /dev tmpfs 4.0G 0 4.0G 0% /dev/shm |
#w
12:47:33 up 44 min, 7 users, load average: 0.38, 0.25, 0.21 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 12:03 22:17 0.33s 0.22s ssh user@192.16 root tty2 12:04 29:42 0.20s 0.18s -bash root tty3 12:09 32:59 0.11s 0.09s -bash root tty4 12:38 9:14 0.14s 0.00s script -f -c ba user tty7 :0 12:18 44:42 1:05 0.08s x-session-manag root pts/1 :0.0 12:39 0.00s 0.00s 0.00s script -f -c ba user pts/4 :0.0 12:30 16:01 0.13s 0.02s script -f -c ba |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 localnet * 255.255.255.0 U 0 0 0 eth0 |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default switch.unix.nt 0.0.0.0 UG 0 0 0 eth0 localnet * 255.255.255.0 U 0 0 0 eth0 |
#apt-cache search asterisk
asterisk-mobile - bluetooth mobile devices support for Asterisk asterisk-mp3 - MP3 format support (format_mp3) for the Asterisk PBX asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly) asterisk-ooh323c - H.323 protocol support for Asterisk (ooh323c stack) asterisk-chan-capi - Common ISDN API 2.0 implementation for Asterisk asterisk-core-sounds-en-g722 - asterisk PBX sound files - English/g722 asterisk-core-sounds-en-gsm - asterisk PBX sound files - English/gsm asterisk-core-sounds-en-wav - asterisk PBX sound files - English/wav asterisk-core-sounds-es-g722 - asterisk PBX sound files - Spanish/g722 asterisk-core-sounds-es-gsm - asterisk PBX sound files - Spanish/gsm ... asterisk - Open Source Private Branch Exchange (PBX) dahdi-linux - DAHDI telephony interface - Linux userspace parts dahdi-source - DAHDI telephony interface - source code for kernel driver dahdi - utilities for using the DAHDI kernel modules iaxmodem - software modem with IAX2 connectivity libasterisk-agi-perl - Collections of Perl modules to be used with Asterisk PBX AGI libnetsds-perl - Service Delivery Suite framework op-panel - switchboard type application for the Asterisk PBX libopenr2-3 - MFC/R2 (telephony) call setup library python-asterisk - Asterisk Manager API interface module for Python |
#echo $LANG
en_US.UTF-8 |
#apt-cache search asterisk
asterisk-mobile - bluetooth mobile devices support for Asterisk asterisk-mp3 - MP3 format support (format_mp3) for the Asterisk PBX asterisk-mysql - MySQL support for the Asterisk PBX (cdr mainly) asterisk-ooh323c - H.323 protocol support for Asterisk (ooh323c stack) asterisk-chan-capi - Common ISDN API 2.0 implementation for Asterisk asterisk-core-sounds-en-g722 - asterisk PBX sound files - English/g722 asterisk-core-sounds-en-gsm - asterisk PBX sound files - English/gsm asterisk-core-sounds-en-wav - asterisk PBX sound files - English/wav asterisk-core-sounds-es-g722 - asterisk PBX sound files - Spanish/g722 asterisk-core-sounds-es-gsm - asterisk PBX sound files - Spanish/gsm ... asterisk - Open Source Private Branch Exchange (PBX) dahdi-linux - DAHDI telephony interface - Linux userspace parts dahdi-source - DAHDI telephony interface - source code for kernel driver dahdi - utilities for using the DAHDI kernel modules iaxmodem - software modem with IAX2 connectivity libasterisk-agi-perl - Collections of Perl modules to be used with Asterisk PBX AGI libnetsds-perl - Service Delivery Suite framework op-panel - switchboard type application for the Asterisk PBX libopenr2-3 - MFC/R2 (telephony) call setup library python-asterisk - Asterisk Manager API interface module for Python |
#apt-get install asterisk asterisk-config asterisk-sounds-extra asterisk-sounds-main
Package configuration ââââââââââââââââââââââââââââââââââââââââââââââââââââââ⤠Configuring libvpb0 ââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â This is the numeric code for the region your phone system will be operating in (eg. 61 for Australia or 33 for France). It is â â used to configure the default regional standards that Voicetronix telephony hardware should comply with. â â â â ITU-T telephone code: â â â â3801______________________________________________________________________________________________________________________________ â â â â <Ok> â ... Setting up unixodbc (2.2.14p2-1) ... Setting up asterisk (1:1.6.2.9-2+squeeze3) ... Adding system user for Asterisk Adding user `asterisk' to group `dialout' ... Adding user asterisk to group dialout Done. Adding user `asterisk' to group `audio' ... Adding user asterisk to group audio Done. Starting Asterisk PBX: asterisk. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#dpkg -L asterisk-sounds-main
/. /usr /usr/share /usr/share/doc /usr/share/doc/asterisk-sounds-main /usr/share/doc/asterisk-sounds-main/NEWS.Debian.gz /usr/share/doc/asterisk-sounds-main/changelog.Debian.gz /usr/share/doc/asterisk-sounds-main/changelog.gz /usr/share/doc/asterisk-sounds-main/copyright /usr/share/asterisk ... /usr/share/asterisk/sounds/en_US_f_Allison/phonetic/o_p.gsm /usr/share/asterisk/sounds/en_US_f_Allison/pbx-transfer.gsm /usr/share/asterisk/sounds/en_US_f_Allison/vm-from-phonenumber.gsm /usr/share/asterisk/sounds/en_US_f_Allison/queue-holdtime.gsm /usr/share/asterisk/sounds/en_US_f_Allison/vm-toforward.gsm /usr/share/asterisk/sounds/en_US_f_Allison/conf-otherinparty.gsm /usr/share/asterisk/sounds/.asterisk-core-sounds-en-gsm-1.4.19 /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/asterisk-sounds-main |
#ps aux | grep asterisk
asterisk 300 0.9 0.2 48088 18056 ? Ssl 14:43 0:00 /usr/sbin/asterisk -p -U asterisk asterisk 301 0.0 0.0 2936 564 ? S 14:43 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 300 root 357 0.0 0.0 3904 724 pts/2 S+ 14:44 0:00 grep asterisk |
#asterisk -rvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux2 (pid = 300) ... linux2*CLI> linux2*CLI> linux2*CLI> linux2*CLI> linux2*CLI> linux2*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline] linux2*CLI> quit Executing last minute cleanups |
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:46:1a:50 inet addr:192.168.15.22 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::2e27:d7ff:fe46:1a50/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:580208 errors:0 dropped:0 overruns:0 frame:0 TX packets:325275 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:741669255 (707.3 MiB) TX bytes:23714018 (22.6 MiB) Interrupt:20 Memory:fe400000-fe420000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2491 errors:0 dropped:0 overruns:0 frame:0 TX packets:2491 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:218966 (213.8 KiB) TX bytes:218966 (213.8 KiB) |
#/etc/in
init.d/ initramfs-tools/ insserv/ insserv.conf.d/ |
#mc
|
#ifdown
ifdown: Use --help for help |
#ifdown eth0
SIOCDELRT: No such process |
#ifdown eth0
ifdown: interface eth0 not configured |
#ifdown eth0
ifdown: interface eth0 not configured |
#ifup eth0
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:46:1a:50 inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0 inet6 addr: fe80::2e27:d7ff:fe46:1a50/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:580732 errors:0 dropped:0 overruns:0 frame:0 TX packets:325449 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:741730345 (707.3 MiB) TX bytes:23729333 (22.6 MiB) Interrupt:20 Memory:fe400000-fe420000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2498 errors:0 dropped:0 overruns:0 frame:0 TX packets:2498 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:219584 (214.4 KiB) TX bytes:219584 (214.4 KiB) |
#ping mail.ru
ping: unknown host mail.ru |
#ping mail.ru
^C |
#ping mail.ru
ping: unknown host mail.ru |
#ping mail.ru
ping: unknown host mail.ru |
#ping mail.ru
^C |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. From 192.168.20.1 icmp_seq=2 Destination Host Unreachable From 192.168.20.1 icmp_seq=3 Destination Host Unreachable From 192.168.20.1 icmp_seq=4 Destination Host Unreachable From 192.168.20.1 icmp_seq=5 Destination Host Unreachable From 192.168.20.1 icmp_seq=6 Destination Host Unreachable From 192.168.20.1 icmp_seq=8 Destination Host Unreachable From 192.168.20.1 icmp_seq=9 Destination Host Unreachable From 192.168.20.1 icmp_seq=10 Destination Host Unreachable From 192.168.20.1 icmp_seq=11 Destination Host Unreachable From 192.168.20.1 icmp_seq=12 Destination Host Unreachable From 192.168.20.1 icmp_seq=13 Destination Host Unreachable From 192.168.20.1 icmp_seq=14 Destination Host Unreachable From 192.168.20.1 icmp_seq=15 Destination Host Unreachable From 192.168.20.1 icmp_seq=16 Destination Host Unreachable From 192.168.20.1 icmp_seq=17 Destination Host Unreachable From 192.168.20.1 icmp_seq=18 Destination Host Unreachable ^C --- 10.0.35.1 ping statistics --- 19 packets transmitted, 0 received, +16 errors, 100% packet loss, time 18095ms pipe 3 |
#ping 192.168.20.254
PING 192.168.20.254 (192.168.20.254) 56(84) bytes of data. 64 bytes from 192.168.20.254: icmp_req=1 ttl=64 time=3.98 ms 64 bytes from 192.168.20.254: icmp_req=2 ttl=64 time=0.647 ms 64 bytes from 192.168.20.254: icmp_req=3 ttl=64 time=0.613 ms ^C --- 192.168.20.254 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.613/1.747/3.982/1.580 ms |
#ifdown eth0
SIOCDELRT: No such process |
#ifdown eth0
ifdown: interface eth0 not configured |
#ifup eth0
|
#ping mail.ru
PING mail.ru (94.100.191.203) 56(84) bytes of data. 64 bytes from 94.100.191.203: icmp_req=1 ttl=57 time=22.8 ms ^C64 bytes from 94.100.191.203: icmp_req=2 ttl=57 time=22.8 ms --- mail.ru ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 5090ms rtt min/avg/max/mdev = 22.804/22.819/22.835/0.151 ms |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.20.254 0.0.0.0 UG 0 0 0 eth0 default 192.168.20.253 0.0.0.0 UG 0 0 0 eth0 192.168.20.0 * 255.255.255.0 U 0 0 0 eth0 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.20.254 0.0.0.0 UG 0 0 0 eth0 default 192.168.20.253 0.0.0.0 UG 0 0 0 eth0 192.168.20.0 * 255.255.255.0 U 0 0 0 eth0 |
#/etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning). Reconfiguring network interfaces...done. |
#ifconfig
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2594 errors:0 dropped:0 overruns:0 frame:0 TX packets:2594 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:228556 (223.1 KiB) TX bytes:228556 (223.1 KiB) |
#ifconfig
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2594 errors:0 dropped:0 overruns:0 frame:0 TX packets:2594 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:228556 (223.1 KiB) TX bytes:228556 (223.1 KiB) |
#ifconfig
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2594 errors:0 dropped:0 overruns:0 frame:0 TX packets:2594 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:228556 (223.1 KiB) TX bytes:228556 (223.1 KiB) |
#ifconfig
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2594 errors:0 dropped:0 overruns:0 frame:0 TX packets:2594 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:228556 (223.1 KiB) TX bytes:228556 (223.1 KiB) |
#ifconfig
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2594 errors:0 dropped:0 overruns:0 frame:0 TX packets:2594 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:228556 (223.1 KiB) TX bytes:228556 (223.1 KiB) |
#ifconfig
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2594 errors:0 dropped:0 overruns:0 frame:0 TX packets:2594 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:228556 (223.1 KiB) TX bytes:228556 (223.1 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:46:1a:50 inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0 inet6 addr: fe80::2e27:d7ff:fe46:1a50/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:581061 errors:0 dropped:0 overruns:0 frame:0 TX packets:325787 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:741766735 (707.4 MiB) TX bytes:23780320 (22.6 MiB) Interrupt:20 Memory:fe400000-fe420000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2597 errors:0 dropped:0 overruns:0 frame:0 TX packets:2597 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:228794 (223.4 KiB) TX bytes:228794 (223.4 KiB) |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.20.254 0.0.0.0 UG 0 0 0 eth0 192.168.20.0 * 255.255.255.0 U 0 0 0 eth0 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default gw2.unix.nt 0.0.0.0 UG 0 0 0 eth0 192.168.20.0 * 255.255.255.0 U 0 0 0 eth0 |
#/etc/init.d/asterisk stop
Stopping Asterisk PBX: asterisk. |
#/etc/init.d/asterisk start
Starting Asterisk PBX: asterisk. |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default gw2.unix.nt 0.0.0.0 UG 0 0 0 eth0 192.168.20.0 * 255.255.255.0 U 0 0 0 eth0 |
#ps aux|grep ise
root 1687 0.0 0.0 3904 728 pts/3 S+ 15:40 0:00 grep ise |
#ps aux|grep ice
root 1696 0.0 0.0 3904 724 pts/3 S+ 15:40 0:00 grep ice |
#LANG=ru_UA.UTF-8 date
Пнд Окт 17 15:46:17 FET 2011 |
#apt-cache search dhcp
ahcpd - the Ad-Hoc Configuration Protocol arpon - versatile anti ARP poisoning daemon autodns-dhcp - Automatic DNS updates for DHCP avahi-autoipd - Avahi IPv4LL network address configuration daemon backuppc - high-performance, enterprise-grade system for backing up PCs batctl - B.A.T.M.A.N. advanced control and management tool batman-adv-dkms - DKMS Source for the batman-advanced kernel module batman-adv-source - Source for the batman-advanced kernel module bootp - server for the bootp protocol with DHCP support udhcpc - Provides the busybox DHCP client implementation ... pxe - free PXE daemon python-pydhcplib - Python DHCP client/server library resolvconf - name server information handler totd - Small DNS proxy that supports IPv6/IPv4 record translation whereami - Automatically reconfigure your (laptop) system for a new location wide-dhcpv6-client - DHCPv6 client for automatic IPv6 hosts configuration wide-dhcpv6-relay - DHCPv6 relay for automatic IPv6 hosts configuration wide-dhcpv6-server - DHCPv6 server for automatic IPv6 hosts configuration yersinia - Network vulnerabilities check software busybox - Tiny utilities for small and embedded systems |
#apt-cache search dhcp3
dhcp-helper - A DHCP relay agent dhcp3-client - ISC DHCP server (transitional package) dhcp3-common - ISC DHCP common files (transitional package) dhcp3-dev - ISC DHCP development files (transitional package) dhcp3-relay - ISC DHCP relay (transitional package) dhcp3-server - ISC DHCP server (transitional package) isc-dhcp-client - ISC DHCP client isc-dhcp-common - common files used by all the isc-dhcp* packages isc-dhcp-dev - API for accessing and modifying the DHCP server and client state isc-dhcp-relay - ISC DHCP relay daemon isc-dhcp-server-ldap - DHCP server able to use LDAP as backend isc-dhcp-server - ISC DHCP server for automatic IP address assignment |
#apt-cache install dhcp3-server
E: Invalid operation install |
#apt-get install dhcp3-server
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: isc-dhcp-server Suggested packages: isc-dhcp-server-ldap The following NEW packages will be installed: dhcp3-server isc-dhcp-server 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. ... Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.1.1-P1-15+squeeze3_i386.deb) ... Selecting previously deselected package dhcp3-server. Unpacking dhcp3-server (from .../dhcp3-server_4.1.1-P1-15+squeeze3_all.deb) ... Processing triggers for man-db ... Setting up isc-dhcp-server (4.1.1-P1-15+squeeze3) ... Generating /etc/default/isc-dhcp-server... Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed! failed! invoke-rc.d: initscript isc-dhcp-server, action "start" failed. Setting up dhcp3-server (4.1.1-P1-15+squeeze3) ... |
#/etc/init.d/isc-dhcp-server restart
Stopping ISC DHCP server: dhcpd failed! Starting ISC DHCP server: dhcpd. |
#/etc/init.d/isc-dhcp-server restart
Stopping ISC DHCP server: dhcpd. Starting ISC DHCP server: dhcpd. |
#tail -f /var/log/messages
Oct 17 16:08:32 linux2 dhcpd: For info, please visit https://www.isc.org/software/dhcp/ Oct 17 16:08:34 linux2 dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1 Oct 17 16:08:34 linux2 dhcpd: Copyright 2004-2010 Internet Systems Consortium. Oct 17 16:08:34 linux2 dhcpd: All rights reserved. Oct 17 16:08:34 linux2 dhcpd: For info, please visit https://www.isc.org/software/dhcp/ Oct 17 16:08:34 linux2 dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1 Oct 17 16:08:34 linux2 dhcpd: Copyright 2004-2010 Internet Systems Consortium. Oct 17 16:08:34 linux2 dhcpd: All rights reserved. Oct 17 16:08:34 linux2 dhcpd: For info, please visit https://www.isc.org/software/dhcp/ Oct 17 16:08:34 linux2 dhcpd: Wrote 0 leases to leases file. ... Oct 17 16:47:12 linux2 dhcpd: DHCPACK on 192.168.20.200 to 00:24:54:d2:69:09 (rf510) via eth0 Oct 17 16:51:48 linux2 dhcpd: DHCPREQUEST for 192.168.20.201 from 00:19:e7:42:72:b5 (SEP0019E74272B5) via eth0 Oct 17 16:51:48 linux2 dhcpd: DHCPACK on 192.168.20.201 to 00:19:e7:42:72:b5 (SEP0019E74272B5) via eth0 Oct 17 16:52:12 linux2 dhcpd: DHCPREQUEST for 192.168.20.200 from 00:24:54:d2:69:09 (rf510) via eth0 Oct 17 16:52:12 linux2 dhcpd: DHCPACK on 192.168.20.200 to 00:24:54:d2:69:09 (rf510) via eth0 Oct 17 16:56:48 linux2 dhcpd: DHCPREQUEST for 192.168.20.201 from 00:19:e7:42:72:b5 (SEP0019E74272B5) via eth0 Oct 17 16:56:48 linux2 dhcpd: DHCPACK on 192.168.20.201 to 00:19:e7:42:72:b5 (SEP0019E74272B5) via eth0 Oct 17 16:57:12 linux2 dhcpd: DHCPREQUEST for 192.168.20.200 from 00:24:54:d2:69:09 (rf510) via eth0 Oct 17 16:57:12 linux2 dhcpd: DHCPACK on 192.168.20.200 to 00:24:54:d2:69:09 (rf510) via eth0 ^C |
#pwd
/home/user |
#cd /var/lib
|
#ls
alsa gconf ntpdate update-notifier apt gdm3 os-prober update-rc.d aptitude ghostscript pam upower apt-xapian-index initramfs-tools polkit-1 urandom aspell initscripts pycentral usb_modeswitch asterisk insserv python-support usbutils binfmts libuuid sgml-base vim dbus logrotate snmp x11 defoma menu-xdg sudo xfonts dhcp misc synaptic xkb dictionaries-common mlocate tex-common xml-core dpkg NetworkManager ucf exim4 nfs udisks |
#cd dhcp/
|
#ls
dhclient.leases dhcpd.leases dhcpd.leases~ |
#pwd
/var/lib/dhcp |
#ls
dhclient.leases dhcpd.leases dhcpd.leases~ |
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1.1-P1 server-duid "\000\001\000\001\026.\345R,'\327F\032P"; lease 192.168.20.200 { starts 1 2011/10/17 13:11:49; ends 1 2011/10/17 13:21:49; cltt 1 2011/10/17 13:11:49; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; uid "\001\000$T\322i\011"; client-hostname "rf510"; } |
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1.1-P1 server-duid "\000\001\000\001\026.\345R,'\327F\032P"; lease 192.168.20.200 { starts 1 2011/10/17 13:11:49; ends 1 2011/10/17 13:21:49; cltt 1 2011/10/17 13:11:49; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; ... lease 192.168.20.200 { starts 1 2011/10/17 13:16:48; ends 1 2011/10/17 13:26:48; cltt 1 2011/10/17 13:16:48; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; uid "\001\000$T\322i\011"; client-hostname "rf510"; } |
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1.1-P1 server-duid "\000\001\000\001\026.\345R,'\327F\032P"; lease 192.168.20.200 { starts 1 2011/10/17 13:11:49; ends 1 2011/10/17 13:21:49; cltt 1 2011/10/17 13:11:49; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; ... lease 192.168.20.200 { starts 1 2011/10/17 13:16:48; ends 1 2011/10/17 13:26:48; cltt 1 2011/10/17 13:16:48; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; uid "\001\000$T\322i\011"; client-hostname "rf510"; } |
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1.1-P1 server-duid "\000\001\000\001\026.\345R,'\327F\032P"; lease 192.168.20.200 { starts 1 2011/10/17 13:11:49; ends 1 2011/10/17 13:21:49; cltt 1 2011/10/17 13:11:49; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; ... lease 192.168.20.200 { starts 1 2011/10/17 13:21:48; ends 1 2011/10/17 13:31:48; cltt 1 2011/10/17 13:21:48; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; uid "\001\000$T\322i\011"; client-hostname "rf510"; } |
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1.1-P1 server-duid "\000\001\000\001\026.\345R,'\327F\032P"; lease 192.168.20.200 { starts 1 2011/10/17 13:11:49; ends 1 2011/10/17 13:21:49; cltt 1 2011/10/17 13:11:49; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; ... lease 192.168.20.200 { starts 1 2011/10/17 13:23:04; ends 1 2011/10/17 13:33:04; cltt 1 2011/10/17 13:23:04; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; uid "\001\000$T\322i\011"; client-hostname "rf510"; } |
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1.1-P1 server-duid "\000\001\000\001\026.\345R,'\327F\032P"; lease 192.168.20.200 { starts 1 2011/10/17 13:11:49; ends 1 2011/10/17 13:21:49; cltt 1 2011/10/17 13:11:49; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; ... lease 192.168.20.201 { starts 1 2011/10/17 13:23:15; ends 1 2011/10/17 13:33:15; cltt 1 2011/10/17 13:23:15; binding state active; next binding state free; hardware ethernet 00:19:e7:42:72:b5; uid "\001\000\031\347Br\265"; client-hostname "SEP0019E74272B5"; } |
#ping 192.168.20.201
PING 192.168.20.201 (192.168.20.201) 56(84) bytes of data. 64 bytes from 192.168.20.201: icmp_req=1 ttl=250 time=60.4 ms 64 bytes from 192.168.20.201: icmp_req=2 ttl=250 time=69.4 ms 64 bytes from 192.168.20.201: icmp_req=3 ttl=250 time=68.4 ms 64 bytes from 192.168.20.201: icmp_req=4 ttl=250 time=67.4 ms 64 bytes from 192.168.20.201: icmp_req=5 ttl=250 time=66.4 ms 64 bytes from 192.168.20.201: icmp_req=6 ttl=250 time=65.5 ms 64 bytes from 192.168.20.201: icmp_req=7 ttl=250 time=65.1 ms 64 bytes from 192.168.20.201: icmp_req=8 ttl=250 time=64.9 ms ^C --- 192.168.20.201 ping statistics --- 8 packets transmitted, 8 received, 0% packet loss, time 7010ms rtt min/avg/max/mdev = 60.445/65.978/69.431/2.590 ms |
#ping 192.168.20.201
PING 192.168.20.201 (192.168.20.201) 56(84) bytes of data. 64 bytes from 192.168.20.201: icmp_req=1 ttl=250 time=63.1 ms 64 bytes from 192.168.20.201: icmp_req=2 ttl=250 time=62.5 ms 64 bytes from 192.168.20.201: icmp_req=3 ttl=250 time=61.5 ms 64 bytes from 192.168.20.201: icmp_req=4 ttl=250 time=61.3 ms 64 bytes from 192.168.20.201: icmp_req=5 ttl=250 time=60.5 ms 64 bytes from 192.168.20.201: icmp_req=6 ttl=250 time=60.1 ms 64 bytes from 192.168.20.201: icmp_req=7 ttl=250 time=69.8 ms 64 bytes from 192.168.20.201: icmp_req=8 ttl=250 time=68.4 ms 64 bytes from 192.168.20.201: icmp_req=9 ttl=250 time=67.5 ms 64 bytes from 192.168.20.201: icmp_req=10 ttl=250 time=66.8 ms 64 bytes from 192.168.20.201: icmp_req=11 ttl=250 time=65.4 ms ^C --- 192.168.20.201 ping statistics --- 11 packets transmitted, 11 received, 0% packet loss, time 10013ms rtt min/avg/max/mdev = 60.138/64.299/69.838/3.296 ms |
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1.1-P1 server-duid "\000\001\000\001\026.\345R,'\327F\032P"; lease 192.168.20.200 { starts 1 2011/10/17 13:11:49; ends 1 2011/10/17 13:21:49; cltt 1 2011/10/17 13:11:49; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; ... lease 192.168.20.201 { starts 1 2011/10/17 13:28:16; ends 1 2011/10/17 13:38:16; cltt 1 2011/10/17 13:28:16; binding state active; next binding state free; hardware ethernet 00:19:e7:42:72:b5; uid "\001\000\031\347Br\265"; client-hostname "SEP0019E74272B5"; } |
#cat /var/lib/dhcp/dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1.1-P1 server-duid "\000\001\000\001\026.\345R,'\327F\032P"; lease 192.168.20.200 { starts 1 2011/10/17 13:11:49; ends 1 2011/10/17 13:21:49; cltt 1 2011/10/17 13:11:49; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; ... lease 192.168.20.201 { starts 1 2011/10/17 13:28:16; ends 1 2011/10/17 13:38:16; cltt 1 2011/10/17 13:28:16; binding state active; next binding state free; hardware ethernet 00:19:e7:42:72:b5; uid "\001\000\031\347Br\265"; client-hostname "SEP0019E74272B5"; } |
#ls
adsi.conf codecs.conf indications.conf res_odbc.conf adtranvofr.conf console.conf jabber.conf res_pgsql.conf agents.conf dbsep.conf jingle.conf res_snmp.conf ais.conf dnsmgr.conf logger.conf rpt.conf alarmreceiver.conf dsp.conf manager.conf rtp.conf alsa.conf dundi.conf manager.d say.conf amd.conf enum.conf meetme.conf sip.conf asterisk.adsi extconfig.conf mgcp.conf sip.conf.bak asterisk.conf extensions.ael minivm.conf sip_notify.conf cdr_adaptive_odbc.conf extensions.conf misdn.conf skinny.conf cdr.conf extensions.lua modules.conf sla.conf cdr_custom.conf extensions_minivm.conf musiconhold.conf smdi.conf cdr_manager.conf features.conf muted.conf telcordia-1.adsi cdr_odbc.conf festival.conf osp.conf udptl.conf cdr_pgsql.conf followme.conf oss.conf unistim.conf cdr_sqlite3_custom.conf func_odbc.conf phone.conf usbradio.conf cdr_tds.conf gtalk.conf phoneprov.conf users.conf chan_dahdi.conf h323.conf queuerules.conf voicemail.conf cli_aliases.conf http.conf queues.conf vpb.conf cli.conf iax.conf res_config_sqlite.conf cli_permissions.conf iaxprov.conf res_ldap.conf |
#ls
adsi.conf codecs.conf indications.conf res_odbc.conf adtranvofr.conf console.conf jabber.conf res_pgsql.conf agents.conf dbsep.conf jingle.conf res_snmp.conf ais.conf dnsmgr.conf logger.conf rpt.conf alarmreceiver.conf dsp.conf manager.conf rtp.conf alsa.conf dundi.conf manager.d say.conf amd.conf enum.conf meetme.conf sip.conf asterisk.adsi extconfig.conf mgcp.conf sip.conf.bak asterisk.conf extensions.ael minivm.conf sip_notify.conf cdr_adaptive_odbc.conf extensions.conf misdn.conf skinny.conf cdr.conf extensions.lua modules.conf sla.conf cdr_custom.conf extensions_minivm.conf musiconhold.conf smdi.conf cdr_manager.conf features.conf muted.conf telcordia-1.adsi cdr_odbc.conf festival.conf osp.conf udptl.conf cdr_pgsql.conf followme.conf oss.conf unistim.conf cdr_sqlite3_custom.conf func_odbc.conf phone.conf usbradio.conf cdr_tds.conf gtalk.conf phoneprov.conf users.conf chan_dahdi.conf h323.conf queuerules.conf voicemail.conf cli_aliases.conf http.conf queues.conf vpb.conf cli.conf iax.conf res_config_sqlite.conf cli_permissions.conf iaxprov.conf res_ldap.conf |
#mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.SAVED
|
#nautilus --no-desktop --browser %U
No protocol specified Could not parse arguments: Cannot open display: |
#nautilus
No protocol specified Could not parse arguments: Cannot open display: |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#mc
|
#find / -name demo-thanks.gsm
/usr/share/asterisk/sounds/en_US_f_Allison/demo-thanks.gsm |
#find /usr -name demo-thanks.*
/usr/share/asterisk/sounds/en_US_f_Allison/demo-thanks.gsm |
#cd /usr/share/asterisk/sounds/en_US_f_Allison/
|
#ls
agent-alreadyon.gsm spy-sip.gsm agent-incorrect.gsm spy-skinny.gsm agent-loggedoff.gsm spy-unistim.gsm agent-loginok.gsm spy-usbradio.gsm agent-newlocation.gsm spy-zap.gsm agent-pass.gsm ss-noservice.gsm agent-user.gsm transfer.gsm ascending-2tone.gsm tt-allbusy.gsm auth-incorrect.gsm tt-monkeys.gsm auth-thankyou.gsm tt-monkeysintro.gsm ... spy-dahdi.gsm vm-toreply.gsm spy-h323.gsm vm-torerecord.gsm spy-iax2.gsm vm-undeleted.gsm spy-iax.gsm vm-undelete.gsm spy-jingle.gsm vm-unknown-caller.gsm spy-local.gsm vm-Urgent.gsm spy-mgcp.gsm vm-whichbox.gsm spy-misdn.gsm vm-Work.gsm spy-mobile.gsm vm-youhave.gsm spy-nbs.gsm |
#asterisk -rvvvv
Asterisk 1.6.2.9-2+squeeze3, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found == Parsing '/etc/asterisk/extconfig.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze3 currently running on linux2 (pid = 1249) ... -- merging incls/swits/igpats from old(demo) to new(demo) context, registrar = pbx_config -- Including switch 'Lua/' in context 'demo' -- Time to scan old dialplan and merge leftovers back into the new: 0.000446 sec -- Time to restore hints and swap in new dialplan: 0.000001 sec -- Time to delete the old dialplan: 0.000057 sec -- Total time merge_contexts_delete: 0.000504 sec linux2*CLI> sip reload Reloading SIP linux2*CLI> exit Executing last minute cleanups |
#apt-get install sendmail sendmail-bin sensible-mda
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: mysql-common libmysqlclient16 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libmysqlclient16 mysql-common sendmail-base sendmail-cf Suggested packages: sendmail-doc rmail logcheck resolvconf sasl2-bin ... Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.49-3_i386.deb) ... Selecting previously deselected package sensible-mda. Unpacking sensible-mda (from .../sensible-mda_8.14.3-9.4_i386.deb) ... Selecting previously deselected package sendmail. Unpacking sendmail (from .../sendmail_8.14.3-9.4_all.deb) ... Processing triggers for man-db ... Setting up mysql-common (5.1.49-3) ... Setting up libmysqlclient16 (5.1.49-3) ... Setting up sensible-mda (8.14.3-9.4) ... Setting up sendmail (8.14.3-9.4) ... |
# The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1.1-P1 server-duid "\000\001\000\001\026.\345R,'\327F\032P"; lease 192.168.20.200 { starts 1 2011/10/17 13:11:49; ends 1 2011/10/17 13:21:49; cltt 1 2011/10/17 13:11:49; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; uid "\001\000$T\322i\011"; client-hostname "rf510"; } lease 192.168.20.200 { starts 1 2011/10/17 13:16:48; ends 1 2011/10/17 13:26:48; cltt 1 2011/10/17 13:16:48; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; uid "\001\000$T\322i\011"; client-hostname "rf510"; } lease 192.168.20.200 { starts 1 2011/10/17 13:21:48; ends 1 2011/10/17 13:31:48; cltt 1 2011/10/17 13:21:48; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; uid "\001\000$T\322i\011"; client-hostname "rf510"; } lease 192.168.20.200 { starts 1 2011/10/17 13:23:04; ends 1 2011/10/17 13:33:04; cltt 1 2011/10/17 13:23:04; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; uid "\001\000$T\322i\011"; client-hostname "rf510"; } lease 192.168.20.201 { starts 1 2011/10/17 13:23:15; ends 1 2011/10/17 13:33:15; cltt 1 2011/10/17 13:23:15; binding state active; next binding state free; hardware ethernet 00:19:e7:42:72:b5; uid "\001\000\031\347Br\265"; client-hostname "SEP0019E74272B5"; } lease 192.168.20.200 { starts 1 2011/10/17 13:28:04; ends 1 2011/10/17 13:38:04; cltt 1 2011/10/17 13:28:04; binding state active; next binding state free; hardware ethernet 00:24:54:d2:69:09; uid "\001\000$T\322i\011"; client-hostname "rf510"; } lease 192.168.20.201 { starts 1 2011/10/17 13:28:16; ends 1 2011/10/17 13:38:16; cltt 1 2011/10/17 13:28:16; binding state active; next binding state free; hardware ethernet 00:19:e7:42:72:b5; uid "\001\000\031\347Br\265"; client-hostname "SEP0019E74272B5"; }
Время первой команды журнала | 11:38:18 2011-10-17 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:09:39 2011-10-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 8.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 4.23 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.39 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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