/l3/users/als/nt-scale/linux2.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 |
|
#mkdir --help
![]() Usage: mkdir [OPTION] DIRECTORY... Create the DIRECTORY(ies), if they do not already exist. Mandatory arguments to long options are mandatory for short options too. -m, --mode=MODE set file mode (as in chmod), not a=rwx - umask -p, --parents no error if existing, make parent directories as needed -v, --verbose print a message for each created directory -Z, --context=CTX set the SELinux security context of each created directory to CTX --help display this help and exit --version output version information and exit Report bugs to <bug-coreutils@gnu.org>. |
#mkdir --help
Usage: mkdir [OPTION] DIRECTORY... Create the DIRECTORY(ies), if they do not already exist. Mandatory arguments to long options are mandatory for short options too. -m, --mode=MODE set file mode (as in chmod), not a=rwx - umask -p, --parents no error if existing, make parent directories as needed -v, --verbose print a message for each created directory -Z, --context=CTX set the SELinux security context of each created directory to CTX --help display this help and exit --version output version information and exit Report bugs to <bug-coreutils@gnu.org>. |
#mkdir a/{b,c}
![]() mkdir: cannot create directory `a/b': No such file or directory mkdir: cannot create directory `a/c': No such file or directory |
#mkdir a/{b,c}
![]() mkdir: cannot create directory `a/b': No such file or directory mkdir: cannot create directory `a/c': No such file or directory |
#ls -la
![]() total 336 drwxr-xr-x 21 user user 4096 2011-02-21 15:37 . drwxr-xr-x 3 root root 4096 2011-02-21 14:10 .. drwxr-xr-x 3 root root 4096 2011-02-21 15:37 a drwxr-xr-x 2 root root 4096 2011-02-21 15:36 ab drwxr-xr-x 2 root root 4096 2011-02-21 15:36 ac -rw------- 1 user user 39 2011-02-21 14:55 .bash_history -rw-r--r-- 1 user user 220 2011-02-21 14:10 .bash_logout -rw-r--r-- 1 user root 10 2011-02-21 14:27 .bash_profile -rw-r--r-- 1 user user 3181 2011-02-21 14:27 .bashrc ... -rw-r--r-- 1 user root 53 2011-02-21 14:27 .l3rc drwxr-xr-x 2 user root 4096 2011-02-21 14:27 .lilalo drwx------ 3 user user 4096 2011-02-21 14:31 .metacity drwx------ 2 user user 4096 2011-02-21 14:31 .mozilla drwxr-xr-x 3 user user 4096 2011-02-21 14:31 .nautilus -rw-r--r-- 1 user user 675 2011-02-21 14:10 .profile drwx------ 2 user user 4096 2011-02-21 14:50 .ssh drwx------ 2 user user 4096 2011-02-21 14:31 .update-notifier -rw------- 1 user user 108 2011-02-21 14:30 .Xauthority -rw------- 1 user user 217480 2011-02-21 15:37 .xsession-errors |
#ls -la
total 336 drwxr-xr-x 21 user user 4096 2011-02-21 15:37 . drwxr-xr-x 3 root root 4096 2011-02-21 14:10 .. drwxr-xr-x 3 root root 4096 2011-02-21 15:37 a drwxr-xr-x 2 root root 4096 2011-02-21 15:36 ab drwxr-xr-x 2 root root 4096 2011-02-21 15:36 ac -rw------- 1 user user 39 2011-02-21 14:55 .bash_history -rw-r--r-- 1 user user 220 2011-02-21 14:10 .bash_logout -rw-r--r-- 1 user root 10 2011-02-21 14:27 .bash_profile -rw-r--r-- 1 user user 3181 2011-02-21 14:27 .bashrc ... -rw-r--r-- 1 user root 53 2011-02-21 14:27 .l3rc drwxr-xr-x 2 user root 4096 2011-02-21 14:27 .lilalo drwx------ 3 user user 4096 2011-02-21 14:31 .metacity drwx------ 2 user user 4096 2011-02-21 14:31 .mozilla drwxr-xr-x 3 user user 4096 2011-02-21 14:31 .nautilus -rw-r--r-- 1 user user 675 2011-02-21 14:10 .profile drwx------ 2 user user 4096 2011-02-21 14:50 .ssh drwx------ 2 user user 4096 2011-02-21 14:31 .update-notifier -rw------- 1 user user 108 2011-02-21 14:30 .Xauthority -rw------- 1 user user 217480 2011-02-21 15:37 .xsession-errors |
#ls
![]() b |
#cd ..
![]() |
#help
![]() GNU bash, version 3.2.39(1)-release (i486-pc-linux-gnu) These shell commands are defined internally. Type `help' to see this list. Type `help name' to find out more about the function `name'. Use `info bash' to find out more about the shell in general. Use `man -k' or `info' to find out more about commands not in this list. A star (*) next to a name means that the command is disabled. JOB_SPEC [&] (( expression )) . filename [arguments] : [ arg... ] [[ expression ]] alias [-p] [name[=value] ... ] bg [job_spec ...] ... shift [n] shopt [-pqsu] [-o long-option] opt source filename [arguments] suspend [-f] test [expr] time [-p] PIPELINE times trap [-lp] [arg signal_spec ...] true type [-afptP] name [name ...] typeset [-afFirtx] [-p] name[=valu ulimit [-SHacdfilmnpqstuvx] [limit umask [-p] [-S] [mode] unalias [-a] name [name ...] unset [-f] [-v] [name ...] until COMMANDS; do COMMANDS; done variables - Some variable names an wait [n] while COMMANDS; do COMMANDS; done { COMMANDS ; } |
#help
GNU bash, version 3.2.39(1)-release (i486-pc-linux-gnu) These shell commands are defined internally. Type `help' to see this list. Type `help name' to find out more about the function `name'. Use `info bash' to find out more about the shell in general. Use `man -k' or `info' to find out more about commands not in this list. A star (*) next to a name means that the command is disabled. JOB_SPEC [&] (( expression )) . filename [arguments] : [ arg... ] [[ expression ]] alias [-p] [name[=value] ... ] bg [job_spec ...] ... shift [n] shopt [-pqsu] [-o long-option] opt source filename [arguments] suspend [-f] test [expr] time [-p] PIPELINE times trap [-lp] [arg signal_spec ...] true type [-afptP] name [name ...] typeset [-afFirtx] [-p] name[=valu ulimit [-SHacdfilmnpqstuvx] [limit umask [-p] [-S] [mode] unalias [-a] name [name ...] unset [-f] [-v] [name ...] until COMMANDS; do COMMANDS; done variables - Some variable names an wait [n] while COMMANDS; do COMMANDS; done { COMMANDS ; } |
#mkdir --help
![]() Usage: mkdir [OPTION] DIRECTORY... Create the DIRECTORY(ies), if they do not already exist. Mandatory arguments to long options are mandatory for short options too. -m, --mode=MODE set file mode (as in chmod), not a=rwx - umask -p, --parents no error if existing, make parent directories as needed -v, --verbose print a message for each created directory -Z, --context=CTX set the SELinux security context of each created directory to CTX --help display this help and exit --version output version information and exit Report bugs to <bug-coreutils@gnu.org>. |
#mkdir --help
Usage: mkdir [OPTION] DIRECTORY... Create the DIRECTORY(ies), if they do not already exist. Mandatory arguments to long options are mandatory for short options too. -m, --mode=MODE set file mode (as in chmod), not a=rwx - umask -p, --parents no error if existing, make parent directories as needed -v, --verbose print a message for each created directory -Z, --context=CTX set the SELinux security context of each created directory to CTX --help display this help and exit --version output version information and exit Report bugs to <bug-coreutils@gnu.org>. |
#rmdir --help
![]() Usage: rmdir [OPTION]... DIRECTORY... Remove the DIRECTORY(ies), if they are empty. --ignore-fail-on-non-empty ignore each failure that is solely because a directory is non-empty -p, --parents Remove DIRECTORY and its ancestors. E.g., `rmdir -p a/b/c' is similar to `rmdir a/b/c a/b a'. -v, --verbose output a diagnostic for every directory processed --help display this help and exit --version output version information and exit Report bugs to <bug-coreutils@gnu.org>. |
#rmdir --help
Usage: rmdir [OPTION]... DIRECTORY... Remove the DIRECTORY(ies), if they are empty. --ignore-fail-on-non-empty ignore each failure that is solely because a directory is non-empty -p, --parents Remove DIRECTORY and its ancestors. E.g., `rmdir -p a/b/c' is similar to `rmdir a/b/c a/b a'. -v, --verbose output a diagnostic for every directory processed --help display this help and exit --version output version information and exit Report bugs to <bug-coreutils@gnu.org>. |
#rmdir -p a
![]() rmdir: failed to remove `a': Directory not empty |
#rmdir -p a/{b,c/{1,2}}
![]() rmdir: failed to remove directory `a': Directory not empty rmdir: failed to remove directory `a/c': Directory not empty |
#rmdir -p a/{b,c/{1,2}}
![]() rmdir: failed to remove directory `a': Directory not empty rmdir: failed to remove directory `a/c': Directory not empty |
#ls
![]() Desktop |
#ls
![]() Desktop |
#ls
![]() user |
#cd user
![]() |
#mkdir --help
![]() Usage: mkdir [OPTION] DIRECTORY... Create the DIRECTORY(ies), if they do not already exist. Mandatory arguments to long options are mandatory for short options too. -m, --mode=MODE set file mode (as in chmod), not a=rwx - umask -p, --parents no error if existing, make parent directories as needed -v, --verbose print a message for each created directory -Z, --context=CTX set the SELinux security context of each created directory to CTX --help display this help and exit --version output version information and exit Report bugs to <bug-coreutils@gnu.org>. |
#mkdir --help
Usage: mkdir [OPTION] DIRECTORY... Create the DIRECTORY(ies), if they do not already exist. Mandatory arguments to long options are mandatory for short options too. -m, --mode=MODE set file mode (as in chmod), not a=rwx - umask -p, --parents no error if existing, make parent directories as needed -v, --verbose print a message for each created directory -Z, --context=CTX set the SELinux security context of each created directory to CTX --help display this help and exit --version output version information and exit Report bugs to <bug-coreutils@gnu.org>. |
#dmesg
![]() [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.26-2-686 (Debian 2.6.26-26lenny2) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Thu Jan 27 00:28:05 UTC 2011 [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) [ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) [ 0.000000] BIOS-e820: 00000000000e4000 - 0000000000100000 (reserved) [ 0.000000] BIOS-e820: 0000000000100000 - 00000000bf790000 (usable) [ 0.000000] BIOS-e820: 00000000bf790000 - 00000000bf79e000 (ACPI data) [ 0.000000] BIOS-e820: 00000000bf79e000 - 00000000bf7e0000 (ACPI NVS) ... [ 7833.486031] eth1: no IPv6 routers present [ 7838.287428] lp0: using parport0 (interrupt-driven). [ 7838.307710] ppdev: user-space parallel port driver [ 7900.393204] eth1: no IPv6 routers present [ 8393.808490] [drm] Initialized drm 1.1.0 20060810 [ 8393.812493] ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 16 [ 8393.812493] PCI: Setting latency timer of device 0000:00:02.0 to 64 [ 8393.812493] [drm] Initialized i915 1.6.0 20060119 on minor 0 [ 8393.943959] mtrr: type mismatch for c0000000,10000000 old: write-back new: write-combining [ 8415.401837] mtrr: type mismatch for c0000000,10000000 old: write-back new: write-combining |
#dmesg
[ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.26-2-686 (Debian 2.6.26-26lenny2) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Thu Jan 27 00:28:05 UTC 2011 [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) [ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) [ 0.000000] BIOS-e820: 00000000000e4000 - 0000000000100000 (reserved) [ 0.000000] BIOS-e820: 0000000000100000 - 00000000bf790000 (usable) [ 0.000000] BIOS-e820: 00000000bf790000 - 00000000bf79e000 (ACPI data) [ 0.000000] BIOS-e820: 00000000bf79e000 - 00000000bf7e0000 (ACPI NVS) ... [ 7833.486031] eth1: no IPv6 routers present [ 7838.287428] lp0: using parport0 (interrupt-driven). [ 7838.307710] ppdev: user-space parallel port driver [ 7900.393204] eth1: no IPv6 routers present [ 8393.808490] [drm] Initialized drm 1.1.0 20060810 [ 8393.812493] ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 16 [ 8393.812493] PCI: Setting latency timer of device 0000:00:02.0 to 64 [ 8393.812493] [drm] Initialized i915 1.6.0 20060119 on minor 0 [ 8393.943959] mtrr: type mismatch for c0000000,10000000 old: write-back new: write-combining [ 8415.401837] mtrr: type mismatch for c0000000,10000000 old: write-back new: write-combining |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface localnet * 255.255.255.0 U 0 0 0 eth0 default 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 |
#apt-get install strace
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: strace 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 160kB of archives. After this operation, 287kB of additional disk space will be used. Get:1 http://10.0.35.1 lenny/main strace 4.5.17+cvs080723-2 [160kB] Fetched 160kB in 0s (993kB/s) Selecting previously deselected package strace. (Reading database ... 93735 files and directories currently installed.) Unpacking strace (from .../strace_4.5.17+cvs080723-2_i386.deb) ... Processing triggers for man-db ... Setting up strace (4.5.17+cvs080723-2) ... |
#strace route
execve("/sbin/route", ["route"], [/* 20 vars */]) = 0 brk(0) = 0x9fe1000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7776000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=52139, ...}) = 0 mmap2(NULL, 52139, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7769000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) ... write(4, "RESOLVE-ADDRESS 192.168.15.253\n"..., 31) = 31 read(4, "-15 Timeout reached\n"..., 4096) = 20 close(4) = 0 munmap(0xb740c000, 4096) = 0 write(1, "default 192.168.15.253 0"..., 77default 192.168.15.253 0.0.0.0 UG 0 0 0 eth0 ) = 77 read(3, ""..., 1024) = 0 close(3) = 0 munmap(0xb7774000, 4096) = 0 exit_group(0) = ? |
Время первой команды журнала | 14:32:45 2011- 2-21 | ||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:51:41 2011- 2-21 | ||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 19.80 | ||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.75 | ||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.25 | ||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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