/l3/users/05-07-2012/NT-BSDadm/fbsd.net.nt/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 :45 :46 :47 :48 :49 :50 :51 :52 :53 :54 :55 :56 :57 :58 :59 :60 :61 :62 :63 :64 :65 :66 :67 :68 :69 :70 :71 |
|
$vim touchlist
![]() |
$vim touchlist
![]() |
$vim touchlist
![]() |
$vim touchlist
![]() |
$vim touchlist
![]() |
$vim touchlist
![]() |
$vim touchlist
![]() |
$vim touchlist
![]() |
$vim touchlist
![]() |
$vim touchlist
![]() |
$vim touchlist
![]() |
$ls
-file1 bjon -hello core.c 1cdesktop fcntl.h A:\WINDOWS\SYSTEM32 file with spaces at the name A:\WINDOWS\SYSTEM322 file with spaces at the name2 Regexp.H group _1_2_3 isdn_ttyfax.c __asterisk modules _hrypun o'Reilly _kik_my o'Reilly2 acpi one space alloca.H passwd bjan s_tol_ bjen term.h |
$touch "Queen \"Live at Wembley '86\""
|
$cd touchlist
![]() l3script: cd: touchlist: Not a directory |
$cd touchlist
![]() l3script: cd: touchlist: Not a directory |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe names bigfile newtest bin ogo.jpg freebsd.jpg pamyatka.pdf granata.jpg press_any_key_to_continue.jpg lpi 1 proj lpi 2 testfile man_smb_conf text matrix.jpg touchlist |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe names bigfile newtest bin ogo.jpg freebsd.jpg pamyatka.pdf granata.jpg press_any_key_to_continue.jpg lpi 1 proj lpi 2 testfile man_smb_conf text matrix.jpg touchlist |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe names bigfile newtest bin ogo.jpg freebsd.jpg pamyatka.pdf granata.jpg press_any_key_to_continue.jpg lpi 1 proj lpi 2 testfile man_smb_conf text matrix.jpg touchlist |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe names bigfile newtest bin ogo.jpg freebsd.jpg pamyatka.pdf granata.jpg press_any_key_to_continue.jpg lpi 1 proj lpi 2 testfile man_smb_conf text matrix.jpg touchlist |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe names bigfile newtest bin ogo.jpg freebsd.jpg pamyatka.pdf granata.jpg press_any_key_to_continue.jpg lpi 1 proj lpi 2 testfile man_smb_conf text matrix.jpg touchlist |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe names bigfile newtest bin ogo.jpg freebsd.jpg pamyatka.pdf granata.jpg press_any_key_to_continue.jpg lpi 1 proj lpi 2 testfile man_smb_conf text matrix.jpg touchlist |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe names bigfile newtest bin ogo.jpg freebsd.jpg pamyatka.pdf granata.jpg press_any_key_to_continue.jpg lpi 1 proj lpi 2 testfile man_smb_conf text matrix.jpg touchlist |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe names bigfile newtest bin ogo.jpg freebsd.jpg pamyatka.pdf granata.jpg press_any_key_to_continue.jpg lpi 1 proj lpi 2 testfile man_smb_conf text matrix.jpg touchlist |
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe names bigfile newtest bin ogo.jpg freebsd.jpg pamyatka.pdf granata.jpg press_any_key_to_continue.jpg lpi 1 proj lpi 2 testfile man_smb_conf text matrix.jpg touchlist |
$history cd
![]() l3script: history: cd: numeric argument required |
$history cd
![]() l3script: history: cd: numeric argument required |
$history cd
![]() l3script: history: cd: numeric argument required |
$history cd
![]() l3script: history: cd: numeric argument required |
$history cd
![]() l3script: history: cd: numeric argument required |
$history cd
![]() l3script: history: cd: numeric argument required |
$history cd
![]() l3script: history: cd: numeric argument required |
$ls
-file1 bjon -hello core.c 1cdesktop fcntl.h A:\WINDOWS\SYSTEM32 file with spaces at the name A:\WINDOWS\SYSTEM322 file with spaces at the name2 Queen "Live at Wembley '86" group Regexp.H isdn_ttyfax.c _1_2_3 modules __asterisk o'Reilly _hrypun o'Reilly2 _kik_my one space acpi passwd alloca.H s_tol_ bjan term.h bjen |
$echo *
-file1 -hello 1cdesktop A:\WINDOWS\SYSTEM32 A:\WINDOWS\SYSTEM322 Queen "Live at Wembley '86" Regexp.H _1_2_3 __asterisk _hrypun _kik_my acpi alloca.H bjan bjen bjon core.c fcntl.h file with spaces at the name file with spaces at the name2 group isdn_ttyfax.c modules o'Reilly o'Reilly2 one space passwd s_tol_ term.h |
$touch 'cat ~/touchlist'
![]() touch: cat ~/touchlist: No such file or directory |
$echo "today `date +%Y`ear"
today 2012 year |
$history !d
![]() history cd touchlist l3script: history: cd: numeric argument required |
$history !d
![]() history cd touchlist l3script: history: cd: numeric argument required |
$history !d
![]() history cd touchlist l3script: history: cd: numeric argument required |
$history !d
![]() history cd touchlist l3script: history: cd: numeric argument required |
$history !d
![]() history cd touchlist l3script: history: cd: numeric argument required |
$history !d
![]() history cd touchlist l3script: history: cd: numeric argument required |
$history !d
![]() history cd touchlist l3script: history: cd: numeric argument required |
$history !d
![]() history cd touchlist l3script: history: cd: numeric argument required |
$history !d
![]() history cd touchlist l3script: history: cd: numeric argument required |
$history !d
![]() history cd touchlist l3script: history: cd: numeric argument required |
$history !d
![]() history cd touchlist l3script: history: cd: numeric argument required |
$history !?cd?
![]() history history cd touchlist l3script: history: history: numeric argument required |
$history !?cd?
![]() history history cd touchlist l3script: history: history: numeric argument required |
$history !?cd?
![]() history history cd touchlist l3script: history: history: numeric argument required |
$history !?cd?
![]() history history cd touchlist l3script: history: history: numeric argument required |
$history !?cd?
![]() history history cd touchlist l3script: history: history: numeric argument required |
$history !?cd?
![]() history history cd touchlist l3script: history: history: numeric argument required |
$history !?cd?
![]() history history cd touchlist l3script: history: history: numeric argument required |
$history !?cd?
![]() history history cd touchlist l3script: history: history: numeric argument required |
$history !?cd?
![]() history history cd touchlist l3script: history: history: numeric argument required |
$cd names
![]() |
$cd names
![]() |
$cd names
![]() |
$cd names
![]() |
$cd names
![]() |
$cd names
![]() |
$cd names
![]() |
$cd names
![]() |
$cd names
![]() |
$cd names
![]() |
$cd names
|
$echo "And tomorrow will be $(expr `date +%Y+1` year"
And tomorrow will be 2012+1 year |
$echo "And tomorrow will be $(expr `date +%Y 1`) year"
date: illegal time format usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format] expr: syntax error And tomorrow will be year |
$echo "And tomorrow will be $(expr 'date +%Y +1'year"
And tomorrow will be date +%Y +1 year |
$ls
![]() -file1 bjon -hello core.c 1cdesktop directory1 A:\windows\system32 directory2 Regexp.H directory3 _1_2_3 fcntl.h __asterisk file with spaces at name _hrypun file1 _kik_my file2 a?l*file file3 aba group abb isdn_ttyfax.c abc killall abd modules acpi o'Reilly alloca.H one space another very long name passwd bjan s_tol_ bjen term.h |
$ls
![]() -file1 bjon -hello core.c 1cdesktop directory1 A:\windows\system32 directory2 Regexp.H directory3 _1_2_3 fcntl.h __asterisk file with spaces at name _hrypun file1 _kik_my file2 a?l*file file3 aba group abb isdn_ttyfax.c abc killall abd modules acpi o'Reilly alloca.H one space another very long name passwd bjan s_tol_ bjen term.h |
$ls
![]() -file1 bjon -hello core.c 1cdesktop directory1 A:\windows\system32 directory2 Regexp.H directory3 _1_2_3 fcntl.h __asterisk file with spaces at name _hrypun file1 _kik_my file2 a?l*file file3 aba group abb isdn_ttyfax.c abc killall abd modules acpi o'Reilly alloca.H one space another very long name passwd bjan s_tol_ bjen term.h |
$ls
![]() -file1 bjon -hello core.c 1cdesktop directory1 A:\windows\system32 directory2 Regexp.H directory3 _1_2_3 fcntl.h __asterisk file with spaces at name _hrypun file1 _kik_my file2 a?l*file file3 aba group abb isdn_ttyfax.c abc killall abd modules acpi o'Reilly alloca.H one space another very long name passwd bjan s_tol_ bjen term.h |
$ls
![]() -file1 bjon -hello core.c 1cdesktop directory1 A:\windows\system32 directory2 Regexp.H directory3 _1_2_3 fcntl.h __asterisk file with spaces at name _hrypun file1 _kik_my file2 a?l*file file3 aba group abb isdn_ttyfax.c abc killall abd modules acpi o'Reilly alloca.H one space another very long name passwd bjan s_tol_ bjen term.h |
$ls
![]() -file1 bjon -hello core.c 1cdesktop directory1 A:\windows\system32 directory2 Regexp.H directory3 _1_2_3 fcntl.h __asterisk file with spaces at name _hrypun file1 _kik_my file2 a?l*file file3 aba group abb isdn_ttyfax.c abc killall abd modules acpi o'Reilly alloca.H one space another very long name passwd bjan s_tol_ bjen term.h |
$ls
![]() -file1 bjon -hello core.c 1cdesktop directory1 A:\windows\system32 directory2 Regexp.H directory3 _1_2_3 fcntl.h __asterisk file with spaces at name _hrypun file1 _kik_my file2 a?l*file file3 aba group abb isdn_ttyfax.c abc killall abd modules acpi o'Reilly alloca.H one space another very long name passwd bjan s_tol_ bjen term.h |
$ls
![]() -file1 bjon -hello core.c 1cdesktop directory1 A:\windows\system32 directory2 Regexp.H directory3 _1_2_3 fcntl.h __asterisk file with spaces at name _hrypun file1 _kik_my file2 a?l*file file3 aba group abb isdn_ttyfax.c abc killall abd modules acpi o'Reilly alloca.H one space another very long name passwd bjan s_tol_ bjen term.h |
$ls
![]() -file1 bjon -hello core.c 1cdesktop directory1 A:\windows\system32 directory2 Regexp.H directory3 _1_2_3 fcntl.h __asterisk file with spaces at name _hrypun file1 _kik_my file2 a?l*file file3 aba group abb isdn_ttyfax.c abc killall abd modules acpi o'Reilly alloca.H one space another very long name passwd bjan s_tol_ bjen term.h |
$ls
![]() -file1 bjon -hello core.c 1cdesktop directory1 A:\windows\system32 directory2 Regexp.H directory3 _1_2_3 fcntl.h __asterisk file with spaces at name _hrypun file1 _kik_my file2 a?l*file file3 aba group abb isdn_ttyfax.c abc killall abd modules acpi o'Reilly alloca.H one space another very long name passwd bjan s_tol_ bjen term.h |
$ls
-file1 bjon -hello core.c 1cdesktop directory1 A:\windows\system32 directory2 Regexp.H directory3 _1_2_3 fcntl.h __asterisk file with spaces at name _hrypun file1 _kik_my file2 a?l*file file3 aba group abb isdn_ttyfax.c abc killall abd modules acpi o'Reilly alloca.H one space another very long name passwd bjan s_tol_ bjen term.h |
$cd
![]() |
$cd
![]() |
$cd
![]() |
$cd
![]() |
$cd
![]() |
$cd
![]() |
$cd
![]() |
$cd
![]() |
$cd
![]() |
$cd
![]() |
$cd
|
$echo "And tomorrow will be $(expr 'date +%Y + ') year"
And tomorrow will be date +%Y + 1 year |
$ls
-file1 core.c -hello directory1 1cdesktop directory2 A:\WINDOWS\SYSTEM32 directory3 A:\WINDOWS\SYSTEM322 fcntl.h Queen "Live at Wembley '86" file with spaces at the name Regexp.H file with spaces at the name2 _1_2_3 file1 __asterisk file2 _hrypun file3 _kik_my group aba isdn_ttyfax.c abb killall abc modules abd o'Reilly acpi o'Reilly2 alloca.H one space bjan passwd bjen s_tol_ bjon term.h |
$cd
|
Время первой команды журнала | 18:34:18 2012-11-27 | |||||||||||||||||||||
Время последней команды журнала | 18:39:29 2012-11-27 | |||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 42.57 | |||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.09 | |||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 19.49 | |||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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