/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 |
|
$/cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$/cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$/cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$/cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$/cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$/cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$/cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$/cat /etc/passwd | sort | tee sorted_passwd | less
|
$cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$cat /etc/passwd | sort | tee sorted_passwd | less
![]() |
$cat /etc/passwd | sort | tee sorted_passwd | less
|
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$vim sorted_passwd
![]() |
$vim sorted_passwd
![]() |
$vim sorted_passwd
![]() |
$vim sorted_passwd
![]() |
$vim sorted_passwd
![]() |
$vim sorted_passwd
![]() |
$vim sorted_passwd
![]() |
$vim sorted_passwd
![]() |
$vim sorted_passwd
![]() |
$vim sorted_passwd
![]() |
$vim sorted_passwd
![]() |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe killall aba lpi 1 abb lpi 2 abc man_smb_conf abd matrix.jpg bigfile names bin newfile directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 text file3 touchlist freebsd.jpg unsorted granata.jpg |
$pwd
/home/user |
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe killall aba lpi 1 abb lpi 2 abc man_smb_conf abd matrix.jpg bigfile names bin newfile directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 text file3 touchlist freebsd.jpg unsorted granata.jpg |
$pwd
![]() /home/user |
$pwd
![]() /home/user |
$pwd
![]() /home/user |
$pwd
![]() /home/user |
$pwd
![]() /home/user |
$pwd
![]() /home/user |
$pwd
![]() /home/user |
$pwd
![]() /home/user |
$pwd
![]() /home/user |
$pwd
/home/user |
$ls
A:\Windows\System32 man_smb_conf Light_Alloy_4.4.784_RC2_by_FAFNIR.exe matrix.jpg Queen "Live at Wembley '86" names another very long file name newfile bad-fff o'Reilly bigfile ogo.jpg bin one space cat touchlist pamyatka.pdf errlog press_any_key_to_continue.jpg file proj file with spacese at the name sorted freebsd.jpg sorted_passwd granata.jpg text lpi 1 touchlist lpi 2 unsorted |
$grep abcd ~/text/text_to_grep
![]() grep: /home/user/text/text_to_grep: No such file or directory |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
![]() Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe lpi 1 aba lpi 2 abb man_smb_conf abc matrix.jpg abd names bigfile newfile bin newtest directory1 ogo.jpg directory2 pamyatka.pdf directory3 press_any_key_to_continue.jpg errlog proj file sorted file1 sorted_passwd file2 testfile file3 text freebsd.jpg touchlist granata.jpg unsorted killall |
$cd ..
![]() |
$cd ..
|
Время первой команды журнала | 19:33:03 2012-11-27 | ||||||||||||||||||||||||||||||
Время последней команды журнала | 12:06:05 2012-11-28 | ||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 28.71 | ||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.22 | ||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 7.63 | ||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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