/l3/users/user2-yuriy/nt-voip/Linux2.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#ls
install lilalo lilalo.1 silver.gsm silver.wav test.txt |
#[ ]
[internal] [ ] exten => 8000,1,Answ(2) exten => 8000,n,Playback(welcome) ;exten => 1201,1,Dial(Sip/1201) exten => 8300,1,Voice(ailmain() ) exten => 8301,1,Meetme(1234) exten => _122X,1,AgentLogin(100${EXTEN:3}) exten => 8302,1,Meetme(1234,m) (queue1) [local] exten => 8300,1,Voicemailmain() exten => 8300,1,Voicem(1234)n() -- INSERT -- 26,16 Top "/etc/asterisk/extensions.conf" 74L, 2209C written |
#[ ]
;exten => 1205,1,Dial(Sip/1202&Sip/1203) exten => _81XX,n exten => 1205,1,Answer exten => 1205,n,Dial(SIP/1202&SIP/1203) "/etc/asterisk/extensions.conf" 71L, 2176C exten => 1204,1,Queue(queue1) exten => 8300,1,Voicemailmain() exten => 8301,1,Meetme(1234) exten => 8302,1,Meetme(1234,m) [internal] [ ] exten => 8000,1,Answ(2) exten => 8000,n,Playback(welcome) ;exten => 1201,1,Dial(Sip/1201) ( ) exten => _122X,1,AgentLogin(100${EXTEN:3}) (queue1) exten => 8300,1,Voicem(1234)n() -- INSERT -- 26,16 Top "/etc/asterisk/extensions.conf" 74L, 2209C written |
#vim /etc/asterisk/queues.conf
--- /tmp/l3-saved-1572.5959.23137 2013-04-10 16:06:27.000000000 +0300 +++ /etc/asterisk/queues.conf 2013-04-10 16:07:33.000000000 +0300 @@ -500,7 +500,7 @@ [queue1] -member => Agent/1001 +member => Sip/1001 member => Agent/1002 strategy = random |
#vim /etc/asterisk/queues.conf
--- /tmp/l3-saved-1572.12551.26136 2013-04-10 16:08:14.000000000 +0300 +++ /etc/asterisk/queues.conf 2013-04-10 16:08:55.000000000 +0300 @@ -500,7 +500,7 @@ [queue1] -member => Sip/1001 +member => Sip/1202 member => Agent/1002 strategy = random |
#jobs
[1]+ Stopped /usr/bin/vim "$@" |
#vim /etc/asterisk/agents.conf
|
#~
If this is the case, be careful not to end up with two different instances of the same file when making changes. Quit, or continue with caution. (2) An edit session for this file crashed. If this is the case, use ":recover" or "vim -r /etc/asterisk/agents.conf" to recover the changes (see ":help recovery"). If you did this already, delete the swap file "/etc/asterisk/.agents.conf.s w p" to avoid this message. Swap file "/etc/asterisk/.agents.conf.swp" already exists! |
#~
E325: ATTENTION Found a swap file by the name "/etc/asterisk/.agents.conf.swp" owned by: root dated: Wed Apr 10 16:16:59 2013 file name: /etc/asterisk/agents.conf modified: no user name: root host name: Linux2 process ID: 6632 (still running) While opening file "/etc/asterisk/agents.conf" dated: Wed Apr 10 15:55:52 2013 (1) Another program may be editing the same file. If this is the case, be careful not to end up with two different instances of the same file when making changes. Quit, or continue with caution. (2) An edit session for this file crashed. If this is the case, use ":recover" or "vim -r /etc/asterisk/agents.conf" to recover the changes (see ":help recovery"). If you did this already, delete the swap file "/etc/asterisk/.agents.conf.s w to avoid this message. Swap file "/etc/asterisk/.agents.conf.swp" already exists! [O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort: |
#vim /etc/asterisk/agents.conf
--- /tmp/l3-saved-1572.23683.9821 2013-04-10 16:33:16.000000000 +0300 +++ /etc/asterisk/agents.conf 2013-04-10 16:33:46.000000000 +0300 @@ -110,4 +110,4 @@ ; agent => agentid,agentpassword,name ; agent => 1001,4321,Mark Spencer -agent => 1002,4321,Will Meadows +agent => 1002,4222,Will Meadows |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. [1]+ Killed asterisk -r |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. [1]+ Killed asterisk -r |
#/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. |
#vim /etc/asterisk/queues.conf
--- /tmp/l3-saved-1572.29289.29474 2013-04-10 17:14:23.000000000 +0300 +++ /etc/asterisk/queues.conf 2013-04-10 17:18:16.000000000 +0300 @@ -501,9 +501,9 @@ [queue1] member => Agent/1001 -member => Agent/1002 +member => Sip/1202 -nnounce-frequency = 90 +announce-frequency = 90 min-announce-frequency = 15 periodic-announce-frequency=60 random-periodic-announce=no |
#/etc/init.d/asterisk RESTART
Usage: /etc/init.d/asterisk {start|stop|restart|reload|status|debug|logger-reload|extensions-reload|restart-convenient|force-reload} |
#/etc/init.d/asterisk RESTART
Usage: /etc/init.d/asterisk {start|stop|restart|reload|status|debug|logger-reload|extensions-reload|restart-convenient|force-reload} |
#/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. |
#register => chicago:1234@192.168.10.1/boston
; ; A strategy may be specified. Valid strategies include: ; ; ringall - ring all available channels until one answers (default) ; leastrecent - ring interface which was least recently called by this queue ; fewestcalls - ring the one with fewest completed calls from this queue ; random - ring random interface ; rrmemory - round robin with memory, remember where we left off last ring pass ; linear - rings interfaces in the order specified in this configuration file. ; If you use dynamic members, the members will be rung in the order in ... ;member => DAHDI/2,10 ;member => DAHDI/3,10,Bob Johnson ;member => Agent/1001 ;member => Agent/1002 ;member => Local/1000@default,0,John Smith,SIP/1000 ; ; Note that using agent groups is probably not what you want. Strategies do ; not propagate down to the Agent system so if you want round robin, least ; recent, etc, you should list all the agents in this file individually and not ; |
#register => chicago:1234@192.168.10.1/boston
; Note that a timeout to fail out of a queue may be passed as part of ; an application call from extensions.conf: ; Queue(queuename,[options],[optionalurl],[announceoverride],[timeout]) ; example: Queue(dave,t,,,45) ; shared_lastcall will make the lastcall and calls received be the same in ; members logged in more than one queue. ; This is useful to make the queue respect the wrapuptime of another queue ; for a shared member ; shared_lastcall=no ... ; all variables will be evaluated just prior to recording being started.${X} and ; ; ; If you wish to implement a rule defined in queuerules.conf (see ; configs/queuerules.conf.sample from the asterisk source directory for ; more information about penalty rules) by default, you may specify this ; by setting defaultrule to the rule's name ; ; defaultrule = myrule ; |
#member => Agent/1001
[xten => ]205,1,Answer [ ] exten => 1205,n,Dial(SIP/1202&SIP/1203)40C exten => _122X,1,AgentLogin(100${EXTEN:3}) exten => 1204,1,Queue(queue1) ,Answer,Queue(queue1) exten => 8300,1,Voicemailmain() ;voicemail exten => 8301,1,Meetme(1234) ;conferenc "/etc/asterisk/extensions.conf" 74L, 2247C written |
#member => Agent/1001
[xten => ]205,1,Answer [ ] exten => 1205,n,Dial(SIP/1202&SIP/1203)40C exten => _122X,1,AgentLogin(100${EXTEN:3}) exten => 1204,1,Queue(queue1) ,Answer,Queue(queue1) exten => 8300,1,Voicemailmain() ;voicemail exten => 8301,1,Meetme(1234) ;conferenc "/etc/asterisk/extensions.conf" 74L, 2247C written |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-1572.30650.30115 2013-04-10 17:33:02.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-10 17:33:41.000000000 +0300 @@ -16,7 +16,8 @@ exten => _122X,1,AgentLogin(100${EXTEN:3}) -exten => 1204,1,Answer,Queue(queue1) +exten => 1204,1,Answer +exten => 1204,n,Queue(queue1) exten => 8300,1,Voicemailmain() ;voicemail |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-1572.13307.14756 2013-04-10 17:51:10.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-10 17:51:39.000000000 +0300 @@ -1,7 +1,7 @@ [general] context=default register => chicago:1234@192.168.10.1/boston - +languich=ru ;register => brest:1234@192.168.60.1/minsk ;register => 223:rootpass22@178.63.229.229/external |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. [1]+ Killed asterisk -rvvv |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. [1]+ Killed asterisk -rvvv |
#asterisk -rvv
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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1429) Verbosity was 0 and is now 2 Linux2*CLI> exit Executing last minute cleanups |
#asterisk -rvv
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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 1429) Verbosity was 0 and is now 2 Linux2*CLI> exit Executing last minute cleanups |
#[ype=fri]nd
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: alsa-oss festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat Suggested packages: pidgin-festival festival-freebsoft-utils The following NEW packages will be installed: alsa-oss festival festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat 0 upgraded, 7 newly installed, 0 to remove and 2 not upgraded. ... Processing triggers for man-db ... Processing triggers for install-info ... Setting up alsa-oss (1.0.17-4) ... Setting up libestools2.0 (1:2.0.95~beta-2) ... Setting up oss-compat (0.0.4+nmu3) ... FATAL: Module snd_seq_oss not found. Setting up festival (1:2.0.95~beta-5.1) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-kallpc16k (1.4.0-5) ... |
#[ype=fri]nd
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: alsa-oss festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat Suggested packages: pidgin-festival festival-freebsoft-utils The following NEW packages will be installed: alsa-oss festival festlex-cmu festlex-poslex festvox-kallpc16k libestools2.0 oss-compat 0 upgraded, 7 newly installed, 0 to remove and 2 not upgraded. ... Processing triggers for man-db ... Processing triggers for install-info ... Setting up alsa-oss (1.0.17-4) ... Setting up libestools2.0 (1:2.0.95~beta-2) ... Setting up oss-compat (0.0.4+nmu3) ... FATAL: Module snd_seq_oss not found. Setting up festival (1:2.0.95~beta-5.1) ... Setting up festlex-cmu (1.4.0-6) ... Setting up festlex-poslex (1.4.0-5) ... Setting up festvox-kallpc16k (1.4.0-5) ... |
#asterisk -rvv
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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 4849) Verbosity was 0 and is now 2 ... No such command 'show noop' (type 'core show help show noop' for other possible commands) -- Registered SIP '1202' at 192.168.20.101 port 55519 -- Registered SIP '1203' at 192.168.20.101 port 55519 [Apr 11 13:02:26] NOTICE[4872]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1202 [Apr 11 13:02:26] NOTICE[4872]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1203 Executing last minute cleanups == Destroying musiconhold processes Linux2*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvv
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. ========================================================================= == Parsing '/etc/asterisk/asterisk.conf': == Found Connected to Asterisk 1.6.2.9-2+squeeze10 currently running on Linux2 (pid = 4849) Verbosity was 0 and is now 2 ... No such command 'show noop' (type 'core show help show noop' for other possible commands) -- Registered SIP '1202' at 192.168.20.101 port 55519 -- Registered SIP '1203' at 192.168.20.101 port 55519 [Apr 11 13:02:26] NOTICE[4872]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1202 [Apr 11 13:02:26] NOTICE[4872]: chan_sip.c:21643 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1203 Executing last minute cleanups == Destroying musiconhold processes Linux2*CLI> Disconnected from Asterisk server Executing last minute cleanups |
#cat /tmp/text1.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > text1.wav
cat: /tmp/text1.txt: No such file or directory SIOD ERROR: unbound variable : voice_msu_ru_nsh_clunits |
#cat /tmp/text1.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > text1.wav
cat: /tmp/text1.txt: No such file or directory SIOD ERROR: unbound variable : voice_msu_ru_nsh_clunits |
#cat /tmp/text1.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > text1.wav
SIOD ERROR: unbound variable : voice_msu_ru_nsh_clunits |
#cat /tmp/text1.txt | text2wave -eval '(voice_msu_ru_nsh_clunits)' > text1.wav
SIOD ERROR: unbound variable : voice_msu_ru_nsh_clunits |
#apt-cache search | perl asterisk
Can't open perl script "asterisk": No such file or directory E: You must give at least one search pattern |
#apt-cache search | perl asterisk
Can't open perl script "asterisk": No such file or directory E: You must give at least one search pattern |
#apt-cache search perl asterisk
libasterisk-agi-perl - Collections of Perl modules to be used with Asterisk PBX AGI libnetsds-perl - Service Delivery Suite framework |
#apt-cache search perl asterisk
libasterisk-agi-perl - Collections of Perl modules to be used with Asterisk PBX AGI libnetsds-perl - Service Delivery Suite framework |
#apt-get install libasterisk-agi-perl
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libasterisk-agi-perl 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 42.2 kB of archives. After this operation, 160 kB of additional disk space will be used. Get:1 http://192.168.15.253/debian/ squeeze/main libasterisk-agi-perl all 1.01-2 [42.2 kB] Fetched 42.2 kB in 0s (2,147 kB/s) Selecting previously deselected package libasterisk-agi-perl. (Reading database ... 128636 files and directories currently installed.) Unpacking libasterisk-agi-perl (from .../libasterisk-agi-perl_1.01-2_all.deb) ... Processing triggers for man-db ... Setting up libasterisk-agi-perl (1.01-2) ... |
#apt-get install libasterisk-agi-perl
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libasterisk-agi-perl 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 42.2 kB of archives. After this operation, 160 kB of additional disk space will be used. Get:1 http://192.168.15.253/debian/ squeeze/main libasterisk-agi-perl all 1.01-2 [42.2 kB] Fetched 42.2 kB in 0s (2,147 kB/s) Selecting previously deselected package libasterisk-agi-perl. (Reading database ... 128636 files and directories currently installed.) Unpacking libasterisk-agi-perl (from .../libasterisk-agi-perl_1.01-2_all.deb) ... Processing triggers for man-db ... Setting up libasterisk-agi-perl (1.01-2) ... |
#scp linux7 /usr/local/bin/asterisk-festival.pl /usr/local/bin/asterisk
/usr/local/bin/asterisk: No such file or directory |
#scp linux7 /usr/local/bin/asterisk-festival.pl /usr/local/bin/asterisk
/usr/local/bin/asterisk: No such file or directory |
#history |grep linux7
174 [root@linux7:~]# # http://downloads.asterisk.org/pub/telephony/sounds/ 412 scp linux7:/usr/src/dahdi/dahdi-linux-2.6.2.tar.gz /usr/src 414 scp linux7:/usr/src/dahdi/dahdi-linux-2.6.2.tar.gz /usr/src 417 scp linux7:/usr/src/dahdi/dahdi-linux-2.6.2.tar.gz /usr/ D 516 scp linux7 /usr/local/bin/asterisk-festival.pl /usr/local/bin/asterisk 518 history |grep linux7 |
#history |grep linux7
174 [root@linux7:~]# # http://downloads.asterisk.org/pub/telephony/sounds/ 412 scp linux7:/usr/src/dahdi/dahdi-linux-2.6.2.tar.gz /usr/src 414 scp linux7:/usr/src/dahdi/dahdi-linux-2.6.2.tar.gz /usr/src 417 scp linux7:/usr/src/dahdi/dahdi-linux-2.6.2.tar.gz /usr/ D 516 scp linux7 /usr/local/bin/asterisk-festival.pl /usr/local/bin/asterisk 518 history |grep linux7 |
#/usr/local/bin/asterisk-festival.pl burunduki.txt
bash: /usr/local/bin/asterisk-festival.pl: No such file or directory |
#/usr/local/bin/asterisk-festival.pl burunduki.txt
bash: /usr/local/bin/asterisk-festival.pl: No such file or directory |
#scp linux7:/usr/local/bin/asterisk-festival.pl /usr/local/bin/
root@linux7's password: asterisk-festival.pl 100% 702 0.7KB/s 00:00 |
#scp linux7:/usr/local/bin/asterisk-festival.pl /usr/local/bin/
root@linux7's password: asterisk-festival.pl 100% 702 0.7KB/s 00:00 |
#fg 1
[general] context=default register => chicago:1234@192.168.10.1/boston language=ru ;register => brest:1234@192.168.60.1/minsk ;register => 223:rootpass22@178.63.229.229/external ;register => brest:1234@192.168.60.1/chicago ;register => 223:rootpass22@178.63.229.229/external ;xxx;register => minsk:1234@192.168.60.1/boston ;xxx;register => 223:rootpass22@178.63.229.229/Moscau ; SIP-peer [1201] type=friend secret=12345 host=dynamic context=gr1 username=Cisco callgroup=1 pickupgroup=1 [1202] |
#fg 1
[general] context=default register => chicago:1234@192.168.10.1/boston language=ru ;register => brest:1234@192.168.60.1/minsk ;register => 223:rootpass22@178.63.229.229/external ;register => brest:1234@192.168.60.1/chicago ;register => 223:rootpass22@178.63.229.229/external ;xxx;register => minsk:1234@192.168.60.1/boston ;xxx;register => 223:rootpass22@178.63.229.229/Moscau ; SIP-peer [1201] type=friend secret=12345 host=dynamic context=gr1 username=Cisco callgroup=1 pickupgroup=1 [1202] |
проверка русского языка
Время первой команды журнала | 14:39:06 2013- 4-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:53:30 2013- 4-11 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 29.70 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 7.92 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.51 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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