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

Содержание

Журнал

Вторник (06/15/10)

/dev/pts/4
11:18:08
#nc 192.168.16.4 65534
hello boys, lets meet to me
^C
11:18:34
#cat /etc/xinit.conf
cat: /etc/xinit.conf: No such file or directory
11:18:51
#cat /etc/x
cat: /etc/x: No such file or directory
прошло 22 минуты
/dev/pts/2
11:41:19
#grep user /etc/passwd
user:x:1000:1000::/home/user:/bin/bash
11:41:46
#cat /etc/passwd/
cat: /etc/passwd/: Это не каталог
11:41:49
#cat /etc/passwd
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
...
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
libuuid:x:100:101::/var/lib/libuuid:/bin/sh
messagebus:x:101:103::/var/run/dbus:/bin/false
gdm:x:102:105:Gnome Display Manager:/var/lib/gdm:/bin/false
user:x:1000:1000::/home/user:/bin/bash
sshd:x:103:65534::/var/run/sshd:/usr/sbin/nologin
popa3d:x:104:108::/var/lib/popa3d:/bin/false
Debian-exim:x:105:109::/var/spool/exim4:/bin/false
11:41:50
#grep user /etc/passwd
user:x:1000:1000::/home/user:/bin/bash
11:41:54
#sort
^C
11:42:20
#vim /tmp/names
--- /dev/null	2010-06-15 09:50:47.839716629 +0300
+++ /tmp/names	2010-06-15 12:42:40.000000000 +0300
@@ -0,0 +1,3 @@
+Yaroslav
+Sergey
+Andrey
11:42:40
#sort < /tmp/names
Andrey
Sergey
Yaroslav
11:42:46
#sort < /tmp/names > /tmp/sorted

11:43:09
#sort
asd
ads
ds
asd
ads
asd
asd
ds
11:43:20
#sort < /tmp/names > /tmp/sorted

11:43:28
#ps
  PID TTY          TIME CMD
 1461 pts/3    00:00:01 l3script
 6779 pts/3    00:00:00 ps
11:43:37
#ps a
  PID TTY      STAT   TIME COMMAND
 1058 hvc0     Ss+    0:00 /sbin/getty 38400 hvc0
 1059 tty2     Ss+    0:00 /sbin/getty 38400 tty2
 1060 tty3     Ss+    0:00 /sbin/getty 38400 tty3
 1061 tty4     Ss+    0:00 /sbin/getty 38400 tty4
 1062 tty5     Ss+    0:00 /sbin/getty 38400 tty5
 1063 tty6     Ss+    0:00 /sbin/getty 38400 tty6
 1272 pts/0    Ss     0:00 bash
 1282 pts/0    S      0:00 su -
 1291 pts/0    S+     0:00 -su
...
 1428 pts/2    Ss     0:00 /bin/bash
 1429 pts/2    S+     0:00 script -f -c l3script -q /root/.lilalo//2116212161278
 1460 pts/2    R+     0:00 script -f -c l3script -q /root/.lilalo//2116212161278
 1461 pts/3    Ss     0:01 l3script
 1482 pts/4    Ss     0:00 /bin/bash
 1483 pts/4    S+     0:00 script -f -c l3script -q /root/.lilalo//2489332466168
 1514 pts/4    S+     0:00 script -f -c l3script -q /root/.lilalo//2489332466168
 1515 pts/5    Ss     0:00 l3script
 1536 pts/5    S+     0:00 ssh 192.168.16.24
 6787 pts/3    R+     0:00 ps a
11:43:46
#ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:00 init [2]
    2 ?        S<     0:00 [kthreadd]
    3 ?        S<     0:00 [migration/0]
    4 ?        S<     0:00 [ksoftirqd/0]
    5 ?        S<     0:00 [watchdog/0]
    6 ?        S<     0:00 [events/0]
    7 ?        S<     0:00 [khelper]
   19 ?        S<     0:00 [xenwatch]
   20 ?        S<     0:00 [xenbus]
...
 1514 pts/4    S+     0:00 script -f -c l3script -q /root/.lilalo//2489332466168
 1515 pts/5    Ss     0:00 l3script
 1536 pts/5    S+     0:00 ssh 192.168.16.24
 1950 ?        Ss     0:00 /usr/sbin/popa3d -D
 2593 ?        Ss     0:00 /usr/sbin/exim4 -bd -q30m
 3562 ?        Ss     0:52 l3-agent
 4845 ?        Ss     0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayal
 4947 ?        S      0:00 [pdflush]
 6033 ?        Ss     0:00 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webm
 6795 pts/3    R+     0:00 ps ax
11:44:01
#ps axu
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1   2040   692 ?        Ss   09:50   0:00 init [2]
root         2  0.0  0.0      0     0 ?        S<   09:50   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S<   09:50   0:00 [migration/0]
root         4  0.0  0.0      0     0 ?        S<   09:50   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   09:50   0:00 [watchdog/0]
root         6  0.0  0.0      0     0 ?        S<   09:50   0:00 [events/0]
root         7  0.0  0.0      0     0 ?        S<   09:50   0:00 [khelper]
root        19  0.0  0.0      0     0 ?        S<   09:50   0:00 [xenwatch]
root        20  0.0  0.0      0     0 ?        S<   09:50   0:00 [xenbus]
...
root      1514  0.0  0.0   4908   484 pts/4    S+   10:10   0:00 script -f -c l3
root      1515  0.0  0.3   6124  1876 pts/5    Ss   10:10   0:00 l3script
root      1536  0.0  0.3   5092  2284 pts/5    S+   10:10   0:00 ssh 192.168.16.
root      1950  0.0  0.0   2184   272 ?        Ss   10:22   0:00 /usr/sbin/popa3
105       2593  0.0  0.1   6516   948 ?        Ss   10:22   0:00 /usr/sbin/exim4
user      3562  0.7  1.8  16420 11200 ?        Ss   10:45   0:52 l3-agent
root      4845  0.0  0.1   2408   888 ?        Ss   11:14   0:00 /usr/sbin/xinet
root      4947  0.0  0.0      0     0 ?        S    11:16   0:00 [pdflush]
root      6033  0.0  1.5  13148  9144 ?        Ss   11:18   0:00 /usr/bin/perl /
root      6803  0.0  0.1   5384  1032 pts/3    R+   12:44   0:00 ps axu
11:44:05
#ps axuw
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1   2040   692 ?        Ss   09:50   0:00 init [2]
root         2  0.0  0.0      0     0 ?        S<   09:50   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S<   09:50   0:00 [migration/0]
root         4  0.0  0.0      0     0 ?        S<   09:50   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   09:50   0:00 [watchdog/0]
root         6  0.0  0.0      0     0 ?        S<   09:50   0:00 [events/0]
root         7  0.0  0.0      0     0 ?        S<   09:50   0:00 [khelper]
root        19  0.0  0.0      0     0 ?        S<   09:50   0:00 [xenwatch]
root        20  0.0  0.0      0     0 ?        S<   09:50   0:00 [xenbus]
...
root      1514  0.0  0.0   4908   484 pts/4    S+   10:10   0:00 script -f -c l3script -q /root/.lilalo//24893324661683728532-127658
root      1515  0.0  0.3   6124  1876 pts/5    Ss   10:10   0:00 l3script
root      1536  0.0  0.3   5092  2284 pts/5    S+   10:10   0:00 ssh 192.168.16.24
root      1950  0.0  0.0   2184   272 ?        Ss   10:22   0:00 /usr/sbin/popa3d -D
105       2593  0.0  0.1   6516   948 ?        Ss   10:22   0:00 /usr/sbin/exim4 -bd -q30m
user      3562  0.7  1.8  16420 11200 ?        Ss   10:45   0:52 l3-agent
root      4845  0.0  0.1   2408   888 ?        Ss   11:14   0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_com
root      4947  0.0  0.0      0     0 ?        S    11:16   0:00 [pdflush]
root      6033  0.0  1.5  13148  9144 ?        Ss   11:18   0:00 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.co
root      6811  0.0  0.1   5384  1032 pts/3    R+   12:44   0:00 ps axuw
11:44:12
#ps axu
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1   2040   692 ?        Ss   09:50   0:00 init [2]
root         2  0.0  0.0      0     0 ?        S<   09:50   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S<   09:50   0:00 [migration/0]
root         4  0.0  0.0      0     0 ?        S<   09:50   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   09:50   0:00 [watchdog/0]
root         6  0.0  0.0      0     0 ?        S<   09:50   0:00 [events/0]
root         7  0.0  0.0      0     0 ?        S<   09:50   0:00 [khelper]
root        19  0.0  0.0      0     0 ?        S<   09:50   0:00 [xenwatch]
root        20  0.0  0.0      0     0 ?        S<   09:50   0:00 [xenbus]
...
root      1514  0.0  0.0   4908   484 pts/4    S+   10:10   0:00 script -f -c l3
root      1515  0.0  0.3   6124  1876 pts/5    Ss   10:10   0:00 l3script
root      1536  0.0  0.3   5092  2284 pts/5    S+   10:10   0:00 ssh 192.168.16.
root      1950  0.0  0.0   2184   272 ?        Ss   10:22   0:00 /usr/sbin/popa3
105       2593  0.0  0.1   6516   948 ?        Ss   10:22   0:00 /usr/sbin/exim4
user      3562  0.7  1.8  16420 11200 ?        Ss   10:45   0:52 l3-agent
root      4845  0.0  0.1   2408   888 ?        Ss   11:14   0:00 /usr/sbin/xinet
root      4947  0.0  0.0      0     0 ?        S    11:16   0:00 [pdflush]
root      6033  0.0  1.5  13148  9144 ?        Ss   11:18   0:00 /usr/bin/perl /
root      6819  0.0  0.1   5384  1032 pts/3    R+   12:44   0:00 ps axu
11:44:17
#ps axu | cat -n
     1  USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
     2  root         1  0.0  0.1   2040   692 ?        Ss   09:50   0:00 init [2]
     3  root         2  0.0  0.0      0     0 ?        S<   09:50   0:00 [kthreadd]
     4  root         3  0.0  0.0      0     0 ?        S<   09:50   0:00 [migration/0]
     5  root         4  0.0  0.0      0     0 ?        S<   09:50   0:00 [ksoftirqd/0]
     6  root         5  0.0  0.0      0     0 ?        S<   09:50   0:00 [watchdog/0]
     7  root         6  0.0  0.0      0     0 ?        S<   09:50   0:00 [events/0]
     8  root         7  0.0  0.0      0     0 ?        S<   09:50   0:00 [khelper]
     9  root        19  0.0  0.0      0     0 ?        S<   09:50   0:00 [xenwatch]
    10  root        20  0.0  0.0      0     0 ?        S<   09:50   0:00 [xenbus]
...
    60  root      1515  0.0  0.3   6124  1876 pts/5    Ss   10:10   0:00 l3script
    61  root      1536  0.0  0.3   5092  2284 pts/5    S+   10:10   0:00 ssh 192.168.16.24
    62  root      1950  0.0  0.0   2184   272 ?        Ss   10:22   0:00 /usr/sbin/popa3d -D
    63  105       2593  0.0  0.1   6516   948 ?        Ss   10:22   0:00 /usr/sbin/exim4 -bd -q30m
    64  user      3562  0.7  1.8  16420 11200 ?        Ss   10:45   0:52 l3-agent
    65  root      4845  0.0  0.1   2408   888 ?        Ss   11:14   0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
    66  root      4947  0.0  0.0      0     0 ?        S    11:16   0:00 [pdflush]
    67  root      6033  0.0  1.5  13148  9144 ?        Ss   11:18   0:00 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
    68  root      6827  0.0  0.1   5384  1032 pts/3    R+   12:44   0:00 ps axu
    69  root      6828  0.0  0.0   4876   492 pts/3    S+   12:44   0:00 cat -n
11:44:21
#ps axu
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1   2040   692 ?        Ss   09:50   0:00 init [2]
root         2  0.0  0.0      0     0 ?        S<   09:50   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S<   09:50   0:00 [migration/0]
root         4  0.0  0.0      0     0 ?        S<   09:50   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   09:50   0:00 [watchdog/0]
root         6  0.0  0.0      0     0 ?        S<   09:50   0:00 [events/0]
root         7  0.0  0.0      0     0 ?        S<   09:50   0:00 [khelper]
root        19  0.0  0.0      0     0 ?        S<   09:50   0:00 [xenwatch]
root        20  0.0  0.0      0     0 ?        S<   09:50   0:00 [xenbus]
...
root      1514  0.0  0.0   4908   484 pts/4    S+   10:10   0:00 script -f -c l3
root      1515  0.0  0.3   6124  1876 pts/5    Ss   10:10   0:00 l3script
root      1536  0.0  0.3   5092  2284 pts/5    S+   10:10   0:00 ssh 192.168.16.
root      1950  0.0  0.0   2184   272 ?        Ss   10:22   0:00 /usr/sbin/popa3
105       2593  0.0  0.1   6516   948 ?        Ss   10:22   0:00 /usr/sbin/exim4
user      3562  0.7  1.8  16420 11200 ?        Ss   10:45   0:52 l3-agent
root      4845  0.0  0.1   2408   888 ?        Ss   11:14   0:00 /usr/sbin/xinet
root      4947  0.0  0.0      0     0 ?        S    11:16   0:00 [pdflush]
root      6033  0.0  1.5  13148  9144 ?        Ss   11:18   0:00 /usr/bin/perl /
root      6836  0.0  0.1   5384  1032 pts/3    R+   12:44   0:00 ps axu
11:44:28
#ps axuw
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1   2040   692 ?        Ss   09:50   0:00 init [2]
root         2  0.0  0.0      0     0 ?        S<   09:50   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S<   09:50   0:00 [migration/0]
root         4  0.0  0.0      0     0 ?        S<   09:50   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   09:50   0:00 [watchdog/0]
root         6  0.0  0.0      0     0 ?        S<   09:50   0:00 [events/0]
root         7  0.0  0.0      0     0 ?        S<   09:50   0:00 [khelper]
root        19  0.0  0.0      0     0 ?        S<   09:50   0:00 [xenwatch]
root        20  0.0  0.0      0     0 ?        S<   09:50   0:00 [xenbus]
...
root      1514  0.0  0.0   4908   484 pts/4    S+   10:10   0:00 script -f -c l3script -q /root/.lilalo//24893324661683728532-127658
root      1515  0.0  0.3   6124  1876 pts/5    Ss   10:10   0:00 l3script
root      1536  0.0  0.3   5092  2284 pts/5    S+   10:10   0:00 ssh 192.168.16.24
root      1950  0.0  0.0   2184   272 ?        Ss   10:22   0:00 /usr/sbin/popa3d -D
105       2593  0.0  0.1   6516   948 ?        Ss   10:22   0:00 /usr/sbin/exim4 -bd -q30m
user      3562  0.7  1.8  16420 11200 ?        Ss   10:45   0:52 l3-agent
root      4845  0.0  0.1   2408   888 ?        Ss   11:14   0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_com
root      4947  0.0  0.0      0     0 ?        S    11:16   0:00 [pdflush]
root      6033  0.0  1.5  13148  9144 ?        Ss   11:18   0:00 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.co
root      6844  0.0  0.1   5384  1032 pts/3    R+   12:44   0:00 ps axuw
11:44:55
#ssh 192.168.16.254
  43 #       dependent on the order the scheme first appears in config file. IE
     ic
  44 #       has a bug (it's not RFC 2617 compliant) in that it will use the bass
  45 #       scheme if basic is the first entry presented, even if more secure
  46 #       schemes are presented. For now use the order in the recommended
     eir     settings section below. If other browsers have difficulties (don't
  50 #       program entry).chemes offered even if you are using basic) either
  51 #       put basic first, or disable the other schemes (by commenting out thh
      on
  52 #       Once an authentication scheme is fully configured, it can only be
...
alias diff='colordiff'
alias egrep='egrep --color=auto'
alias egrepmy='egrep -v "^#|^\ *$"'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias ls='ls $LS_OPTIONS'
alias ssh_nt='luit -encoding cp1251 ssh nt.ua -l clint'
debian:~# exit
logout
Connection to 192.168.16.254 closed.
11:49:31
#ssh 192.168.16.1
root@192.168.16.1's password:
Linux debian1 2.6.26-2-xen-686 #1 SMP Tue Mar 9 20:11:42 UTC 2010 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: Mon Jun 14 19:12:35 2010 from debian.net.nt
l3-agent is already running: pid=1291; pidfile=/root/.lilalo/l3-agent.pid
root@debian1:~# l3script
/dev/pts/4
11:50:27
#ssh 192.168.16.1
root@192.168.16.1's password:
11:50:31
#nc 192.168.16.1 10000
welcome
Please, input some text:
adf
your text is: adf
11:50:49
#nc 192.168.16.1 10000
welcome
Please, input some text:
sdf
your text is: sdf
/dev/pts/2
11:51:36
#ps aux |
>  ^C
11:51:40
#ps aux | grep /tmp/script
root      3294  0.0  0.1   4824   752 pts/3    R+   12:51   0:00 grep /tmp/script
11:51:49
#ps aux | grep -v grep |grep /tmp/script

/dev/pts/4
11:51:55
#ssh 192.168.16.21
Password:
Last login: Tue Jun 15 12:23:52 2010 from host206.net.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008
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.
...
   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.
l3-agent is already running: pid=10856; pidfile=/root/.lilalo/l3-agent.pid
11:52:21
#exit
exit
Connection to 192.168.16.24 closed.
11:53:04
#ssh 192.168.16.21
Password:
Last login: Tue Jun 15 12:53:54 2010 from debian4.net.nt
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008
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.
...
   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.
l3-agent is already running: pid=10856; pidfile=/root/.lilalo/l3-agent.pid
11:53:26
#exit
exit
Connection to 192.168.16.24 closed.
11:53:55
#vim /usr/local/etc/xinetd.conf
11:54:09
#includedir /usr/local/etc/xinetd.
xinet.d/     xinetd.conf
11:54:09
#vim /usr/local/etc/xinetd.conf
11:54:51
#exit
exit
Connection to 192.168.16.21 closed.
11:57:53
#less /var/log/messages
11:58:10
#vim /usr/local/etc/xinetd.conf
11:58:17
#~
Jun 14 00:00:00 fbsd1 newsyslog[2402]: logfile turned over due to size>100K
Jun 14 11:08:57 fbsd1 su: user to root on /dev/ttyp2
Jun 14 15:57:15 fbsd1 su: user to root on /dev/ttyp2
Jun 14 16:49:15 fbsd1 shutdown: power-down by root:
Jun 14 16:49:17 fbsd1 syslogd: exiting on signal 15
Jun 15 06:43:34 fbsd1 syslogd: kernel boot file is /boot/kernel/kernel
Jun 15 06:43:34 fbsd1 kernel: Copyright (c) 1992-2008 The FreeBSD Project.
Jun 15 06:43:34 fbsd1 kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
Jun 15 06:43:34 fbsd1 kernel: The Regents of the University of California. All rights reserved.
Jun 15 06:43:34 fbsd1 kernel: FreeBSD is a registered trademark of The FreeBSD Foundation.
...
Jun 15 06:43:34 fbsd1 kernel: ums0: 3 buttons and Z dir.
Jun 15 06:43:34 fbsd1 kernel: Timecounter "TSC" frequency 2327518472 Hz quality 800
Jun 15 06:43:34 fbsd1 kernel: Timecounters tick every 10.000 msec
Jun 15 06:43:34 fbsd1 kernel: hptrr: no controller detected.
Jun 15 06:43:34 fbsd1 kernel: ad0: 10240MB <QEMU HARDDISK 0.10.2> at ata0-master WDMA2
Jun 15 06:43:34 fbsd1 kernel: Trying to mount root from ufs:/dev/ad0s1a
Jun 15 12:41:13 fbsd1 xinetd[29840]: Unable to read included directory: /usr/local/etc/xinetd.d [file=/usr/local/etc/xinetd.conf] [line=1]
Jun 15 12:41:13 fbsd1 xinetd[29840]: 29840 {init_services} no services. Exiting...
Jun 15 12:57:47 fbsd1 xinetd[30507]: Unable to read included directory: /usr/local/etc/xinet.d [file=/usr/local/etc/xinetd.conf] [line=1]
Jun 15 12:57:47 fbsd1 xinetd[30507]: 30507 {init_services} no services. Exiting...
11:58:39
#!
bash: syntax error near unexpected token `newline'
11:58:39
#vim /usr/local/etc/xinetd.conf
11:59:18
#/usr/local/etc/rc.d/xinetd restart

11:59:30
#less /var/log/messages
11:59:39
#vim /usr/local/etc/rc.d/xinetd
11:59:58
#grep YES /usr/local/etc/rc.d/xinetd >> /etc/rc.conf

12:00:03
#vim /etc/rc.conf
12:00:09
#/usr/local/etc/rc.d/xinetd restart
xinetd not running?
Starting xinetd.
12:00:24
#less /var/log/messages
12:00:33
#ls /usr/local/etc/xinetd.d/

12:00:40
#ps aux | grep xinetd

12:00:47
#xcon
xconsole  xconv
12:00:47
#xconv < /etc/inetd.conf > /tmp/xinetd

12:01:02
#vim /tmp/xinetd
12:01:16
#less /var/log/messages
12:01:46
#vim /etc/rc.conf
12:01:51
#ls /usr/local/etc/xinetd.d/

12:02:04
#ls -al /usr/local/etc/xinetd.d/
total 4
drwxr-xr-x   2 root  wheel   512 15 ÉÀÎ 12:55 .
drwxr-xr-x  27 root  wheel  1024 15 ÉÀÎ 12:59 ..
12:02:06
#LANG=C

12:02:11
#ls -al /usr/local/etc/xinetd.d/
total 4
drwxr-xr-x   2 root  wheel   512 Jun 15 12:55 .
drwxr-xr-x  27 root  wheel  1024 Jun 15 12:59 ..
12:02:12
#man ls
прошло 58 минут
13:00:49
#PAGER=less man ls
LS(1)                   FreeBSD General Commands Manual                  LS(1)
NAME
     ls -- list directory contents
SYNOPSIS
     ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...]
DESCRIPTION
     For each operand that names a file of a type other than directory, ls
     displays its name as well as any requested, associated information.  For
     each operand that names a file of type directory, ls displays the names
     of files contained within that directory, as well as any requested, asso-
...
     An ls command appeared in Version 1 AT&T UNIX.
BUGS
     something other than a terminal.  It is debatable whether this is a
     design bug.
FreeBSD 6.2                    October 12, 2006                    FreeBSD 6.2
     The exception mentioned in the -s option description might be a feature
     that was based on the fact that single-column output usually goes to
     something other than a terminal.  It is debatable whether this is a
     design bug.
FreeBSD 6.2                    October 12, 2006                    FreeBSD 6.2
13:01:17
#PAGER=cat man ls
LS(1)                   FreeBSD General Commands Manual                  LS(1)
NAME
     ls -- list directory contents
SYNOPSIS
     ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...]
DESCRIPTION
     For each operand that names a file of a type other than directory, ls
     displays its name as well as any requested, associated information.  For
     each operand that names a file of type directory, ls displays the names
     of files contained within that directory, as well as any requested, asso-
...
HISTORY
     An ls command appeared in Version 1 AT&T UNIX.
BUGS
     To maintain backward compatibility, the relationships between the many
     options are quite complex.
     The exception mentioned in the -s option description might be a feature
     that was based on the fact that single-column output usually goes to
     something other than a terminal.  It is debatable whether this is a
     design bug.
FreeBSD 6.2                    October 12, 2006                    FreeBSD 6.2
13:01:21
#PAGER=less man ls

13:01:33
#PAGER=less man ls
LS(1)                   FreeBSD General Commands Manual                  LS(1)
NAME
     ls -- list directory contents
SYNOPSIS
     ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...]
DESCRIPTION
     For each operand that names a file of a type other than directory, ls
     displays its name as well as any requested, associated information.  For
     each operand that names a file of type directory, ls displays the names
     of files contained within that directory, as well as any requested, asso-
     ciated information.
     If no operands are given, the contents of the current directory are dis-
     played.  If more than one operand is given, non-directory operands are
     displayed first; directory and non-directory operands are sorted sepa-
     rately and in lexicographical order.
     The following options are available:
     -A      Include directory entries whose names begin with a dot (`.')
13:01:43
#ls /usr/share/man/man1
man1/     man1aout/
13:01:43
#ls /usr/share/man/man1/ls
ls-F.1.gz   ls.1.gz     lsvfs.1.gz
13:01:43
#ls /usr/share/man/man1/ls.1.gz
/usr/share/man/man1/ls.1.gz
13:01:54
#file /usr/share/man/man1/ls.1.gz
/usr/share/man/man1/ls.1.gz: gzip compressed data, from Unix
13:01:57
#zless /usr/share/man/man1/ls.1.gz
13:02:27
#file /usr/share/man/man1/ls.1.gz

13:08:04
#vim /etc/rc.conf
13:08:25
#sshd_enable="yes
#       $OpenBSD: sshd_config,v 1.74 2006/07/19 13:07:10 dtucker Exp $
# possible, but leave them commented.  Uncommented options change a
des Exp $FreeBSD: src/crypto/openssh/sshd_config,v 1.42.2.4 2006/11/11 00:51:28
# default value.
"/etc/ssh/sshd_config" 117 lines, 3250 characters
# This is the sshd server system-wide configuration file.  See
# Note that some of FreeBSD's defaults differ from OpenBSD's, and
# sshd_config(5) for more information.
# FreeBSD has a few additional options.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
...
#LoginGraceTime 2m
PermitRootLogin yes
p
PermitRootLogin yes
PermitRootLogin yes
#MaxAuthTries 6
#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile     .ssh/authorized_keys
#ListenAddress 0.0.0.0
13:14:20
#vim /etc/ssh/sshd_config
13:18:09
#:q!
xhost:  unable to open display ""
13:19:49
#DISPLAY=192.168.16.218:0 xeyes
^C
/dev/pts/2
13:20:26
#vim /etc/hosts.deny
13:20:37
#~
  4 # Example:    ALL: LOCAL @some_netgroup
  5 #             ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
  6 #
  7 # If you're going to protect the portmapper use the name "portmap" for the
  8 # daemon name. Remember that you can only use the keyword "ALL" and IP
  9 # addresses (NOT host or domain names) for the portmapper, as well as for
 14 sshd: ALL: ALLOW
~
~
~
~
~
~
~
~
"/etc/hosts.allow" 14L, 621C записано
13:21:02
#ls -l /etc/ssh/
итого 152
-rw-r--r-- 1 root root 125749 Фев 28 03:37 moduli
-rw-r--r-- 1 root root   1616 Фев 28 03:37 ssh_config
-rw-r--r-- 1 root root   2453 Апр 13 01:08 sshd_config
-rw------- 1 root root    672 Апр 13 01:08 ssh_host_dsa_key
-rw-r--r-- 1 root root    602 Апр 13 01:08 ssh_host_dsa_key.pub
-rw------- 1 root root   1675 Апр 13 01:08 ssh_host_rsa_key
-rw-r--r-- 1 root root    394 Апр 13 01:08 ssh_host_rsa_key.pub
13:21:23
#man ssh-keygen
/dev/pts/4
13:21:32
#ssh 192.168.16.4
ssh_exchange_identification: Connection closed by remote host
13:21:55
#ssh 192.168.16.4
The authenticity of host '192.168.16.4 (192.168.16.4)' can't be established.
DSA key fingerprint is c3:63:ba:ce:d2:fb:24:74:ae:a6:7a:4c:36:89:32:68.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.16.4' (DSA) to the list of known hosts.
Write failed: Broken pipe
/dev/pts/2
13:22:00
#vim /etc/hosts.deny
13:22:12
#~
exit
root@debian1:~# exit
logout
Connection to 192.168.16.1 closed.
13:22:26
#ssh-keygen -l -f /etc/ssh/ssh
ssh_config            ssh_host_dsa_key      ssh_host_rsa_key
sshd_config           ssh_host_dsa_key.pub  ssh_host_rsa_key.pub
13:22:26
#ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub
1024 c3:63:ba:ce:d2:fb:24:74:ae:a6:7a:4c:36:89:32:68 /etc/ssh/ssh_host_dsa_key.pub (DSA)
13:25:18
#cd /etc/ss
ssh/ ssl/
13:25:18
#cd /etc/ssh/

13:25:28
#ls
moduli      sshd_config       ssh_host_dsa_key.pub  ssh_host_rsa_key.pub
ssh_config  ssh_host_dsa_key  ssh_host_rsa_key
13:25:29
#echo *dsa*
ssh_host_dsa_key ssh_host_dsa_key.pub
/dev/pts/4
13:25:30
#ssh 192.168.16.4
root@192.168.16.4's password:
/dev/pts/2
13:25:37
#mv *dsa*{,.orig}
mv: указанная цель `*dsa*.orig' не является каталогом
/dev/pts/4
13:25:39
#vim .ssh/known_hosts
/dev/pts/2
13:25:49
#mv -v *dsa*{,.orig}
mv: указанная цель `*dsa*.orig' не является каталогом
13:25:53
#mv -v *dsa*{,orig}
mv: указанная цель `*dsa*orig' не является каталогом
/dev/pts/4
13:25:55
#ssh 192.168.16.4
The authenticity of host '192.168.16.4 (192.168.16.4)' can't be established.
DSA key fingerprint is c3:63:ba:ce:d2:fb:24:74:ae:a6:7a:4c:36:89:32:68.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.16.4' (DSA) to the list of known hosts.
root@192.168.16.4's password:
/dev/pts/2
13:25:56
#ls
moduli      sshd_config       ssh_host_dsa_key.pub  ssh_host_rsa_key.pub
ssh_config  ssh_host_dsa_key  ssh_host_rsa_key
13:25:58
#mv ssh_host_dsa_key
ssh_host_dsa_key      ssh_host_dsa_key.pub
13:25:58
#mv ssh_host_dsa_key{,.orig}

/dev/pts/4
13:26:01
#ssh 192.168.16.4
root@192.168.16.4's password:

Файлы

  • -n
  • /etc/passwd
  • -n
    >
         1  USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
         2  root         1  0.0  0.1   2040   692 ?        Ss   09:50   0:00 init [2]
         3  root         2  0.0  0.0      0     0 ?        S<   09:50   0:00 [kthreadd]
         4  root         3  0.0  0.0      0     0 ?        S<   09:50   0:00 [migration/0]
         5  root         4  0.0  0.0      0     0 ?        S<   09:50   0:00 [ksoftirqd/0]
         6  root         5  0.0  0.0      0     0 ?        S<   09:50   0:00 [watchdog/0]
         7  root         6  0.0  0.0      0     0 ?        S<   09:50   0:00 [events/0]
         8  root         7  0.0  0.0      0     0 ?        S<   09:50   0:00 [khelper]
         9  root        19  0.0  0.0      0     0 ?        S<   09:50   0:00 [xenwatch]
        10  root        20  0.0  0.0      0     0 ?        S<   09:50   0:00 [xenbus]
        11  root        50  0.0  0.0      0     0 ?        S<   09:50   0:00 [kblockd/0]
        12  root        60  0.0  0.0      0     0 ?        S<   09:50   0:00 [kseriod]
        13  root        91  0.0  0.0      0     0 ?        S    09:50   0:00 [pdflush]
        14  root        93  0.0  0.0      0     0 ?        S<   09:50   0:00 [kswapd0]
        15  root        94  0.0  0.0      0     0 ?        S<   09:50   0:00 [aio/0]
        16  root       217  0.0  0.0      0     0 ?        S<   09:50   0:00 [net_accel/0]
        17  root       511  0.0  0.0      0     0 ?        S<   09:50   0:00 [kjournald]
        18  root       568  0.0  0.1   2436   980 ?        S<s  09:50   0:00 udevd --daemon
        19  root       597  0.0  0.1   2432   916 ?        S<   09:50   0:00 udevd --daemon
        20  root       598  0.0  0.1   2432   908 ?        S<   09:50   0:00 udevd --daemon
        21  root       944  0.0  0.2  27296  1380 ?        Sl   09:50   0:00 /usr/sbin/rsyslogd -c4
        22  root       975  0.0  0.1   5296   796 ?        Ss   09:50   0:00 /usr/sbin/cron
        23  101        985  0.0  0.1   2580  1012 ?        Ss   09:50   0:00 /usr/bin/dbus-daemon --system
        24  root      1000  0.0  0.1   5468   888 ?        Ss   09:50   0:00 /usr/sbin/sshd
        25  root      1011  0.0  0.3  18076  1832 ?        Ss   09:50   0:00 /usr/sbin/gdm
        26  root      1017  0.0  0.5  18448  3492 ?        S    09:50   0:00 /usr/sbin/gdm
        27  root      1026  1.2  3.3  25936 19968 ?        S    09:50   2:11 /usr/bin/Xvnc :0 -geometry 1024x768 -depth 24 -SecurityTypes None -auth /var/lib/gdm/:0.Xauth -nolisten tcp
        28  root      1058  0.0  0.0   1712   536 hvc0     Ss+  09:51   0:00 /sbin/getty 38400 hvc0
        29  root      1059  0.0  0.0   1712   540 tty2     Ss+  09:51   0:00 /sbin/getty 38400 tty2
        30  root      1060  0.0  0.0   1712   540 tty3     Ss+  09:51   0:00 /sbin/getty 38400 tty3
        31  root      1061  0.0  0.0   1712   540 tty4     Ss+  09:51   0:00 /sbin/getty 38400 tty4
        32  root      1062  0.0  0.0   1712   536 tty5     Ss+  09:51   0:00 /sbin/getty 38400 tty5
        33  root      1063  0.0  0.0   1712   544 tty6     Ss+  09:51   0:00 /sbin/getty 38400 tty6
        34  user      1077  0.0  0.4  18132  2572 ?        Sl   09:57   0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
        35  root      1080  0.0  0.4  17128  2948 ?        Sl   09:57   0:00 /usr/sbin/console-kit-daemon --no-daemon
        36  user      1152  0.0  0.8  12128  4812 ?        Rs   09:57   0:03 fluxbox
        37  user      1191  0.0  0.0   3232   328 ?        Ss   09:58   0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/startfluxbox
        38  user      1194  0.0  0.1   3296   720 ?        S    09:58   0:00 /usr/bin/dbus-launch --exit-with-session /usr/bin/startfluxbox
        39  user      1195  0.0  0.1   2580   796 ?        Ss   09:58   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 8 --session
        40  user      1219  0.8 12.7 228752 75468 ?        Ssl  09:58   1:20 /usr/lib/iceweasel/firefox-bin
        41  user      1224  0.0  0.6   8868  3700 ?        S    09:58   0:00 /usr/lib/libgconf2-4/gconfd-2
        42  user      1231  0.0  0.3   8052  2220 ?        S    09:58   0:00 /usr/lib/gvfs/gvfsd
        43  user      1268  0.0  0.5  10188  3500 ?        Ss   10:08   0:02 xterm -class UXTerm -title uxterm -u8
        44  user      1272  0.0  0.4   6952  2772 pts/0    Ss   10:08   0:00 bash
        45  root      1282  0.0  0.2   5928  1556 pts/0    S    10:09   0:00 su -
        46  root      1291  0.0  0.2   5952  1564 pts/0    S+   10:09   0:00 -su
        47  root      1293 43.3  1.7  15640 10488 ?        Rs   10:09  67:19 l3-agent
        48  root      1294  0.0  0.1   4904   724 pts/0    S+   10:09   0:00 script -f -c l3script -q /root/.lilalo//1241974283044881-1276585744.script
        49  root      1325  0.0  0.0   4908   480 pts/0    S+   10:09   0:00 script -f -c l3script -q /root/.lilalo//1241974283044881-1276585744.script
        50  root      1326  0.0  0.3   6104  1900 pts/1    Ss   10:09   0:00 l3script
        51  root      1426  0.0  0.1   5800  1008 pts/1    S+   10:10   0:00 screen
        52  root      1427  0.0  0.2   6224  1648 ?        Ss   10:10   0:01 SCREEN
        53  root      1428  0.0  0.3   6052  1792 pts/2    Ss   10:10   0:00 /bin/bash
        54  root      1429  0.0  0.1   4904   728 pts/2    S+   10:10   0:00 script -f -c l3script -q /root/.lilalo//21162121612789724773-1276585849.script
        55  root      1460  0.0  0.0   4908   484 pts/2    S+   10:10   0:00 script -f -c l3script -q /root/.lilalo//21162121612789724773-1276585849.script
        56  root      1461  0.0  0.5   7196  3056 pts/3    Ss   10:10   0:01 l3script
        57  root      1482  0.0  0.3   6052  1788 pts/4    Ss   10:10   0:00 /bin/bash
        58  root      1483  0.0  0.1   4904   728 pts/4    S+   10:10   0:00 script -f -c l3script -q /root/.lilalo//24893324661683728532-1276585853.script
        59  root      1514  0.0  0.0   4908   484 pts/4    S+   10:10   0:00 script -f -c l3script -q /root/.lilalo//24893324661683728532-1276585853.script
        60  root      1515  0.0  0.3   6124  1876 pts/5    Ss   10:10   0:00 l3script
        61  root      1536  0.0  0.3   5092  2284 pts/5    S+   10:10   0:00 ssh 192.168.16.24
        62  root      1950  0.0  0.0   2184   272 ?        Ss   10:22   0:00 /usr/sbin/popa3d -D
        63  105       2593  0.0  0.1   6516   948 ?        Ss   10:22   0:00 /usr/sbin/exim4 -bd -q30m
        64  user      3562  0.7  1.8  16420 11200 ?        Ss   10:45   0:52 l3-agent
        65  root      4845  0.0  0.1   2408   888 ?        Ss   11:14   0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
        66  root      4947  0.0  0.0      0     0 ?        S    11:16   0:00 [pdflush]
        67  root      6033  0.0  1.5  13148  9144 ?        Ss   11:18   0:00 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
        68  root      6827  0.0  0.1   5384  1032 pts/3    R+   12:44   0:00 ps axu
        69  root      6828  0.0  0.0   4876   492 pts/3    S+   12:44   0:00 cat -n
    
    /etc/passwd
    >
    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
    uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
    proxy:x:13:13:proxy:/bin:/bin/sh
    www-data:x:33:33:www-data:/var/www:/bin/sh
    backup:x:34:34:backup:/var/backups:/bin/sh
    list:x:38:38:Mailing List Manager:/var/list:/bin/sh
    irc:x:39:39:ircd:/var/run/ircd:/bin/sh
    gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
    nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
    libuuid:x:100:101::/var/lib/libuuid:/bin/sh
    messagebus:x:101:103::/var/run/dbus:/bin/false
    gdm:x:102:105:Gnome Display Manager:/var/lib/gdm:/bin/false
    user:x:1000:1000::/home/user:/bin/bash
    sshd:x:103:65534::/var/run/sshd:/usr/sbin/nologin
    popa3d:x:104:108::/var/lib/popa3d:/bin/false
    Debian-exim:x:105:109::/var/spool/exim4:/bin/false
    

    Статистика

    Время первой команды журнала11:18:08 2010- 6-15
    Время последней команды журнала13:26:01 2010- 6-15
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %16.83
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 1.15
    Количество командных строк в единицу времени, команда/мин 1.46
    Частота использования команд
    vim14|============| 12.28%
    ps13|===========| 11.40%
    ls10|========| 8.77%
    ssh10|========| 8.77%
    grep6|=====| 5.26%
    sort5|====| 4.39%
    cat5|====| 4.39%
    mv5|====| 4.39%
    less4|===| 3.51%
    names3|==| 2.63%
    PAGER=less3|==| 2.63%
    ~3|==| 2.63%
    nc3|==| 2.63%
    exit3|==| 2.63%
    man2|=| 1.75%
    cd2|=| 1.75%
    /usr/local/etc/rc.d/xinetd2|=| 1.75%
    ssh-keygen2|=| 1.75%
    file2|=| 1.75%
    sorted2|=| 1.75%
    zless1|| 0.88%
    DISPLAY=192.168.16.218:01|| 0.88%
    :q!1|| 0.88%
    sshd_enable="yes1|| 0.88%
    !1|| 0.88%
    echo1|| 0.88%
    xcon1|| 0.88%
    /etc/rc.conf1|| 0.88%
    >1|| 0.88%
    includedir1|| 0.88%
    PAGER=cat1|| 0.88%
    xconv1|| 0.88%
    xinetd1|| 0.88%
    /etc/inetd.conf1|| 0.88%
    LANG=C1|| 0.88%
    ____
    *) Интервалы неактивности длительностью 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$