/l3/users/DAVID/nt-VOIP/linux5.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
#w
12:36:35 up 1:43, 5 users, load average: 0.53, 0.27, 0.23 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty1 10:53 23:47 2.47s 0.20s -bash user tty2 11:59 17:42 0.35s 0.18s -bash user tty3 12:09 9:21 0.35s 0.18s -bash root pts/0 192.168.15.252 12:36 0.00s 0.12s 0.00s script -f -c bash -q /root/.lilalo//1660327822969812338-1318844191.script user tty7 :0 12:19 1:43m 6.34s 0.07s x-session-manager |
#history
1 #ntpdate ntp.lucky.net 2 date 3 ntpdate ntp.lucky.net 4 date 5 dpkg-reconfigure tzdata 6 date 7 date 8 history 9 dpkg-reconfigure console-cyrillic 10 LANG=ru_RU.UTF-8 date ... 51 exit 52 cd /tmp/ 53 head -20 install 54 rm install 55 wget http://xgu.ru/lilalo/install 56 vim install 57 bash install 58 exit 59 w 60 history |
## http://xgu.ru/l3/users/
|
#eeexit
bash: eeexit: command not found |
#~
if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" # some more ls aliases alias ls='ls --color=auto' #alias ll='ls -l' #alias dir='dir --color=auto' #alias la='ls -A' #alias vdir='vdir --color=auto' #alias l='ls -CF' # Alias definitions. ... . ~/.bash_aliases fi # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if [ -f /etc/bash_completion ] && ! shopt -oq posix; then . /etc/bash_completion fi . /home/user/.lilalo/l3bashrc && _l3_start "/home/user/.bashrc" 100L, 3227C writtenlo/l3bashrc && _l3_start |
#ssh 192.168.15.252
root@192.168.15.252's password: Permission denied, please try again. root@192.168.15.252's password: Permission denied, please try again. root@192.168.15.252's password: Permission denied (publickey,password). |
#ssh 192.168.15.252
root@192.168.15.252's password: Permission denied, please try again. root@192.168.15.252's password: Permission denied, please try again. root@192.168.15.252's password: Permission denied (publickey,password). |
#ssh user@192.168.15.252
user@book:~$ user@book:~$ user@book:~$ user@book:~$ user@book:~$ user@book:~$ su - Password: su: Authentication failure user@book:~$ user@book:~$ ... Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.29' (RSA) to the list of known hosts. root@192.168.15.29's password: Linux linux9 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=7776; pidfile=/root/.lilalo/l3-agent.pid |
#ssh user@192.168.15.252
;; *) ;; esac test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' # en#alias dir='dir --color=auto'also add handy aliases if [ -x /usr/bin/dircolors ]; then user@book:~$ нÑÑ bash: нÑÑ: command not found ... Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.29' (RSA) to the list of known hosts. root@192.168.15.29's password: Linux linux9 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=7776; pidfile=/root/.lilalo/l3-agent.pid |
#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 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 localnet * 255.255.255.0 U 0 0 0 eth0 |
#cat /etc/resolv.conf
search unix.nt nameserver 10.0.35.1 |
#host 192.168.15.253
Host 253.15.168.192.in-addr.arpa. not found: 3(NXDOMAIN) |
#host 192.168.15.252
Host 252.15.168.192.in-addr.arpa. not found: 3(NXDOMAIN) |
#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 |
#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 |
#ssh user@192.168.15.26
The authenticity of host '192.168.15.26 (192.168.15.26)' can't be established. RSA key fingerprint is 20:8f:69:50:1c:d5:99:9a:a9:40:99:ef:4c:ed:63:d6. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.26' (RSA) to the list of known hosts. user@192.168.15.26's password: Linux linux6 2.6.39-bpo.2-686-pae #1 SMP Thu Aug 4 11:02:22 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Mon Oct 17 12:51:50 2011 l3-agent is already running: pid=28893; pidfile=/home/user/.lilalo/l3-agent.pid |
$# privet
|
$exit
exit Connection to 192.168.15.26 closed. |
#apt-get install strace
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: strace 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 122 kB of archives. After this operation, 303 kB of additional disk space will be used. Get:1 http://10.0.35.1/debian/ squeeze/main strace i386 4.5.20-2 [122 kB] Fetched 122 kB in 0s (2,608 kB/s) Selecting previously deselected package strace. (Reading database ... 110878 files and directories currently installed.) Unpacking strace (from .../strace_4.5.20-2_i386.deb) ... Processing triggers for man-db ... Setting up strace (4.5.20-2) ... |
#vim /etc/resolv.conf
--- /tmp/l3-saved-4474.24954.11630 2011-10-17 14:12:06.000000000 +0300 +++ /etc/resolv.conf 2011-10-17 14:12:13.000000000 +0300 @@ -1,2 +1,2 @@ search unix.nt -nameserver 10.0.35.1 +nameserver 10.0.35.201 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface ^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^C |
#strace route
execve("/sbin/route", ["route"], [/* 22 vars */]) = 0 brk(0) = 0x8caa000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7720000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=60262, ...}) = 0 mmap2(NULL, 60262, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7711000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) ... mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7711000 read(4, "default\t\t0.0.0.0\nloopback\t127.0."..., 4096) = 81 close(4) = 0 munmap(0xb7711000, 4096) = 0 write(1, "localnet * "..., 77localnet * 255.255.255.0 U 0 0 0 eth0 ) = 77 read(3, "", 1024) = 0 close(3) = 0 munmap(0xb771e000, 4096) = 0 exit_group(0) = ? |
#^C
|
#ps aux | grep sendmail
root 4647 0.0 0.0 3904 724 pts/1 S+ 14:14 0:00 grep sendmail |
#ps aux | grep ssh
user 830 0.0 0.0 3284 200 ? Ss 12:19 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/seahorse-agent --execute x-session-manager root 4025 0.0 0.0 5176 2156 pts/3 S+ 12:55 0:00 ssh user@192.168.15.252 root 4421 0.0 0.0 8800 3188 ? Ss 14:11 0:00 sshd: root@pts/0 root 4656 0.0 0.0 3908 720 pts/1 S+ 14:14 0:00 grep ssh root 6280 0.0 0.0 5544 984 ? Ss 11:31 0:00 /usr/sbin/sshd |
#apt-
apt-cache apt-config apt-ftparchive apt-key apt-mark apt-cdrom apt-extracttemplates apt-get apt-listchanges apt-sortpkgs |
#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-
apt-cache apt-config apt-ftparchive apt-key apt-mark apt-cdrom apt-extracttemplates apt-get apt-listchanges apt-sortpkgs |
#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-main asterisk-sounds-extra
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>k> â ... 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. |
#apt-get install asterisk asterisk-config asterisk-sounds-main asterisk-sounds-extra
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>k> â ... 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. |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#ps aux | grep ast
asterisk 7811 1.2 0.2 48484 18208 ? Ssl 14:43 0:00 /usr/sbin/asterisk -p -U asterisk asterisk 7812 0.0 0.0 2936 564 ? S 14:43 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 7811 root 7861 0.0 0.0 3908 724 pts/4 S+ 14:44 0:00 grep ast |
#ps aux | grep ast
asterisk 7811 1.2 0.2 48484 18208 ? Ssl 14:43 0:00 /usr/sbin/asterisk -p -U asterisk asterisk 7812 0.0 0.0 2936 564 ? S 14:43 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 7811 root 7861 0.0 0.0 3908 724 pts/4 S+ 14:44 0:00 grep ast |
#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 linux5 (pid = 7811) ... group gtalk hangup help http iax2 indication jabber jingle keys local logger manager meetme mfcr2 mgcp minivm mixmonitor module moh no odbc originate parkedcalls phoneprov pri queue realtime reload rtcp rtp say sip skinny sla sqlite ss7 stun timing transcoder udptl ulimit unistim voicemail linux5*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] linux5*CLI> quit Executing last minute cleanups |
#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 linux5 (pid = 7811) ... group gtalk hangup help http iax2 indication jabber jingle keys local logger manager meetme mfcr2 mgcp minivm mixmonitor module moh no odbc originate parkedcalls phoneprov pri queue realtime reload rtcp rtp say sip skinny sla sqlite ss7 stun timing transcoder udptl ulimit unistim voicemail linux5*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] linux5*CLI> quit Executing last minute cleanups |
#vim /etc/resolv.conf
--- /tmp/l3-saved-7966.21203.18617 2011-10-17 14:53:36.000000000 +0300 +++ /etc/resolv.conf 2011-10-17 14:53:41.000000000 +0300 @@ -1,2 +1,2 @@ search unix.nt -nameserver 10.0.35.201 +nameserver 10.0.35.1 |
#ps aux | grep l3
root 3298 8.6 0.1 16896 12888 ? Rs 12:36 11:50 l3-agent user 3553 0.0 0.0 11928 7828 ? Ss 12:52 0:03 l3-agent root 8006 0.0 0.0 3908 724 pts/6 S+ 14:53 0:00 grep l3 |
#pkill l3-agent
|
#l3-agent
|
#ps aux | grep l3
user 3553 0.0 0.0 11928 7828 ? Ss 12:52 0:03 l3-agent root 8038 8.8 0.0 11924 7708 ? Ss 14:53 0:00 l3-agent root 8075 0.0 0.0 3908 724 pts/6 S+ 14:53 0:00 grep l3 |
#~
# and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface l address 192.168.50.1 netmask 255.255.255.0 network 192.168.50.0 broadcast 192.168.50.255 # The p gateway 192.168.50.254 # dns-* options are implemented by the resolvconf package, if installed allow-h dns-nameservers 10.0.35.1 ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/network/interfaces" 18L, 516C written |
#~
# and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface l address 192.168.50.1 netmask 255.255.255.0 network 192.168.50.0 broadcast 192.168.50.255 # The p gateway 192.168.50.254 # dns-* options are implemented by the resolvconf package, if installed allow-h dns-nameservers 10.0.35.1 ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/network/interfaces" 18L, 516C written |
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:29:6d:0d inet addr:192.168.50.1 Bcast:192.168.50.255 Mask:255.255.255.0 inet6 addr: fe80::2e27:d7ff:fe29:6d0d/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:564022 errors:0 dropped:0 overruns:0 frame:0 TX packets:278491 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:784187912 (747.8 MiB) TX bytes:20622600 (19.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:25 errors:0 dropped:0 overruns:0 frame:0 TX packets:25 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1938 (1.8 KiB) TX bytes:1938 (1.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:29:6d:0d inet addr:192.168.50.1 Bcast:192.168.50.255 Mask:255.255.255.0 inet6 addr: fe80::2e27:d7ff:fe29:6d0d/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:564022 errors:0 dropped:0 overruns:0 frame:0 TX packets:278491 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:784187912 (747.8 MiB) TX bytes:20622600 (19.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:25 errors:0 dropped:0 overruns:0 frame:0 TX packets:25 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1938 (1.8 KiB) TX bytes:1938 (1.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:29:6d:0d inet addr:192.168.50.1 Bcast:192.168.50.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:564022 errors:0 dropped:0 overruns:0 frame:0 TX packets:278491 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:784187912 (747.8 MiB) TX bytes:20622600 (19.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:42 errors:0 dropped:0 overruns:0 frame:0 TX packets:42 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3508 (3.4 KiB) TX bytes:3508 (3.4 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 2c:27:d7:29:6d:0d inet addr:192.168.50.1 Bcast:192.168.50.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:564022 errors:0 dropped:0 overruns:0 frame:0 TX packets:278491 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:784187912 (747.8 MiB) TX bytes:20622600 (19.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:42 errors:0 dropped:0 overruns:0 frame:0 TX packets:42 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3508 (3.4 KiB) TX bytes:3508 (3.4 KiB) |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.50.254 0.0.0.0 UG 0 0 0 eth0 192.168.50.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.50.254 0.0.0.0 UG 0 0 0 eth0 192.168.50.0 * 255.255.255.0 U 0 0 0 eth0 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface ^[[Adefault 192.168.50.254 0.0.0.0 UG 0 0 0 eth0 192.168.50.0 * 255.255.255.0 U 0 0 0 eth0 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface ^[[Adefault 192.168.50.254 0.0.0.0 UG 0 0 0 eth0 192.168.50.0 * 255.255.255.0 U 0 0 0 eth0 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface ^C |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface ^C |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. ^C --- 10.0.35.1 ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5039ms |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. ^C --- 10.0.35.1 ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5039ms |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.50.254 0.0.0.0 UG 0 0 0 eth0 192.168.50.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.50.254 0.0.0.0 UG 0 0 0 eth0 192.168.50.0 * 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.50.254 0.0.0.0 UG 0 0 0 eth0 192.168.50.0 0.0.0.0 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.50.254 0.0.0.0 UG 0 0 0 eth0 192.168.50.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 |
#ping 192.168.50.1
PING 192.168.50.1 (192.168.50.1) 56(84) bytes of data. 64 bytes from 192.168.50.1: icmp_req=1 ttl=64 time=0.021 ms 64 bytes from 192.168.50.1: icmp_req=2 ttl=64 time=0.014 ms ^C --- 192.168.50.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.014/0.017/0.021/0.005 ms |
#ping 192.168.50.1
PING 192.168.50.1 (192.168.50.1) 56(84) bytes of data. 64 bytes from 192.168.50.1: icmp_req=1 ttl=64 time=0.021 ms 64 bytes from 192.168.50.1: icmp_req=2 ttl=64 time=0.014 ms ^C --- 192.168.50.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.014/0.017/0.021/0.005 ms |
#ping 192.168.50.254
PING 192.168.50.254 (192.168.50.254) 56(84) bytes of data. 64 bytes from 192.168.50.254: icmp_req=1 ttl=64 time=0.984 ms 64 bytes from 192.168.50.254: icmp_req=2 ttl=64 time=0.639 ms ^C --- 192.168.50.254 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.639/0.811/0.984/0.174 ms |
#ping 192.168.50.254
PING 192.168.50.254 (192.168.50.254) 56(84) bytes of data. 64 bytes from 192.168.50.254: icmp_req=1 ttl=64 time=0.984 ms 64 bytes from 192.168.50.254: icmp_req=2 ttl=64 time=0.639 ms ^C --- 192.168.50.254 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.639/0.811/0.984/0.174 ms |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface ^C |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface ^C |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.50.254 0.0.0.0 UG 0 0 0 eth0 192.168.50.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.50.254 0.0.0.0 UG 0 0 0 eth0 192.168.50.0 * 255.255.255.0 U 0 0 0 eth0 |
#ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_req=1 ttl=54 time=53.8 ms 64 bytes from 8.8.8.8: icmp_req=2 ttl=54 time=39.3 ms 64 bytes from 8.8.8.8: icmp_req=3 ttl=54 time=39.0 ms 64 bytes from 8.8.8.8: icmp_req=4 ttl=54 time=39.1 ms 64 bytes from 8.8.8.8: icmp_req=5 ttl=54 time=39.2 ms ^C --- 8.8.8.8 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4005ms rtt min/avg/max/mdev = 39.023/42.133/53.898/5.888 ms |
#ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_req=1 ttl=54 time=53.8 ms 64 bytes from 8.8.8.8: icmp_req=2 ttl=54 time=39.3 ms 64 bytes from 8.8.8.8: icmp_req=3 ttl=54 time=39.0 ms 64 bytes from 8.8.8.8: icmp_req=4 ttl=54 time=39.1 ms 64 bytes from 8.8.8.8: icmp_req=5 ttl=54 time=39.2 ms ^C --- 8.8.8.8 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4005ms rtt min/avg/max/mdev = 39.023/42.133/53.898/5.888 ms |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.50.254 0.0.0.0 UG 0 0 0 eth0 192.168.50.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.50.254 0.0.0.0 UG 0 0 0 eth0 192.168.50.0 * 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.50.254 0.0.0.0 UG 0 0 0 eth0 192.168.50.0 0.0.0.0 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.50.254 0.0.0.0 UG 0 0 0 eth0 192.168.50.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 |
search unix.nt nameserver 10.0.35.1
Время первой команды журнала | 11:36:31 2011-10-17 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:17:38 2011-10-17 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 7.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 10.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.48 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.12 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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