/l3/users/gnatishen/nt-voip/linux3.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 |
|
#asterisk -vvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 linux3 (pid = 8210) linux3*CLI> linux3*CLI> ... [Apr 12 16:33:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5' [Apr 12 16:33:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2' [Apr 12 16:33:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5' [Apr 12 16:33:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2' [Apr 12 16:33:45] NOTICE[8247]: chan_sip.c:11726 sip_reg_timeout: -- Registration for 'gweru@192.168.40.1' timed out, trying again (Attempt #2) [Apr 12 16:33:57] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5' [Apr 12 16:33:57] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2' linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -vvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 linux3 (pid = 8210) linux3*CLI> linux3*CLI> ... [Apr 12 16:33:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5' [Apr 12 16:33:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2' [Apr 12 16:33:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5' [Apr 12 16:33:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2' [Apr 12 16:33:45] NOTICE[8247]: chan_sip.c:11726 sip_reg_timeout: -- Registration for 'gweru@192.168.40.1' timed out, trying again (Attempt #2) [Apr 12 16:33:57] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5' [Apr 12 16:33:57] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2' linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#vim /etc/asterisk/sip.conf
--- /tmp/l3-saved-2297.7338.1720 2013-04-12 16:35:07.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-12 16:35:41.000000000 +0300 @@ -15,7 +15,7 @@ pickupgroup=1 call-limit=1 limitonpeers=yes - +encryption=yes callgroup=2 pickupgroup=2 @@ -32,7 +32,7 @@ pickupgroup=1 call-limit=1 limitonpeers=yes - +encryption=yes [1303] |
#asterisk -vvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 linux3 (pid = 8210) linux3*CLI> sip reload Reloading SIP ... [Apr 12 16:38:12] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2' linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> [Apr 12 16:38:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5' [Apr 12 16:38:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2' linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -vvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 linux3 (pid = 8210) linux3*CLI> sip reload Reloading SIP ... [Apr 12 16:38:12] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2' linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> [Apr 12 16:38:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5' [Apr 12 16:38:27] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2' linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#vim /etc/asterisk/datacard.conf
--- /tmp/l3-saved-2297.19689.31714 2013-04-12 16:38:54.000000000 +0300 +++ /etc/asterisk/datacard.conf 2013-04-12 16:39:28.000000000 +0300 @@ -47,25 +47,25 @@ u2diag=0 ; set U2DIAG parameter (0 = disable everything except modem function) -[datacard0](E1550_t) -audio=/dev/ttyUSB1 ; tty for audio connection -data=/dev/ttyUSB2 ; tty for AT commands -group=1 ; calling group -context=incoming_gsm +;[datacard0](E1550_t) +;audio=/dev/ttyUSB1 ; tty for audio connection +;data=/dev/ttyUSB2 ; tty for AT commands +;group=1 ; calling group +;context=incoming_gsm -[datacard1] -context=incoming-datacard ; context for incoming calls +;[datacard1] +;context=incoming-datacard ; context for incoming calls ;language=de ; Use German as default language -audio=/dev/ttyUSB4 ; tty port for audio connection -data=/dev/ttyUSB5 ; tty port for AT commands -group=2 ; calling group -rxgain=10 ; increase the incoming volume -txgain=10 ; increase the outgoint volume -autodeletesms=yes ; auto delete incoming sms -resetdatacard=yes ; reset datacard during initialization -u2diag=0 ; set U2DIAG parameter (0 = disable everything except modem function) -usecallingpres=yes ; use the caller ID presentation or not -callingpres=allowed_passed_screen ; set caller ID presentation -disablesms=yes ; chan_datacard has currently a bug with SMS reception. When a SMS gets in during a +;audio=/dev/ttyUSB4 ; tty port for audio connection +;data=/dev/ttyUSB5 ; tty port for AT commands +;group=2 ; calling group +;rxgain=10 ; increase the incoming volume +;txgain=10 ; increase the outgoint volume +;autodeletesms=yes ; auto delete incoming sms +;resetdatacard=yes ; reset datacard during initialization +;u2diag=0 ; set U2DIAG parameter (0 = disable everything except modem function) +;usecallingpres=yes ; use the caller ID presentation or not +;callingpres=allowed_passed_screen ; set caller ID presentation +;disablesms=yes ; chan_datacard has currently a bug with SMS reception. When a SMS gets in during a ; call chan_datacard might crash. Enable this option to disable sms reception. ; Default = no |
#asterisk -vvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 linux3 (pid = 8210) linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> [Apr 12 16:39:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5' [Apr 12 16:39:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2' linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -vvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 linux3 (pid = 8210) linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> [Apr 12 16:39:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB5' [Apr 12 16:39:42] WARNING[8232]: chan_datacard.c:108 opentty: Unable to open '/dev/ttyUSB2' linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#/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. |
#asterisk -vvvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 11.3.0 currently running on linux3 (pid = 2665) linux3*CLI> linux3*CLI> ... linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -vvvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 11.3.0 currently running on linux3 (pid = 2665) linux3*CLI> linux3*CLI> ... linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -vvvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 11.3.0 currently running on linux3 (pid = 2665) linux3*CLI> sip reload Reloading SIP ... linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -vvvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 11.3.0 currently running on linux3 (pid = 2665) linux3*CLI> sip reload Reloading SIP ... linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#/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/sip.conf
--- /tmp/l3-saved-2297.22772.1329 2013-04-12 16:43:14.000000000 +0300 +++ /etc/asterisk/sip.conf 2013-04-12 16:43:27.000000000 +0300 @@ -15,7 +15,7 @@ pickupgroup=1 call-limit=1 limitonpeers=yes -encryption=yes +;encryption=yes callgroup=2 pickupgroup=2 @@ -32,7 +32,7 @@ pickupgroup=1 call-limit=1 limitonpeers=yes -encryption=yes +;encryption=yes [1303] |
#asterisk -vvvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 11.3.0 currently running on linux3 (pid = 2847) linux3*CLI> asterisk reload No such command 'asterisk reload' (type 'core show help asterisk reload' for other possible commands) ... == Parsing '/etc/asterisk/users.conf': Found == Using SIP CoS mark 4 == Parsing '/etc/asterisk/sip_notify.conf': Found linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -vvvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 11.3.0 currently running on linux3 (pid = 2847) linux3*CLI> asterisk reload No such command 'asterisk reload' (type 'core show help asterisk reload' for other possible commands) ... == Parsing '/etc/asterisk/users.conf': Found == Using SIP CoS mark 4 == Parsing '/etc/asterisk/sip_notify.conf': Found linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#rm /etc/asterisk/
adsi.conf enum.conf osp.conf adtranvofr.conf extconfig.conf oss.conf agents.conf extensions.ael phone.conf ais.conf extensions.conf phoneprov.conf alarmreceiver.conf extensions.conf.ORIG queuerules.conf alsa.conf extensions.lua queues.conf amd.conf extensions_minivm.conf res_config_sqlite.conf asterisk.adsi features.conf res_ldap.conf asterisk.conf festival.conf res_odbc.conf cdr_adaptive_odbc.conf followme.conf res_pgsql.conf ... cli_aliases.conf logger.conf smdi.conf cli.conf manager.conf telcordia-1.adsi cli_permissions.conf manager.d/ text1.wav codecs.conf meetme.conf udptl.conf console.conf mgcp.conf unistim.conf datacard.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 |
#rm /etc/asterisk/d
datacard.conf dbsep.conf dnsmgr.conf dsp.conf dundi.conf |
#rm /etc/asterisk/
adsi.conf enum.conf osp.conf adtranvofr.conf extconfig.conf oss.conf agents.conf extensions.ael phone.conf ais.conf extensions.conf phoneprov.conf alarmreceiver.conf extensions.conf.ORIG queuerules.conf alsa.conf extensions.lua queues.conf amd.conf extensions_minivm.conf res_config_sqlite.conf asterisk.adsi features.conf res_ldap.conf asterisk.conf festival.conf res_odbc.conf cdr_adaptive_odbc.conf followme.conf res_pgsql.conf ... cli_aliases.conf logger.conf smdi.conf cli.conf manager.conf telcordia-1.adsi cli_permissions.conf manager.d/ text1.wav codecs.conf meetme.conf udptl.conf console.conf mgcp.conf unistim.conf datacard.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 |
#rm /etc/asterisk/d
datacard.conf dbsep.conf dnsmgr.conf dsp.conf dundi.conf |
#/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. |
#asterisk -vvvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 11.3.0 currently running on linux3 (pid = 3020) linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -vvvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 11.3.0 currently running on linux3 (pid = 3020) linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -vvvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 11.3.0 currently running on linux3 (pid = 3020) linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> sip reload Reloading SIP linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#asterisk -vvvr
Asterisk 11.3.0, Copyright (C) 1999 - 2012 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 11.3.0 currently running on linux3 (pid = 3020) linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> sip reload Reloading SIP linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> linux3*CLI> quit Asterisk cleanly ending (0). Executing last minute cleanups |
#vim /etc/asterisk/extensions.conf
--- /tmp/l3-saved-2297.29768.17153 2013-04-12 16:45:16.000000000 +0300 +++ /etc/asterisk/extensions.conf 2013-04-12 16:46:20.000000000 +0300 @@ -8,10 +8,8 @@ exten => 8800,1,Goto(menu,s,1) [city] - exten => _13XX,1,System(/usr/local/bin/asterisk-jabber-send user@linux3.unix.nt You have a call from ${CALLERID(num)}) - exten => _13XX,n,Dial(SIP/${EXTEN},10,wWtTm) - exten => _13XX,n,VoiceMail(${EXTEN}@default) - exten => 1305,1,Answer + exten => _13XX,1,VoiceMail(${EXTEN}@default) + exten => 1305,1,iAnswer exten => 1305,n,Queue(queue1) exten => _131X,1,AgentLogin(100${EXTEN:3}) |
Время первой команды журнала | 15:33:05 2013- 4-12 | |||||||||||||||||||||
Время последней команды журнала | 15:46:22 2013- 4-12 | |||||||||||||||||||||
Количество командных строк в журнале | 50 | |||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 0.00 | |||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.22 | |||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 3.76 | |||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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