/l3/users/kos/nt-VOIP/linux6.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2398.6031.18035 2011-10-20 15:30:43.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-10-20 15:31:54.000000000 +0300 @@ -116,9 +116,9 @@ exten => _220X,1,Answer ;exten => _220X,n,Macro(monitor,SIP/${EXTEN}) +;exten => _220X,n,Macro(monitor,SIP/${EXTEN},SIP/${DB(mobile/${EXTEN})}) exten => _220X,n,Macro(monitor,SIP/${EXTEN},SIP/${DB(mobile/${EXTEN})}) exten => _220X,n,Voicemail(${EXTEN}@default) - exten => 2211,1,MeetMe(1,cI) |
#dpkg-reconfigure ejabberd
![]() ââââââââââââââââââââ⤠Configuring ejabberd ââââââââââââââââââââââ â Please reenter the password for the administrative user for â â verification. â â â â The password for the admin account again for verification: â â â â*****__________________________________________________________ â â â â <Ok> â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Replacing config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd............................................................ failed. Waiting for ejabberd to register admin user Can't register admin user "admin@linux6.unix.nt". Ejabberd server is not started. |
#dpkg-reconfigure ejabberd
ââââââââââââââââââââ⤠Configuring ejabberd ââââââââââââââââââââââ â Please reenter the password for the administrative user for â â verification. â â â â The password for the admin account again for verification: â â â â*****__________________________________________________________ â â â â <Ok> â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Replacing config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd............................................................ failed. Waiting for ejabberd to register admin user Can't register admin user "admin@linux6.unix.nt". Ejabberd server is not started. |
#dpkg-reconfigure ejabberd
![]() ââââââââââââââââââââ⤠Configuring ejabberd ââââââââââââââââââââââ â Please reenter the password for the administrative user for â â verification. â â â â The password for the admin account again for verification: â â â â*****__________________________________________________________ â â â â <Ok> â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Replacing config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd..............................^C |
#dpkg-reconfigure ejabberd
![]() Package configuration ââââââââââââââââââââ⤠Configuring ejabberd ââââââââââââââââââââââ â Please reenter the password for the administrative user for â â verification. â â â â The password for the admin account again for verification: â â â â*****__________________________________________________________ â â â â <Ok> â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Replacing config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd..............................^C |
#dpkg-reconfigure ejabberd
![]() ââââââââââââââââââââ⤠Configuring ejabberd ââââââââââââââââââââââ â Please reenter the password for the administrative user for â â verification. â â â â The password for the admin account again for verification: â â â â*****__________________________________________________________ â â â â <Ok>k> â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Starting jabber server: ejabberd............................................................ failed. Waiting for ejabberd to register admin user Can't register admin user "admin@linux6". Ejabberd server is not started. |
#dpkg-reconfigure ejabberd
Package configuration ââââââââââââââââââââ⤠Configuring ejabberd ââââââââââââââââââââââ â Please reenter the password for the administrative user for â â verification. â â â â The password for the admin account again for verification: â â â â*****__________________________________________________________ â â â â <Ok>k> â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Starting jabber server: ejabberd............................................................ failed. Waiting for ejabberd to register admin user Can't register admin user "admin@linux6". Ejabberd server is not started. |
#vim /etc/hosts
--- /tmp/l3-saved-23135.12204.24173 2011-10-20 16:45:59.000000000 +0300 +++ /etc/hosts 2011-10-20 16:46:13.000000000 +0300 @@ -1,5 +1,5 @@ 127.0.0.1 localhost -192.168.50.1 linux6.unix.nt linux6 +192.168.60.1 linux6.unix.nt linux6 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback |
#dpkg -P ejabberd
![]() (Reading database ... 136126 files and directories currently installed.) Removing ejabberd ... Crash dump was written to: /var/log/ejabberd/erl_crash.dump Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}) Stopping jabber server: ejabberd already stopped. Purging configuration files for ejabberd ... Removing user `ejabberd' ... Warning: group `ejabberd' has no more members. Processing triggers for man-db ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing man-db (--purge): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: man-db |
#apt-get install ejabberd
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. Suggested packages: libunix-syslog-perl The following NEW packages will be installed: ejabberd ... Preconfiguring packages ... Selecting previously deselected package ejabberd. (Reading database ... 135833 files and directories currently installed.) Unpacking ejabberd (from .../ejabberd_2.1.5-3+squeeze1_i386.deb) ... Setting up man-db (2.5.7-8) ... Updating database of manual pages ... Setting up ejabberd (2.1.5-3+squeeze1) ... Generating SSL certificate /etc/ejabberd/ejabberd.pem... Creating config file /etc/ejabberd/ejabberd.cfg with new version Starting jabber server: ejabberd. |
#apt-get install sendxmpp
![]() 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: libauthen-sasl-perl libdigest-sha1-perl libio-socket-ssl-perl libnet-libidn-perl libnet-ssleay-perl libnet-xmpp-perl libxml-stream-perl ... Unpacking sendxmpp (from .../sendxmpp_1.20-1_all.deb) ... Processing triggers for man-db ... Setting up libauthen-sasl-perl (2.1500-1) ... Setting up libdigest-sha1-perl (2.13-1) ... Setting up libnet-ssleay-perl (1.36-1) ... Setting up libio-socket-ssl-perl (1.33-1+squeeze1) ... Setting up libnet-libidn-perl (0.12.ds-1+b1) ... Setting up libxml-stream-perl (1.23-1) ... Setting up libnet-xmpp-perl (1.02-1) ... Setting up sendxmpp (1.20-1) ... |
#apt-get install sendxmpp
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: libauthen-sasl-perl libdigest-sha1-perl libio-socket-ssl-perl libnet-libidn-perl libnet-ssleay-perl libnet-xmpp-perl libxml-stream-perl ... Unpacking sendxmpp (from .../sendxmpp_1.20-1_all.deb) ... Processing triggers for man-db ... Setting up libauthen-sasl-perl (2.1500-1) ... Setting up libdigest-sha1-perl (2.13-1) ... Setting up libnet-ssleay-perl (1.36-1) ... Setting up libio-socket-ssl-perl (1.33-1+squeeze1) ... Setting up libnet-libidn-perl (0.12.ds-1+b1) ... Setting up libxml-stream-perl (1.23-1) ... Setting up libnet-xmpp-perl (1.02-1) ... Setting up sendxmpp (1.20-1) ... |
#ejabberdctl
![]() Usage: ejabberdctl [--node nodename] [--auth user host password] command [options] Available commands in this ejabberd node: add_rosteritem localuser localserver user server nick group subs Add an item to a user's roster backup file Store the database to backup file ban_account user host reason Ban an account: kick sessions and set random password change_password user host newpass Change the password of an account ... Update the given module, or use the keyword: all update_list List modified modules that can be updated user_resources user host List user's connected resources user_sessions_info user host Get information about all sessions of a user Examples: ejabberdctl restart ejabberdctl --node ejabberd@host restart |
#ejabberdctl
![]() Usage: ejabberdctl [--node nodename] [--auth user host password] command [options] Available commands in this ejabberd node: add_rosteritem localuser localserver user server nick group subs Add an item to a user's roster backup file Store the database to backup file ban_account user host reason Ban an account: kick sessions and set random password change_password user host newpass Change the password of an account ... Update the given module, or use the keyword: all update_list List modified modules that can be updated user_resources user host List user's connected resources user_sessions_info user host Get information about all sessions of a user Examples: ejabberdctl restart ejabberdctl --node ejabberd@host restart |
#getent passwd asterisk
![]() asterisk:x:109:114:Asterisk PBX daemon,,,:/var/lib/asterisk:/bin/false |
#getent passwd asterisk
asterisk:x:109:114:Asterisk PBX daemon,,,:/var/lib/asterisk:/bin/false |
#vim /var/lib/asterisk/.sendxmpprc
![]() --- /dev/null 2011-10-19 16:49:22.646865539 +0300 +++ /var/lib/asterisk/.sendxmpprc 2011-10-20 17:21:46.000000000 +0300 @@ -0,0 +1 @@ +asterisk@linux6.unix.nt password |
#su -asterisk
![]() su: invalid option -- 'a' Usage: su [options] [LOGIN] Options: -c, --command COMMAND pass COMMAND to the invoked shell -h, --help display this help message and exit -, -l, --login make the shell a login shell -m, -p, --preserve-environment do not reset environment variables, and keep the same shell -s, --shell SHELL use SHELL instead of the default in passwd |
#su -asterisk
![]() su: invalid option -- 'a' Usage: su [options] [LOGIN] Options: -c, --command COMMAND pass COMMAND to the invoked shell -h, --help display this help message and exit -, -l, --login make the shell a login shell -m, -p, --preserve-environment do not reset environment variables, and keep the same shell -s, --shell SHELL use SHELL instead of the default in passwd |
#su - asterisk
![]() asterisk@linux6:~$ pwd /var/lib/asterisk asterisk@linux6:~$ echo test | sendxmpp user@linux6.unix.nt Could not connect to 'linux6.unix.nt' on port 5222: asterisk@linux6:~$ echo test | sendxmpp user@linux6 Could not connect to 'linux6.unix.nt' on port 5222: asterisk@linux6:~$ logout |
#su - asterisk
![]() asterisk@linux6:~$ pwd /var/lib/asterisk asterisk@linux6:~$ echo test | sendxmpp user@linux6.unix.nt Could not connect to 'linux6.unix.nt' on port 5222: asterisk@linux6:~$ echo test | sendxmpp user@linux6 Could not connect to 'linux6.unix.nt' on port 5222: asterisk@linux6:~$ logout |
#vim
![]() --- /tmp/l3-saved-2398.3354.19058 2011-10-20 17:27:05.000000000 +0300 +++ /etc/asterisk/extensions.conf 2011-10-20 17:28:25.000000000 +0300 @@ -60,6 +60,7 @@ exten => s,n,Monitor(wav,${CALLFILENAME},m) exten => s,n,GotoIf($[ "${CALLERID(num):0:2}" = "21" ]?dial) exten => s,n,SetMusicOnHold(class2) +exten => s,n,System( echo Call from ${CALLERID(num)} | sendxmpp user@linux6.unix.nt) exten => s,n(dial),Dial(${ARG1},10,tT) exten => s,n,GotoIf($[ "${DIALSTATUS}" = ANSWER ]?hangup) exten => s,n(dial),Dial(${ARG2},10,tT) |
#asterisk -rvvv
![]() 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 linux6 (pid = 24950) Verbosity was 0 and is now 3 linux6*CLI> quit Executing last minute cleanups |
#asterisk -rvvv
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 linux6 (pid = 24950) Verbosity was 0 and is now 3 linux6*CLI> quit Executing last minute cleanups |
#ls /etc/init.d/
![]() acpid hostname.sh procps alsa-utils hwclockfirst.sh rc anacron hwclock.sh rc.local asterisk ifupdown rcS atd ifupdown-clean README avahi-daemon isc-dhcp-server reboot binfmt-support kbd rmnologin bluetooth keyboard-setup rsync bootlogd killprocs rsyslog bootlogs lm-sensors samba ... dahdi mountnfs.sh stop-bootlogd-single dbus mountoverflowtmp sudo ejabberd mtab.sh udev exim4 netdiag udev-mtab fancontrol networking umountfs festival network-manager umountnfs.sh fuse nfs-common umountroot gdm3 openbsd-inetd unattended-upgrades halt portmap urandom hdparm pppd-dns x11-common |
#ls /etc/init.d/
acpid hostname.sh procps alsa-utils hwclockfirst.sh rc anacron hwclock.sh rc.local asterisk ifupdown rcS atd ifupdown-clean README avahi-daemon isc-dhcp-server reboot binfmt-support kbd rmnologin bluetooth keyboard-setup rsync bootlogd killprocs rsyslog bootlogs lm-sensors samba ... dahdi mountnfs.sh stop-bootlogd-single dbus mountoverflowtmp sudo ejabberd mtab.sh udev exim4 netdiag udev-mtab fancontrol networking umountfs festival network-manager umountnfs.sh fuse nfs-common umountroot gdm3 openbsd-inetd unattended-upgrades halt portmap urandom hdparm pppd-dns x11-common |
#/etc/init.d/ejabberd start
![]() Starting jabber server: ejabberd already running. |
#ls -l /etc/dahdi/
![]() total 8 -rw-r--r-- 1 root root 310 Oct 21 10:46 system.conf -rw-r--r-- 1 root root 1091 Sep 29 2009 xpp.conf |
#ls -l /etc/dahdi/
total 8 -rw-r--r-- 1 root root 310 Oct 21 10:46 system.conf -rw-r--r-- 1 root root 1091 Sep 29 2009 xpp.conf |
#dahdi_cfg -v
![]() DAHDI Tools Version - 2.2.1.1 DAHDI Version: 2.3.0.1 Echo Canceller(s): Configuration ====================== 0 channels to configure. |
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1 DAHDI Version: 2.3.0.1 Echo Canceller(s): Configuration ====================== 0 channels to configure. |
#uname -a
![]() Linux linux6 2.6.32-5-686 #1 SMP Mon Oct 3 04:15:24 UTC 2011 i686 GNU/Linux |
#uname -a
Linux linux6 2.6.32-5-686 #1 SMP Mon Oct 3 04:15:24 UTC 2011 i686 GNU/Linux |
#dahdi_cfg -v
![]() DAHDI Tools Version - 2.2.1.1 DAHDI Version: 2.3.0.1 Echo Canceller(s): Configuration ====================== 0 channels to configure. |
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1 DAHDI Version: 2.3.0.1 Echo Canceller(s): Configuration ====================== 0 channels to configure. |
#lspci
![]() 00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 12) 00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12) 00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06) 00:16.2 IDE interface: Intel Corporation 5 Series/3400 Series Chipset PT IDER Controller (rev 06) 00:16.3 Serial controller: Intel Corporation 5 Series/3400 Series Chipset KT Controller (rev 06) 00:19.0 Ethernet controller: Intel Corporation 82578DC Gigabit Network Connection (rev 06) 00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06) 00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06) 00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6) 00:1f.0 ISA bridge: Intel Corporation 5 Series Chipset LPC Interface Controller (rev 06) 00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06) 00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06) 02:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller 03:00.0 Ethernet controller: Digium, Inc. Wildcard TDM410 4-port analog card (rev 11) |
#lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 12) 00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12) 00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06) 00:16.2 IDE interface: Intel Corporation 5 Series/3400 Series Chipset PT IDER Controller (rev 06) 00:16.3 Serial controller: Intel Corporation 5 Series/3400 Series Chipset KT Controller (rev 06) 00:19.0 Ethernet controller: Intel Corporation 82578DC Gigabit Network Connection (rev 06) 00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06) 00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06) 00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6) 00:1f.0 ISA bridge: Intel Corporation 5 Series Chipset LPC Interface Controller (rev 06) 00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06) 00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06) 02:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller 03:00.0 Ethernet controller: Digium, Inc. Wildcard TDM410 4-port analog card (rev 11) |
#dahdi_cfg -v
![]() DAHDI Tools Version - 2.2.1.1 DAHDI Version: 2.3.0.1 Echo Canceller(s): OSLEC Configuration ====================== 2 channels to configure. Setting echocan for channel 1 to oslec Setting echocan for channel 2 to oslec |
#dahdi_cfg -v
DAHDI Tools Version - 2.2.1.1 DAHDI Version: 2.3.0.1 Echo Canceller(s): OSLEC Configuration ====================== 2 channels to configure. Setting echocan for channel 1 to oslec Setting echocan for channel 2 to oslec |
#~
![]() ; Autogenerated by /usr/sbin/dahdi_genconf on Fri Oct 21 11:02:35 2011 ; If you edit this file and execute /usr/sbin/dahdi_genconf again, ; your manual changes will be LOST. ; Dahdi Channels Configurations (chan_dahdi.conf) ; ; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended ; to be #include-d by /etc/chan_dahdi.conf that will include the global settings ; ; Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER) ;;; line="1 WCTDM/0/0 FXSKS (SWEC: OSLEC)" ... signalling=fxo_ks callerid="Channel 2" <4002> mailbox=4002 group=5 context=from-internal channel => 2 callerid= mailbox= group= context=default |
#~
; Autogenerated by /usr/sbin/dahdi_genconf on Fri Oct 21 11:02:35 2011 ; If you edit this file and execute /usr/sbin/dahdi_genconf again, ; your manual changes will be LOST. ; Dahdi Channels Configurations (chan_dahdi.conf) ; ; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended ; to be #include-d by /etc/chan_dahdi.conf that will include the global settings ; ; Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER) ;;; line="1 WCTDM/0/0 FXSKS (SWEC: OSLEC)" ... signalling=fxo_ks callerid="Channel 2" <4002> mailbox=4002 group=5 context=from-internal channel => 2 callerid= mailbox= group= context=default |
linux6
Время первой команды журнала | 14:30:42 2011-10-20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:09:03 2011-10-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 20.79 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 9.90 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.69 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.44 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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