Журнал лабораторных работ

Содержание

Журнал

Четверг (11/29/12)

/dev/pts/0
13:01:33
#ls -l
total 44
-rw-------  1 root  wheel  2873 Nov 29 13:07 .bash_history
-rw-r--r--  1 root  wheel    10 Jul  5 20:49 .bash_profile
-rw-r--r--  1 root  wheel    60 Jul  5 20:49 .bashrc
-rw-r--r--  2 root  wheel   798 Feb 18  2011 .cshrc
-rw-------  1 root  wheel  2582 Jul  5 20:49 .history
-rw-r--r--  1 root  wheel   155 Feb 18  2011 .k5login
-rw-r--r--  1 root  wheel    54 Nov 24 15:16 .l3rc
drwxr-xr-x  2 root  wheel   512 Nov 29 11:35 .lilalo
-rw-r--r--  1 root  wheel   303 Feb 18  2011 .login
-rw-r--r--  2 root  wheel   265 Feb 18  2011 .profile
drwxr-xr-x  2 root  wheel   512 Nov 27 13:11 .vim
-rw-------  1 root  wheel  3455 Nov 29 13:06 .viminfo
-rw-r--r--  1 root  wheel  2938 Jul  3 22:29 .vimrc
drwxr-xr-x  3 root  wheel   512 Nov 26 19:02 backup
drwxr-xr-x  2 root  wheel   512 Nov 27 13:11 bin
-rw-r--r--  1 root  wheel     0 Oct  1  1980 file
drwxr-xr-x  2 root  wheel   512 Nov 26 17:53 pics
drwxr-xr-x  3 root  wheel   512 Nov 26 19:02 proj
drwxr-xr-x  2 root  wheel   512 Nov 26 17:53 source
13:02:11
#cd etc
su: cd: etc: No such file or directory
13:03:08
#cd ..

13:03:17
#cd ..

13:03:20
#cd ..

13:03:23
#ls
.cshrc          boot            etc             mnt             sys
.profile        cdrom           home            proc            tmp
.snap           compat          lib             rescue          usr
COPYRIGHT       dev             libexec         root            var
bin             dist            media           sbin
13:03:25
#cd etc

13:03:37
#ls
X11                     locate.rc               profile
aliases                 login.access            protocols
amd.map                 login.conf              pwd.db
apmd.conf               login.conf.db           rc
auth.conf               mac.conf                rc.bsdextended
bluetooth               mail                    rc.conf
crontab                 mail.rc                 rc.conf~
csh.cshrc               make.conf               rc.d
csh.login               make.conf.bak           rc.firewall
csh.logout              manpath.config          rc.initdiskless
...
host.conf               opiekeys                ssh
hostid                  pam.d                   ssl
hosts                   passwd                  sysctl.conf
hosts.allow             pccard_ether            syslog.conf
hosts.equiv             periodic                termcap
hosts.lpd               pf.os                   termcap.small
inetd.conf              phones                  ttys
libalias.conf           portsnap.conf           zfs
lilalo                  ppp
localtime               printcap
13:03:39
#cat motd
FreeBSD 8.2-RELEASE (GENERIC) #0: Fri Feb 18 02:24:46 UTC 2011
Welcome to FreeBSD!
Before seeking technical support, please use the following resources:
o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.
o  The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
   along with the mailing lists, can be searched by going to
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.
/dev/pts/0
13:03:44
#~

13:03:44
#~

13:03:44
#~

/dev/pts/0
13:04:02
#cd

/dev/pts/0
13:04:18
#~
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
                                                              23,1          Top
13:04:18
#~
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
                                                              23,1          Top
13:04:18
#~
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
                                                              23,1          Top
13:04:18
#~
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
                                                              23,1          Top
13:04:18
#~
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
                                                              23,1          Top
13:04:18
#~
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
                                                              23,1          Top
13:04:18
#~
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
                                                              23,1          Top
13:04:18
#~
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
                                                              23,1          Top
13:04:18
#~
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
                                                              23,1          Top
13:04:18
#~
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
                                                              23,1          Top
13:04:18
#~
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
                                                              23,1          Top
/dev/pts/0
13:05:28
#pwd
/root
13:05:32
#touch mymotd

13:06:17
#vi mymotd
13:10:11
#:wq
Hello All
:wq
13:10:29
#ls
.bash_history   .history        .login          .vimrc          mymotd
.bash_profile   .k5login        .profile        backup          pics
.bashrc         .l3rc           .vim            bin             proj
.cshrc          .lilalo         .viminfo        file            source
13:11:11
#cp ~/mymotd /etc/motd

13:11:56
#ls
.bash_history   .history        .login          .vimrc          mymotd
.bash_profile   .k5login        .profile        backup          pics
.bashrc         .l3rc           .vim            bin             proj
.cshrc          .lilalo         .viminfo        file            source
13:12:00
#cd ..

13:12:10
#cd ..

13:12:12
#cd etc

13:12:26
#ls
X11                     locate.rc               profile
aliases                 login.access            protocols
amd.map                 login.conf              pwd.db
apmd.conf               login.conf.db           rc
auth.conf               mac.conf                rc.bsdextended
bluetooth               mail                    rc.conf
crontab                 mail.rc                 rc.conf~
csh.cshrc               make.conf               rc.d
csh.login               make.conf.bak           rc.firewall
csh.logout              manpath.config          rc.initdiskless
...
host.conf               opiekeys                ssh
hostid                  pam.d                   ssl
hosts                   passwd                  sysctl.conf
hosts.allow             pccard_ether            syslog.conf
hosts.equiv             periodic                termcap
hosts.lpd               pf.os                   termcap.small
inetd.conf              phones                  ttys
libalias.conf           portsnap.conf           zfs
lilalo                  ppp
localtime               printcap
13:12:28
#cat motd
Hello All
:wq
13:12:41
#exit
exit
13:12:57
$su
Password:
13:13:15
#su user -

13:13:29
$exit
exit
13:13:55
#exit
exit
13:13:59
$exit
exit

Понедельник (01/14/13)

/dev/pts/1
17:15:29
$cd /

17:15:53
$ls
COPYRIGHT       cdrom           dist            home            media           rescue          sys             var
bin             compat          entropy         lib             mnt             root            tmp
boot            dev             etc             libexec         proc            sbin            usr
17:16:01
$cd~
l3script: cd~: command not found
17:16:10
$cd ~

17:16:15
$pwd
/home/user
17:16:21
$cd ..

17:16:37
$ls
user
17:16:57
$cd

17:17:35
$ls -lF
total 4
-rw-r--r--  1 user  user    6 Jan 14 17:38 1.txt
drwxr-xr-x  3 user  user  512 Jan 14 17:34 dir1/
17:18:01
$ls -lF
total 2984
-rw-r--r--  1 user  user        6 Jan 14 17:38 1.txt
-rwxr-xr-x  1 user  user  1751860 Jan 14 18:19 Light_Alloy_4.4.784_RC2_by_FAFNIR.exe*
-rwxr-xr-x  1 user  user     7994 Jan 14 18:19 bigfile*
drwxr-xr-x  2 user  user      512 Jan 14 18:19 bin/
drwxr-xr-x  3 user  user      512 Jan 14 17:34 dir1/
-rwxr-xr-x  1 user  user   232966 Jan 14 18:19 freebsd.jpg*
-rwxr-xr-x  1 user  user    52884 Jan 14 18:19 granata.jpg*
drwxr-xr-x  2 user  user      512 Jan 14 18:19 lpi 1/
drwxr-xr-x  2 user  user      512 Jan 14 18:19 lpi 2/
-rwxr-xr-x  1 user  user    26648 Jan 14 18:19 man_smb_conf*
-rwxr-xr-x  1 user  user   755680 Jan 14 18:19 matrix.jpg*
drwxr-xr-x  3 user  user      512 Jan 14 18:19 names/
-rwxr-xr-x  1 user  user    17622 Jan 14 18:19 ogo.jpg*
-rwxr-xr-x  1 user  user    84663 Jan 14 18:19 pamyatka.pdf*
-rwxr-xr-x  1 user  user    23048 Jan 14 18:19 press_any_key_to_continue.jpg*
drwxr-xr-x  3 user  user      512 Jan 14 18:19 proj/
drwxr-xr-x  2 user  user      512 Jan 14 18:19 text/
-rwxr-xr-x  1 user  user       75 Jan 14 18:19 touchlist*
17:19:55
$ls -aF
total 3022
drwxr-xr-x  10 user  user      1024 Jan 14 18:19 ./
drwxr-xr-x   3 root  wheel      512 Jul  3  2012 ../
-rw-------   1 user  user        27 Jul  5  2012 .bash_history
-rw-r--r--   1 user  wheel       10 Jul  5  2012 .bash_profile
-rw-r--r--   1 user  user        65 Jul  5  2012 .bashrc
-rw-r--r--   1 user  user       763 Jul  3  2012 .cshrc
-rw-r--r--   1 user  user        50 Jul  5  2012 .l3rc
-rw-------   1 user  user        35 Jan 14 17:43 .lesshst
drwxr-xr-x   2 user  user       512 Jan 14 18:19 .lilalo/
...
drwxr-xr-x   2 user  user       512 Jan 14 18:19 lpi 2/
-rwxr-xr-x   1 user  user     26648 Jan 14 18:19 man_smb_conf*
-rwxr-xr-x   1 user  user    755680 Jan 14 18:19 matrix.jpg*
drwxr-xr-x   3 user  user       512 Jan 14 18:19 names/
-rwxr-xr-x   1 user  user     17622 Jan 14 18:19 ogo.jpg*
-rwxr-xr-x   1 user  user     84663 Jan 14 18:19 pamyatka.pdf*
-rwxr-xr-x   1 user  user     23048 Jan 14 18:19 press_any_key_to_continue.jpg*
drwxr-xr-x   3 user  user       512 Jan 14 18:19 proj/
drwxr-xr-x   2 user  user       512 Jan 14 18:19 text/
-rwxr-xr-x   1 user  user        75 Jan 14 18:19 touchlist*
17:20:34
$cd /usr/local/share/doc/freebsd/ru_RU.KOI8-R/books/handbook/

17:27:19
$cd /usr/share/doc

17:27:49
$ls|grep handbook

17:28:08
$ls-lrep handbook
l3script: ls-l: command not found
17:28:13
$ls l|grep handbook

17:28:20
$ls -l
total 20
drwxr-xr-x   2 root  wheel   512 Feb 18  2011 IPv6
drwxr-xr-x   2 root  wheel   512 Feb 18  2011 atm
drwxr-xr-x   4 root  wheel   512 Feb 18  2011 bind9
drwxr-xr-x   5 root  wheel   512 Feb 18  2011 legal
drwxr-xr-x   2 root  wheel   512 Feb 18  2011 ncurses
drwxr-xr-x   2 root  wheel  1536 Feb 18  2011 ntp
drwxr-xr-x   2 root  wheel   512 Feb 18  2011 papers
drwxr-xr-x  23 root  wheel   512 Feb 18  2011 psd
drwxr-xr-x  13 root  wheel   512 Feb 18  2011 smm
drwxr-xr-x  13 root  wheel   512 Feb 18  2011 usd
17:28:24
$ls
IPv6    atm     bind9   legal   ncurses ntp     papers  psd     smm     usd
17:29:02
$cd /usr/local/share/doc

17:29:39
$ls
bash            fixesproto      gnutls          jpeg            libgcrypt       lua51           randrproto
bitstream-vera  fontconfig      ja              libX11          libgpg-error    mpfr            renderproto
compositeproto  freebsd         jasper          libXrender      libiconv        pcre            ruby18
damageproto     gettext         jbig            libasprintf     libxcb          pkg-config      tiff
17:29:42
$cd freebsd

17:29:59
$ls
en              en_US.ISO8859-1 faq             handbook        ru              ru_RU.KOI8-R
17:30:08
$cd handbook

17:30:16
$cd ..

17:30:23
$ls -l|grep handbook
lrwxr-xr-x  1 root  wheel   30 Jan 15  2011 handbook -> en_US.ISO8859-1/books/handbook
17:30:34
$cd handbook

17:31:17
$ls
LEGALNOTICE.html                        fs-acl.html                             network-nis.html
acpi-debug.html                         geom                                    network-ntp.html
acpi-overview.html                      geom-ggate.html                         network-plip.html
adding-swap-space.html                  geom-gjournal.html                      network-routing.html
advanced-networking                     geom-glabel.html                        network-samba.html
advanced-networking.html                geom-intro.html                         network-servers.html
anoncvs.html                            geom-mirror.html                        network-syslogd.html
appendices.html                         geom-striping.html                      network-wireless.html
audit-administration.html               geom.html                               nutshell.html
audit-config.html                       getting-started.html                    one-time-passwords.html
...
filesystems-zfs.html                    network-communication.html              virtualization-host.html
filesystems.html                        network-dhcp.html                       virtualization.html
firewalls-apps.html                     network-diskless.html                   x-config.html
firewalls-concepts.html                 network-dns.html                        x-fonts.html
firewalls-ipf.html                      network-ftp.html                        x-install.html
firewalls-ipfw.html                     network-inetd.html                      x-understanding.html
firewalls-pf.html                       network-ipv6.html                       x-xdm.html
firewalls.html                          network-isdn.html                       x11-wm.html
floppies.html                           network-natd.html                       x11.html
freebsd-glossary.html                   network-nfs.html
17:31:22
$cat index
cat: index: No such file or directory
17:31:28
$ls|grep index
index.html
17:31:43
$lynx index.html
17:31:52
$links index.html
17:32:02
$less index.html
17:32:20
$cd

17:32:39
$mkdir source doc pics

17:32:57
$ls
1.txt                                   granata.jpg                             pamyatka.pdf
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1                                   pics
bigfile                                 lpi 2                                   press_any_key_to_continue.jpg
bin                                     man_smb_conf                            proj
dir1                                    matrix.jpg                              source
doc                                     names                                   text
freebsd.jpg                             ogo.jpg                                 touchlist
17:32:59
$cd doc;mkdir -perl scripting/python c

17:35:13
$ls
c               scripting
17:35:17
$ls scripting/
perl    python
17:35:26
$cd ~;mkdir -p pics/forweb/info/2002/summer

17:36:31
$ls -R pics/
forweb
pics/forweb:
info
pics/forweb/info:
2002
pics/forweb/info/2002:
summer
pics/forweb/info/2002/summer:
17:36:42
$touch a b c

17:38:49
$ls
1.txt                                   doc                                     ogo.jpg
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   freebsd.jpg                             pamyatka.pdf
a                                       granata.jpg                             pics
b                                       lpi 1                                   press_any_key_to_continue.jpg
bigfile                                 lpi 2                                   proj
bin                                     man_smb_conf                            source
c                                       matrix.jpg                              text
dir1                                    names                                   touchlist
17:38:54
$rm a b c

17:39:02
$ls
1.txt                                   granata.jpg                             pamyatka.pdf
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1                                   pics
bigfile                                 lpi 2                                   press_any_key_to_continue.jpg
bin                                     man_smb_conf                            proj
dir1                                    matrix.jpg                              source
doc                                     names                                   text
freebsd.jpg                             ogo.jpg                                 touchlist
17:39:05
$rmdir -p pics/forweb/info/2002/summer

17:40:21
$ls
1.txt                                   granata.jpg                             pamyatka.pdf
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1                                   press_any_key_to_continue.jpg
bigfile                                 lpi 2                                   proj
bin                                     man_smb_conf                            source
dir1                                    matrix.jpg                              text
doc                                     names                                   touchlist
freebsd.jpg                             ogo.jpg
17:40:24
$rm -r doc

17:40:57
$ls
1.txt                                   lpi 1                                   press_any_key_to_continue.jpg
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 2                                   proj
bigfile                                 man_smb_conf                            source
bin                                     matrix.jpg                              text
dir1                                    names                                   touchlist
freebsd.jpg                             ogo.jpg
granata.jpg                             pamyatka.pdf
17:41:00
$touch x y z

17:41:48
$rm -ivx
remove x? y
x
17:42:09
$rm -v y z
y
z
17:42:58
$cp ~/proj/x-project/x ~/proj/x-project/y ~/proj/x-project/z ~/bin

17:44:56
$cd ~/proj//x-project ; cp x y z ~/bin

17:45:33
$cd

17:45:48
$cd -R ~/proj/x-project/ ~/proj/x-backup
l3script: cd: -R: invalid option
cd: usage: cd [-L|-P] [dir]
17:46:36
$cp -R ~/proj/x-project/ ~/proj/x-backup

17:48:11
$cp -R ~/proj/x-project/ ~/proj/x-backup

17:48:26
$ls proj/x-backup/
x       y       z
17:49:34
$mkdir ~/backup; cd ~/proj; mv -R ./x-backup ~/backup
mv: illegal option -- R
usage: mv [-f | -i | -n] [-v] source target
       mv [-f | -i | -n] [-v] source ... directory

Файлы

  • motd
  • motd
    >
    Hello All
    :wq
    

    Статистика

    Время первой команды журнала13:01:33 2012-11-29
    Время последней команды журнала17:49:34 2013- 1-14
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %14.85
    Процент синтаксически неверно набранных команд, % 2.97
    Суммарное время работы с терминалом *, час 0.78
    Количество командных строк в единицу времени, команда/мин 2.17
    Частота использования команд
    ls29|==========================| 26.36%
    cd27|========================| 24.55%
    ~14|============| 12.73%
    cp5|====| 4.55%
    mkdir4|===| 3.64%
    rm4|===| 3.64%
    grep4|===| 3.64%
    exit4|===| 3.64%
    touch3|==| 2.73%
    cat3|==| 2.73%
    pwd2|=| 1.82%
    su2|=| 1.82%
    cd~1|| 0.91%
    links1|| 0.91%
    lynx1|| 0.91%
    vi1|| 0.91%
    :wq1|| 0.91%
    less1|| 0.91%
    rmdir1|| 0.91%
    mv1|| 0.91%
    ls-lrep1|| 0.91%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ 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
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$