/l3/users/goddan/nt-voip/linux4.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
#nano /tmp/1.txt
--- /dev/null 2013-04-08 15:08:23.293390154 +0300 +++ /tmp/1.txt 2013-04-08 14:19:14.000000000 +0300 @@ -0,0 +1 @@ +sdfgdfghdfghdfghdfghdf |
#sdfgdfghdfghdfghdfghdf
|
#3~^C
|
#screen -r
|
#'
> > > > ^C |
#ssh user@192.168.15.253
Apr 8 18:01:54 linux7 kernel: [ 886.562892] sshd (2426): /proc/2426/oom_adj is ^C root@linux7:/tmp# wget http://xgu.ru/lilalo/install --2013-04-08 18:03:05-- http://xgu.ru/lilalo/install Apr 8 17:48:32 linux7 kernel: [ 85.056668] eth0: setting full Apr 8 18:01:54 linux7 kernel: [ 85.056838] ADDRCONF(NETDEV_CHA nux7 kernel: [ 886.562892] sshd (2426): /proc/ ven). iver k becomes ready deprecated, please use /proc/2426/oom_score_adj instead. ... Connection to 192.168.70.1 closed. user@book:~$ ssh root@192.168.70.1 root@192.168.70.1's password: Linux linux7 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 Apr 8 18:02:20 2013 from 192.168.15.253 |
#ssh user@192.168.15.253
individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@linux7:~# cd /tmp/ root@linux7:/tmp# tail -f /var/log/messages Apr 8 17:47:19 linux7 kernel: [ 12.167359] Bluetooth: BNEP filters: protocol Apr 8 17:47:19 linux7 kernel: [ 12.169115] Bluetooth: RFCOMM TTY layer initia Apr 8 17:47:19 linux7 kernel: [ 12.169118] Bluetooth: RFCOMM socket layer ini Apr 8 17:47:19 linux7 kernel: [ 12.169120] Bluetooth: RFCOMM ver 1.11 Apr 8 17:48:32 linux7 kernel: [ 85.056668] eth0: setting fullregistered ... Connection to 192.168.70.1 closed. user@book:~$ ssh root@192.168.70.1 root@192.168.70.1's password: Linux linux7 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 Apr 8 18:02:20 2013 from 192.168.15.253 |
#apt-get install bash-complete
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package bash-complete |
#apt-get install bash-complet
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package bash-complet |
#apt-get install isc-dhcp-server
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: isc-dhcp-client isc-dhcp-common Suggested packages: resolvconf avahi-autoipd isc-dhcp-server-ldap The following NEW packages will be installed: isc-dhcp-server The following packages will be upgraded: ... Selecting previously deselected package isc-dhcp-server. Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.1.1-P1-15+squeeze8_i386.deb) ... Processing triggers for man-db ... Setting up isc-dhcp-common (4.1.1-P1-15+squeeze8) ... Setting up isc-dhcp-client (4.1.1-P1-15+squeeze8) ... Setting up isc-dhcp-server (4.1.1-P1-15+squeeze8) ... 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. |
#apt-get install isc-dhcp-server
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: isc-dhcp-client isc-dhcp-common Suggested packages: resolvconf avahi-autoipd isc-dhcp-server-ldap The following NEW packages will be installed: isc-dhcp-server The following packages will be upgraded: ... Selecting previously deselected package isc-dhcp-server. Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.1.1-P1-15+squeeze8_i386.deb) ... Processing triggers for man-db ... Setting up isc-dhcp-common (4.1.1-P1-15+squeeze8) ... Setting up isc-dhcp-client (4.1.1-P1-15+squeeze8) ... Setting up isc-dhcp-server (4.1.1-P1-15+squeeze8) ... 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. |
#dpkg -L isc-dhcp-server | grep /etc/
/etc/dhcp /etc/dhcp/dhcpd.conf /etc/init.d /etc/init.d/isc-dhcp-server |
#dpkg -L isc-dhcp-server | grep /etc/
/etc/dhcp /etc/dhcp/dhcpd.conf /etc/init.d /etc/init.d/isc-dhcp-server |
#nano /etc/dhcp/dhcpd.conf
--- /tmp/l3-saved-5807.18797.19288 2013-04-08 15:19:12.000000000 +0300 +++ /etc/dhcp/dhcpd.conf 2013-04-08 15:25:00.000000000 +0300 @@ -10,7 +10,7 @@ ddns-update-style none; # option definitions common to all supported networks... -option domain-name "example.org"; +option domain-name "linux40.unix.nt"; option domain-name-servers ns1.example.org, ns2.example.org; default-lease-time 600; @@ -32,10 +32,10 @@ # This is a very basic subnet declaration. -#subnet 10.254.239.0 netmask 255.255.255.224 { -# range 10.254.239.10 10.254.239.20; -# option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org; -#} +subnet 192.168.40.0 netmask 255.255.255.0 { + range 192.168.40.100 192.168.40.200; + option routers 192.168.40.254; +} # This declaration allows BOOTP clients to get dynamic addresses, # which we don't really recommend. |
#/etc/init.d/isc-dhcp-server status
Status of ISC DHCP server: dhcpd is running. |
#apt-cash search asterisk
bash: apt-cash: command not found |
#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-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 |
#dpkg - L
dpkg: need an action option Type dpkg --help for help about installing and deinstalling packages [*]; Use `dselect' or `aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files; Options marked [*] produce a lot of output - pipe it through `less' or `more' ! |
#dpkg - L
dpkg: need an action option Type dpkg --help for help about installing and deinstalling packages [*]; Use `dselect' or `aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files; Options marked [*] produce a lot of output - pipe it through `less' or `more' ! |
#dpkg -L |less
|
#dpkg -l |less
|
#dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii abiword 2.8.2-2.1 efficient, featureful word processor with co ii abiword-common 2.8.2-2.1 efficient, featureful word processor with co ii abiword-plugin 2.8.2-2.1 grammar checking plugin for AbiWord ii abiword-plugin 2.8.2-2.1 equation editor plugin for AbiWord ii acpi 1.5-2 displays information on ACPI devices ... ii xserver-xorg-v 1:1.2.3-2+sque X.Org X server -- Tseng display driver ii xserver-xorg-v 1:2.3.0-3 X.Org X server -- VESA display driver ii xserver-xorg-v 1:11.0.1-2 X.Org X server -- VMware display driver ii xserver-xorg-v 1:1.2.3-2 X.Org X server -- Voodoo display driver ii xsltproc 1.1.26-6+squee XSLT 1.0 command line processor ii xulrunner-1.9. 1.9.1.16-20 XUL + XPCOM application runner ii xz-utils 5.0.0-2 XZ-format compression utilities ii yelp 2.30.1+webkit- Help browser for GNOME ii zenity 2.30.0-1 Display graphical dialog boxes from shell sc ii zlib1g 1:1.2.3.4.dfsg compression library - runtime |
#dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii abiword 2.8.2-2.1 efficient, featureful word processor with co ii abiword-common 2.8.2-2.1 efficient, featureful word processor with co ii abiword-plugin 2.8.2-2.1 grammar checking plugin for AbiWord ii abiword-plugin 2.8.2-2.1 equation editor plugin for AbiWord ii acpi 1.5-2 displays information on ACPI devices ... ii xserver-xorg-v 1:1.2.3-2+sque X.Org X server -- Tseng display driver ii xserver-xorg-v 1:2.3.0-3 X.Org X server -- VESA display driver ii xserver-xorg-v 1:11.0.1-2 X.Org X server -- VMware display driver ii xserver-xorg-v 1:1.2.3-2 X.Org X server -- Voodoo display driver ii xsltproc 1.1.26-6+squee XSLT 1.0 command line processor ii xulrunner-1.9. 1.9.1.16-20 XUL + XPCOM application runner ii xz-utils 5.0.0-2 XZ-format compression utilities ii yelp 2.30.1+webkit- Help browser for GNOME ii zenity 2.30.0-1 Display graphical dialog boxes from shell sc ii zlib1g 1:1.2.3.4.dfsg compression library - runtime |
#dpkg -L
dpkg-query: --listfiles needs at least one package name argument Use --help for help about querying packages. |
#dpkg -L
dpkg-query: --listfiles needs at least one package name argument Use --help for help about querying packages. |
#^C
|
#^C
|
#dpkg -L asterisk
/. /etc /etc/asterisk /etc/init.d /etc/init.d/asterisk /etc/default /etc/default/asterisk /etc/logrotate.d /etc/logrotate.d/asterisk /var ... /usr/share/asterisk/conf/udptl.conf.sample /usr/share/asterisk/conf/logger.conf.sample /usr/share/asterisk/sounds /usr/share/asterisk/firmware /usr/share/asterisk/firmware/iax /usr/share/asterisk/agi-bin /usr/sbin/rasterisk /usr/share/man/man8/rasterisk.8.gz /usr/share/asterisk/sounds/recordings /usr/share/asterisk/sounds/custom |
#dpkg -L asterisk
/. /etc /etc/asterisk /etc/init.d /etc/init.d/asterisk /etc/default /etc/default/asterisk /etc/logrotate.d /etc/logrotate.d/asterisk /var ... /usr/share/asterisk/conf/udptl.conf.sample /usr/share/asterisk/conf/logger.conf.sample /usr/share/asterisk/sounds /usr/share/asterisk/firmware /usr/share/asterisk/firmware/iax /usr/share/asterisk/agi-bin /usr/sbin/rasterisk /usr/share/man/man8/rasterisk.8.gz /usr/share/asterisk/sounds/recordings /usr/share/asterisk/sounds/custom |
#dpkg -L asterisk | less
|
#/etc/init.d/asterisk start
Asterisk PBX is already running. Use restart. |
#ps aux | grep asterisk
asterisk 8512 0.0 0.1 49376 18560 ? Ssl 16:18 0:00 /usr/sbin/asterisk -p -U asterisk asterisk 8513 0.0 0.0 2940 568 ? S 16:18 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 8512 root 8679 0.0 0.0 3588 828 pts/11 T 16:31 0:00 less /etc/default/asterisk root 8713 0.0 0.0 3352 748 pts/11 S+ 16:32 0:00 grep asterisk |
#ps aux | grep asterisk
asterisk 8512 0.0 0.1 49376 18560 ? Ssl 16:18 0:00 /usr/sbin/asterisk -p -U asterisk asterisk 8513 0.0 0.0 2940 568 ? S 16:18 0:00 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 8512 root 8679 0.0 0.0 3588 828 pts/11 T 16:31 0:00 less /etc/default/asterisk root 8713 0.0 0.0 3352 748 pts/11 S+ 16:32 0:00 grep asterisk |
#less /etc/asterisk/sip.conf
|
#nano /etc/asterisk/sip.conf
|
#nano /etc/asterisk/sip.conf
--- /dev/null 2013-04-08 15:08:23.293390154 +0300 +++ /etc/asterisk/sip.conf 2013-04-08 16:41:29.000000000 +0300 @@ -0,0 +1,7 @@ +context=default + +[1401] +type=friend +secret=1234 +host=dynamic + |
#context=default
chown: cannot access `sip.conf': No such file or directory |
#ll
bash: ll: command not found |
#ls
adsi.conf extconfig.conf oss.conf adtranvofr.conf extensions.ael phone.conf agents.conf extensions.conf.orig phoneprov.conf ais.conf extensions.lua queuerules.conf alarmreceiver.conf extensions_minivm.conf queues.conf alsa.conf features.conf res_config_sqlite.conf amd.conf festival.conf res_ldap.conf asterisk.adsi followme.conf res_odbc.conf asterisk.conf func_odbc.conf res_pgsql.conf cdr_adaptive_odbc.conf gtalk.conf res_snmp.conf ... cli_aliases.conf manager.conf smdi.conf cli.conf manager.d telcordia-1.adsi cli_permissions.conf meetme.conf udptl.conf codecs.conf mgcp.conf unistim.conf console.conf minivm.conf usbradio.conf dbsep.conf misdn.conf users.conf dnsmgr.conf modules.conf voicemail.conf dsp.conf musiconhold.conf vpb.conf dundi.conf muted.conf enum.conf osp.conf |
#ls
adsi.conf extconfig.conf oss.conf adtranvofr.conf extensions.ael phone.conf agents.conf extensions.conf.orig phoneprov.conf ais.conf extensions.lua queuerules.conf alarmreceiver.conf extensions_minivm.conf queues.conf alsa.conf features.conf res_config_sqlite.conf amd.conf festival.conf res_ldap.conf asterisk.adsi followme.conf res_odbc.conf asterisk.conf func_odbc.conf res_pgsql.conf cdr_adaptive_odbc.conf gtalk.conf res_snmp.conf ... cli_aliases.conf manager.conf smdi.conf cli.conf manager.d telcordia-1.adsi cli_permissions.conf meetme.conf udptl.conf codecs.conf mgcp.conf unistim.conf console.conf minivm.conf usbradio.conf dbsep.conf misdn.conf users.conf dnsmgr.conf modules.conf voicemail.conf dsp.conf musiconhold.conf vpb.conf dundi.conf muted.conf enum.conf osp.conf |
#cat /etc/asterisk/sip.conf
context=default ;SIP-peer [1401] type=friend secret=1234 host=dynamic |
#cat /etc/asterisk/sip.conf
context=default ;SIP-peer [1401] type=friend secret=1234 host=dynamic |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 8512) linux4*CLI> quit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 8512) linux4*CLI> quit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 8512) linux4*CLI> sip reload [Apr 8 16:47:31] WARNING[8525]: config.c:1100 process_text_line: parse error: No category context for line 1 of /etc/asterisk/sip.conf [Apr 8 16:47:31] ERROR[8525]: chan_sip.c:24596 reload_config: Contents of sip.conf are invalid and cannot be parsed linux4*CLI> quit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 8512) linux4*CLI> sip reload [Apr 8 16:47:31] WARNING[8525]: config.c:1100 process_text_line: parse error: No category context for line 1 of /etc/asterisk/sip.conf [Apr 8 16:47:31] ERROR[8525]: chan_sip.c:24596 reload_config: Contents of sip.conf are invalid and cannot be parsed linux4*CLI> quit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 8512) linux4*CLI> core set verbose 3 Verbosity was 0 and is now 3 linux4*CLI> sip reload Reloading SIP linux4*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 1401 (Unspecified) D N 5060 Unmonitored 1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline] linux4*CLI> quit |
#asterisk -r
Asterisk 1.6.2.9-2+squeeze10, 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. ========================================================================= Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on linux4 (pid = 8512) linux4*CLI> core set verbose 3 Verbosity was 0 and is now 3 linux4*CLI> sip reload Reloading SIP linux4*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 1401 (Unspecified) D N 5060 Unmonitored 1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline] linux4*CLI> quit |
context=default ;SIP-peer [1401] type=friend secret=1234 host=dynamic
Время первой команды журнала | 13:15:42 2013- 4- 8 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:55:11 2013- 4- 8 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 28.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 8.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.11 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.79 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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