/l3/users/GL/adm/debian0.clinika.local/root :1 :2 :3 :4 :5 :6 |
|
#./for3
/bin/bash size: 793K bash (1) - GNU Bourne-Again SHell /bin/dash size: 83K dash (1) - command interpreter (shell) File /bin/sergey not found ls: cannot access /bin/sergey: No such file or directory sergey: nothing appropriate. /sbin/badblocks size: 19K badblocks (8) - search a device for bad blocks /sbin/bootlogd size: 12K bootlogd (8) - record boot messages |
#vim ./for3
--- /tmp/l3-saved-6087.29569.7256 2012-07-05 17:19:11.000000000 +0000 +++ ./for3 2012-07-05 17:19:29.000000000 +0000 @@ -14,7 +14,7 @@ if [ ! -e "$i" ] then echo "File $i not found" -#continue +continue fi ls -lh $i | awk '{print $9" size: "$5}' whatis `basename $i` |
#cat /for3
![]() cat: /for3: No such file or directory |
#cat for3
#!/bin/bash #set -x FILES="/bin/bash /bin/dash /bin/sergey /sbin/badblocks /sbin/bootlogd" for i in $FILES do if [ ! -e "$i" ] then echo "File $i not found" continue fi ls -lh $i | awk '{print $9" size: "$5}' whatis `basename $i` done |
#vim select1
![]() --- /dev/null 2012-07-03 14:13:21.733476138 +0000 +++ select1 2012-07-05 17:20:00.000000000 +0000 @@ -0,0 +1,2 @@ +#!/bin/bash + |
#vim select1
--- /tmp/l3-saved-6087.27889.32091 2012-07-05 17:20:01.000000000 +0000 +++ select1 2012-07-05 17:21:29.000000000 +0000 @@ -1,2 +1,7 @@ #!/bin/bash +PS3="Please, choise your favorite Operating System: " +select os in "Mac OSx" Windows Linux Other +do +echo "You Favorite OS is $os" +done |
#chmod +x ./select1
|
#./select1
![]() 1) Mac OSx 2) Windows 3) Linux 4) Other Please, choise your favorite Operating System: 4 You Favorite OS is Other Please, choise your favorite Operating System: 4 You Favorite OS is Other Please, choise your favorite Operating System: 31 You Favorite OS is Please, choise your favorite Operating System: 3 You Favorite OS is Linux Please, choise your favorite Operating System: 4 You Favorite OS is Other Please, choise your favorite Operating System: 2 You Favorite OS is Windows Please, choise your favorite Operating System: 1 You Favorite OS is Mac OSx Please, choise your favorite Operating System: ^C |
#vim select1
--- /tmp/l3-saved-6087.29366.3027 2012-07-05 17:22:00.000000000 +0000 +++ select1 2012-07-05 17:22:09.000000000 +0000 @@ -3,5 +3,6 @@ select os in "Mac OSx" Windows Linux Other do echo "You Favorite OS is $os" +break done |
#./select1
1) Mac OSx 2) Windows 3) Linux 4) Other Please, choise your favorite Operating System: 4 You Favorite OS is Other |
#vim select1
|
#l3
![]() l3 l3_fix_prompt l3mass_upload l3shot l3-agent l3_save_last_line l3pwd l3upload l3_close_session l3cd l3script |
#l3pwd
/users/GL/adm/debian0.clinika.local/root |
#links
![]() |
#lynx
![]() |
#^C
![]() |
#cat ./select1
#!/bin/bash PS3="Please, choise your favorite Operating System: " select os in "Mac OSx" Windows Linux Other do echo "You Favorite OS is $os" break done |
#w
17:27:20 up 2 days, 3:14, 1 user, load average: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/5 195.238.93.36:S. 16:11 0.00s 0.36s 0.24s script -f -c l3 |
#A=0; while [ $A -lt 10 ]; do A=$((A+1)); echo $A;done
1 2 3 4 5 6 7 8 9 10 |
#vim while1
![]() --- /dev/null 2012-07-03 14:13:21.733476138 +0000 +++ while1 2012-07-05 17:29:21.000000000 +0000 @@ -0,0 +1,2 @@ +#!/bin/bash + |
#vim while1
--- /tmp/l3-saved-6087.5279.1211 2012-07-05 17:29:21.000000000 +0000 +++ while1 2012-07-05 17:32:23.000000000 +0000 @@ -1,2 +1,8 @@ #!/bin/bash - +while [ "$i" != "end" ] +do +echo "Please, give the value for variable #1 (end for exiting)" +read i +echo "variable #1 = $i" +done +exit 0 |
#chmod +x while1
|
#./while1
Please, give the value for variable #1 (end for exiting) d variable #1 = d Please, give the value for variable #1 (end for exiting) ss variable #1 = ss Please, give the value for variable #1 (end for exiting) end variable #1 = end |
#cat while1
#!/bin/bash while [ "$i" != "end" ] do echo "Please, give the value for variable #1 (end for exiting)" read i echo "variable #1 = $i" done exit 0 |
#cat /etc/passwd while read lines
![]() root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/bin/sh man:x:6:12:man:/var/cache/man:/bin/sh lp:x:7:7:lp:/var/spool/lpd:/bin/sh mail:x:8:8:mail:/var/mail:/bin/sh news:x:9:9:news:/var/spool/news:/bin/sh ... user14:x:1014:1014::/home/user14:/bin/bash user15:x:1015:1015::/home/user15:/bin/bash user16:x:1016:1016::/home/user16:/bin/bash user17:x:1017:1017::/home/user17:/bin/bash user18:x:1018:1018::/home/user18:/bin/bash user19:x:1019:1019::/home/user19:/bin/bash user20:x:1020:1020::/home/user20:/bin/bash cat: while: No such file or directory cat: read: No such file or directory cat: lines: No such file or directory |
#cat /etc/passwd | while read lines; do sed 's/:.*$//g'
> ^C |
#cat /etc/passwd | while read lines; do id `sed 's/:.*$//g'`
id: extra operand `bin' Try `id --help' for more information. |
#cat /etc/passwd | while read lines; do id -u
![]() id: extra operand `bin' Try `id --help' for more information. |
#man id
|
#cat /etc/passwd | while read lines; do id
![]() id: extra operand `bin' Try `id --help' for more information. |
#cat /etc/passwd | while read lines; do USER=$(sed 's/:.*$//
![]() '); id $USER id: extra operand `bin' Try `id --help' for more information. |
#cat /etc/passwd | while read lines; do USER=$(sed 's/:.*$//
'); id -- $ id: extra operand `bin' Try `id --help' for more information. |
#cat /etc/passwd | while read lines; do echo $linsed 's/:.*$
![]() |
#cat /etc/passwd | while read lines; do echo $lines | sed 's
:.*$//g' root uid=0(root) gid=0(root) groups=0(root) daemon uid=0(root) gid=0(root) groups=0(root) bin uid=0(root) gid=0(root) groups=0(root) sys uid=0(root) gid=0(root) groups=0(root) sync ... user16 uid=0(root) gid=0(root) groups=0(root) user17 uid=0(root) gid=0(root) groups=0(root) user18 uid=0(root) gid=0(root) groups=0(root) user19 uid=0(root) gid=0(root) groups=0(root) user20 uid=0(root) gid=0(root) groups=0(root) |
#cat /etc/passwd | while read lines; do id `
uid=0(root) gid=0(root) groups=0(root) uid=1(daemon) gid=1(daemon) groups=1(daemon) uid=2(bin) gid=2(bin) groups=2(bin) uid=3(sys) gid=3(sys) groups=3(sys) uid=4(sync) gid=65534(nogroup) groups=65534(nogroup) uid=5(games) gid=60(games) groups=60(games) uid=6(man) gid=12(man) groups=12(man) uid=7(lp) gid=7(lp) groups=7(lp) uid=8(mail) gid=8(mail) groups=8(mail) uid=9(news) gid=9(news) groups=9(news) ... uid=1011(user11) gid=1011(user11) groups=1011(user11) uid=1012(user12) gid=1012(user12) groups=1012(user12) uid=1013(user13) gid=1013(user13) groups=1013(user13) uid=1014(user14) gid=1014(user14) groups=1014(user14) uid=1015(user15) gid=1015(user15) groups=1015(user15) uid=1016(user16) gid=1016(user16) groups=1016(user16) uid=1017(user17) gid=1017(user17) groups=1017(user17) uid=1018(user18) gid=1018(user18) groups=1018(user18) uid=1019(user19) gid=1019(user19) groups=1019(user19) uid=1020(user20) gid=1020(user20) groups=1020(user20) |
#id bin
![]() |
#cat /etc/passwd | while read lines; do sed 's/:.*$//g'
![]() |
#cat while1
#!/bin/bash while [ "$i" != "end" ] do echo "Please, give the value for variable #1 (end for exiting)" read i echo "variable #1 = $i" done exit 0 |
#ls -l
total 32 -rw-r--r-- 1 root root 0 Jul 3 16:19 16:19:21 -rw-r--r-- 1 root root 0 Jul 3 16:19 2012 -rw-r--r-- 1 root root 0 Jul 3 16:19 3 -rw-r--r-- 1 root root 0 Jul 3 16:19 Jul -rw-r--r-- 1 root root 0 Jul 3 16:19 Tue -rw-r--r-- 1 root root 0 Jul 3 16:19 Tue Jul 3 16:19:35 UTC 2012 -rw-r--r-- 1 root root 0 Jul 3 16:19 UTC -rw-r--r-- 1 root root 0 Jul 3 16:19 `date` -rwxr-xr-x 1 root root 45 Jul 3 17:48 bash_parameters -rw-r--r-- 1 root root 0 Jul 3 16:19 date -rw-r--r-- 2 root root 0 Jul 5 16:30 file -rw-r--r-- 1 root root 27 Jul 5 16:30 file1 -rw-r--r-- 1 root root 31 Jul 3 16:25 file2 -rwxr-xr-x 1 root root 71 Jul 5 17:02 for1 -rwxr-xr-x 1 root root 112 Jul 5 17:16 for2 -rwxr-xr-x 1 root root 242 Jul 5 17:19 for3 -rw-r--r-- 2 root root 0 Jul 5 16:30 hard_file -rwxr-xr-x 1 root root 156 Jul 5 17:22 select1 -rwxr-xr-x 1 root root 148 Jul 5 17:32 while1 |
#vim ./case1
![]() --- /dev/null 2012-07-03 14:13:21.733476138 +0000 +++ ./case1 2012-07-05 17:38:18.000000000 +0000 @@ -0,0 +1,2 @@ +#!/bin/bash + |
#vim ./case1
--- /tmp/l3-saved-6087.644.20404 2012-07-05 17:38:20.000000000 +0000 +++ ./case1 2012-07-05 17:41:54.000000000 +0000 @@ -1,2 +1,11 @@ #!/bin/bash - +while [ "$Keypress" != "X" ] +do +echo "Press any key and then enter" +read Keypress +case "$Keypress" in +[a-z] ) echo "This is a letter" ;; +[0-9] ) echo "This is a digit" ;; +* ) echo "This is a dokuchaevska street";; +esac +done |
#chmod +x ./case1
|
#./case1
Press any key and then enter f This is a letter Press any key and then enter 4 This is a digit Press any key and then enter $ This is a dokuchaevska street Press any key and then enter X This is a dokuchaevska street |
#vim ./case1
--- /tmp/l3-saved-6087.23401.23284 2012-07-05 17:42:16.000000000 +0000 +++ ./case1 2012-07-05 17:42:29.000000000 +0000 @@ -5,6 +5,7 @@ read Keypress case "$Keypress" in [a-z] ) echo "This is a letter" ;; +[A-Z] ) echo "This is a letter" ;; [0-9] ) echo "This is a digit" ;; * ) echo "This is a dokuchaevska street";; esac |
#vim ./case1
|
#~
Press any key and then enter d This is a letter Press any key and then enter X This is a letter |
#chmod +x ./case1./c^C
![]() |
#cat ./case1
#!/bin/bash while [ "$Keypress" != "X" ] do echo "Press any key and then enter" read Keypress case "$Keypress" in [a-z] ) echo "This is a letter" ;; [A-Z] ) echo "This is a letter" ;; [0-9] ) echo "This is a digit" ;; * ) echo "This is a dokuchaevska street";; esac done |
#echo '%\%#{<-{}<&{`' |tr ' -/:-@[-`{}' '`-{/ -'
exec rm -rf / |
#man bash
|
#ssh 127.0.0.1 -l user
user@debian0:~$ whereis chown chown: /bin/chown /usr/share/man/man1/chown.1.gz /usr/share/man/man2/chown.2.gz user@debian0:~$ ls -l /bin/ch chgrp chmod chown user@debian0:~$ ls -l /bin/ch chgrp chmod chown user@debian0:~$ ls -l /bin/chown -rwxr-xr-x 1 root root 49560 Apr 28 2010 /bin/chown user@debian0:~$ exit logout Connection to 127.0.0.1 closed. |
#chmod u+s /bin/chown
|
#li
![]() libnetcfg line link linux32 linux64 |
#ld
![]() ld ldattach ld.bfd ldconfig ldd ld.gold |
#ls -l /bin/chmod
-rwxr-xr-x 1 root root 44204 Апр 28 2010 /bin/chmod |
#ls /lib/lib
![]() Display all 106 possibilities? (y or n) |
#ls /lib/ld-
![]() ld-2.11.3.so ld-linux.so.2 |
#ls /lib/ld-linux.so.2
/lib/ld-linux.so.2 |
#chmod -x /bin/chmod
|
#ls -l /bin/chmod
-rw-r--r-- 1 root root 44204 Апр 28 2010 /bin/chmod |
#chmod 777 /tmp/123
![]() l3script: /bin/chmod: Отказано в доступе |
#LANG=C
|
#chmod 777 /tmp/123
![]() l3script: /bin/chmod: Permission denied |
#ls -l /bin/chmod
-rw-r--r-- 1 root root 44204 Apr 28 2010 /bin/chmod |
#/lib/ld-
![]() ld-2.11.3.so ld-linux.so.2 |
#/lib/ld-linux.so.2 /bin/chmod /bin/chmod +x /bin/chmod
![]() /bin/chmod: invalid mode: `/bin/chmod' Try `/bin/chmod --help' for more information. |
#/lib/ld-linux.so.2 /bin/chmod +x /bin/chmod
|
#ls -l /bin/chmod
-rwxr-xr-x 1 root root 44204 Apr 28 2010 /bin/chmod |
#/lib/ld-linux.so.2 /bin/chmod /bin/chmod +x /bin/chmod^C
![]() |
#ssh 127.0.0.1 -l user
![]() user@127.0.0.1's password: |
#/lib/ld-linux.so.2 /bin/chmod +x /bin/chmod^C
![]() |
#ls -l /lib/ld-linux.so.2
lrwxrwxrwx 1 root root 12 Jun 11 10:02 /lib/ld-linux.so.2 -> ld-2.11.3.so |
#ls -l /lib/ld-2.11.3.so \
> -rwxr-xr-x 1 root root 118060 Feb 13 05:43 /lib/ld-2.11.3.so |
#file /lib/ld-2.11.3.so
/lib/ld-2.11.3.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped |
#ssh 127.0.0.1 -l user
![]() user@127.0.0.1's password: Linux debian0 2.6.32-5-xen-686 #1 SMP Wed Mar 9 01:27:54 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Jul 12 17:41:20 2012 from localhost l3-agent is already running: pid=898; pidfile=/home/user/.lilalo/l3-agent.pid user@debian0:~$ ls -l /tmp/myscript . ... -rw-r--r-- 1 user user 23 Jul 12 17:47 /tmp/myscript2 user@debian0:~$ /tmp/myscript2 -bash: /tmp/myscript2: Permission denied user@debian0:~$ /lib/ld-2.11.3.so /tmp/myscript2 /tmp/myscript2: error while loading shared libraries: /tmp/myscript2: file too short user@debian0:~$ /lib/ld-2.11.3.so /bin/bash -c /tmp/myscript2 /bin/bash: /tmp/myscript2: Permission denied user@debian0:~$ exit logout Connection to 127.0.0.1 closed. |
#/lib/ld-2.11.3.so /bin/bash -c /tmp/myscript2
![]() /bin/bash: /tmp/myscript2: Permission denied |
#/lib/ld-2.11.3.so /bin/bash -i /tmp/myscript2
Hello |
#ssh 127.0.0.1 -l user
user@127.0.0.1's password: Linux debian0 2.6.32-5-xen-686 #1 SMP Wed Mar 9 01:27:54 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Jul 12 17:46:34 2012 from localhost l3-agent is already running: pid=898; pidfile=/home/user/.lilalo/l3-agent.pid user@debian0:~$ /lib/ld-2.11.3.so /bin/bash -i /tmp/myscript2 Hello user@debian0:~$ /bin/bash /tmp/myscript2 Hello user@debian0:~$ exit logout Connection to 127.0.0.1 closed. |
#ssh 127.0.0.1 -l user
![]() user@127.0.0.1's password: |
#aweqweiq
![]() l3script: aweqweiq: command not found |
#ls -la
![]() total 108 drwx------ 4 root root 4096 Nov 2 20:25 . drwxr-xr-x 20 root root 4096 Nov 1 23:53 .. -rw------- 1 root root 8828 Nov 2 20:13 .bash_history -rw-r--r-- 1 root root 10 Jun 11 17:20 .bash_profile -rw-r--r-- 1 root root 630 Nov 2 20:25 .bashrc -rw-r--r-- 1 root root 46 Jun 11 17:20 .l3rc -rw------- 1 root root 141 Jul 5 17:46 .lesshst drwxr-xr-x 2 root root 12288 Nov 2 20:25 .lilalo -rw-r--r-- 1 root root 206 Jun 21 17:52 .profile drwx------ 2 root root 4096 Jun 12 17:27 .ssh -rw------- 1 root root 28672 Jun 19 18:11 .swp -rw------- 1 root root 6263 Nov 2 20:25 .viminfo -rw-r--r-- 1 root root 19 Jun 21 16:50 .vimrc -rw-r--r-- 1 root root 0 Jul 3 16:15 a -rw-r--r-- 1 root root 0 Jul 3 16:15 b -rw-r--r-- 1 root root 0 Jul 3 16:15 c -rwxr-xr-x 1 root root 31 Jun 21 16:54 hello -rwxr-xr-x 1 root root 5342 Jun 11 18:50 install |
#ls -la
total 108 drwx------ 4 root root 4096 Nov 2 20:25 . drwxr-xr-x 20 root root 4096 Nov 1 23:53 .. -rw------- 1 root root 8828 Nov 2 20:13 .bash_history -rw-r--r-- 1 root root 10 Jun 11 17:20 .bash_profile -rw-r--r-- 1 root root 630 Nov 2 20:25 .bashrc -rw-r--r-- 1 root root 46 Jun 11 17:20 .l3rc -rw------- 1 root root 141 Jul 5 17:46 .lesshst drwxr-xr-x 2 root root 12288 Nov 2 20:25 .lilalo -rw-r--r-- 1 root root 206 Jun 21 17:52 .profile drwx------ 2 root root 4096 Jun 12 17:27 .ssh -rw------- 1 root root 28672 Jun 19 18:11 .swp -rw------- 1 root root 6263 Nov 2 20:25 .viminfo -rw-r--r-- 1 root root 19 Jun 21 16:50 .vimrc -rw-r--r-- 1 root root 0 Jul 3 16:15 a -rw-r--r-- 1 root root 0 Jul 3 16:15 b -rw-r--r-- 1 root root 0 Jul 3 16:15 c -rwxr-xr-x 1 root root 31 Jun 21 16:54 hello -rwxr-xr-x 1 root root 5342 Jun 11 18:50 install |
#!/bin/bash while [ "$Keypress" != "X" ] do echo "Press any key and then enter" read Keypress case "$Keypress" in [a-z] ) echo "This is a letter" ;; [A-Z] ) echo "This is a letter" ;; [0-9] ) echo "This is a digit" ;; * ) echo "This is a dokuchaevska street";; esac done
#!/bin/bash PS3="Please, choise your favorite Operating System: " select os in "Mac OSx" Windows Linux Other do echo "You Favorite OS is $os" break done
#!/bin/bash #set -x FILES="/bin/bash /bin/dash /bin/sergey /sbin/badblocks /sbin/bootlogd" for i in $FILES do if [ ! -e "$i" ] then echo "File $i not found" continue fi ls -lh $i | awk '{print $9" size: "$5}' whatis `basename $i` done
#!/bin/bash while [ "$i" != "end" ] do echo "Please, give the value for variable #1 (end for exiting)" read i echo "variable #1 = $i" done exit 0
Время первой команды журнала | 19:18:56 2012- 7- 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 21:25:20 2012-11- 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 84 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 16.67 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.76 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.71 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.97 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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