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

Содержание

Журнал

Понедельник (03/10/08)

/dev/ttyp1
18:31:42
#chmod a+x /usr/local/bin/l3-agent

18:31:42
#chmod a+x /usr/local/bin/l3-agent

18:31:58
#. /usr/local/bin/l3-agent
bash: use: command not found
bash: use: command not found
bash: use: command not found
bash: use: command not found
bash: use: command not found
bash: use: command not found
bash: use: command not found
bash: use: command not found
bash: our: command not found
bash: our: command not found
...
bash: sub: command not found
bash: sub: command not found
bash: sub: command not found
bash: sub: command not found
bash: sub: command not found
bash: sub: command not found
bash: sub: command not found
bash: sub: command not found
bash: /usr/local/bin/l3-agent: line 54: syntax error near unexpected token `$path'
bash: /usr/local/bin/l3-agent: line 54: `    for my $path (@pathes) {'
18:31:58
#. /usr/local/bin/l3-agent
bash: use: command not found
bash: use: command not found
bash: use: command not found
bash: use: command not found
bash: use: command not found
bash: use: command not found
bash: use: command not found
bash: use: command not found
bash: our: command not found
bash: our: command not found
...
bash: sub: command not found
bash: sub: command not found
bash: sub: command not found
bash: sub: command not found
bash: sub: command not found
bash: sub: command not found
bash: sub: command not found
bash: sub: command not found
bash: /usr/local/bin/l3-agent: line 54: syntax error near unexpected token `$path'
bash: /usr/local/bin/l3-agent: line 54: `    for my $path (@pathes) {'
18:32:01
#. .bash_profile

18:32:04
#ssh 127.0.0.1 -l user
[root@fbsd4:~]# . .bash_profile
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
DSA key fingerprint is 87:e7:cb:b2:03:ad:bc:da:b2:8a:6f:0f:ad:7c:8f:a2.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '127.0.0.1' (DSA) to the list of known hosts.
Password:
Last login: Fri Mar  7 16:39:59 2008
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 7.0-CURRENT-200710 (GENERIC) #0: Thu Oct 11 06:53:50 UTC 2007
...
   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.
18:32:04
#ssh 127.0.0.1 -l user
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
DSA key fingerprint is 87:e7:cb:b2:03:ad:bc:da:b2:8a:6f:0f:ad:7c:8f:a2.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '127.0.0.1' (DSA) to the list of known hosts.
Password:
Last login: Fri Mar  7 16:39:59 2008
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.
FreeBSD 7.0-CURRENT-200710 (GENERIC) #0: Thu Oct 11 06:53:50 UTC 2007
Welcome to FreeBSD!
...
   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.
18:32:16
$id
uid=1001(user) gid=0(wheel) groups=0(wheel)
18:32:16
$id
uid=1001(user) gid=0(wheel) groups=0(wheel)
18:32:19
$ls -l
total 2976
-rw-------  1 user  wheel  3018752 Mar  7 16:40 fluxbox.core
18:32:29
$l3-agent
[user@fbsd4:~]$ ls -l
total 2976
-rw-------  1 user  wheel  3018752 Mar  7 16:40 fluxbox.core
l3-agent is already running: pid=10753; pidfile=/home/user/.lilalo/l3-agent.pid
18:32:29
$l3-agent
l3-agent is already running: pid=10753; pidfile=/home/user/.lilalo/l3-agent.pid
18:32:35
$exit
exit
Connection to 127.0.0.1 closed.
18:32:52
#w
[user@fbsd4:~]$ exit
exit
Connection to 127.0.0.1 closed.
 4:32PM  up 2 days, 22:39, 1 user, load averages: 0.00, 0.00, 0.00
USER             TTY      FROM              LOGIN@  IDLE WHAT
root             p1       debian            4:30PM     - script -t 0 -q /root/.lilalo//18178185672099616229-120
18:32:52
#w
 4:32PM  up 2 days, 22:39, 1 user, load averages: 0.00, 0.00, 0.00
USER             TTY      FROM              LOGIN@  IDLE WHAT
root             p1       debian            4:30PM     - script -t 0 -q /root/.lilalo//18178185672099616229-120

Вторник (03/11/08)

/dev/ttyp3
09:42:36
#screen -x
прошло >3 часов
/dev/ttyp3
12:47:36
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:16:3e:03:00:c5
        inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
12:47:36
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:16:3e:03:00:c5
        inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
12:47:42
#mc
прошло 113 минут
14:40:58
#cd /etc
[root@fbsd4:~]# mc
bash: mc: command not found
14:40:58
#cd /etc

14:41:03
#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
cached.conf             mail.rc                 rc.d
crontab                 make.conf               rc.firewall
csh.cshrc               manpath.config          rc.firewall6
csh.login               manpath.config.bak      rc.initdiskless
...
host.conf               pam.d                   spwd.db
hostid                  passwd                  ssh
hosts                   pccard_ether            ssl
hosts.allow             periodic                sysctl.conf
hosts.equiv             pf.conf                 syslog.conf
hosts.lpd               pf.os                   termcap
inetd.conf              phones                  ttys
isdn                    portsnap.conf           zfs
libalias.conf           ppp
lilalo                  printcap
14:41:03
#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
cached.conf             mail.rc                 rc.d
crontab                 make.conf               rc.firewall
csh.cshrc               manpath.config          rc.firewall6
csh.login               manpath.config.bak      rc.initdiskless
...
host.conf               pam.d                   spwd.db
hostid                  passwd                  ssh
hosts                   pccard_ether            ssl
hosts.allow             periodic                sysctl.conf
hosts.equiv             pf.conf                 syslog.conf
hosts.lpd               pf.os                   termcap
inetd.conf              phones                  ttys
isdn                    portsnap.conf           zfs
libalias.conf           ppp
lilalo                  printcap
14:41:06
#ee ntp.conf
14:41:29
#ls
gss                     opiekeys                snmpd.config
host.conf               pam.d                   spwd.db
hostid                  passwd                  ssh
hosts                   pccard_ether            ssl
hosts.allow             periodic                sysctl.conf
hosts.equiv             pf.conf                 syslog.conf
hosts.lpd               pf.os                   termcap
inetd.conf              phones                  ttys
isdn                    portsnap.conf           zfs
libalias.conf           ppp
lilalo                  printcap
14:41:29
#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
cached.conf             mail.rc                 rc.d
crontab                 make.conf               rc.firewall
csh.cshrc               manpath.config          rc.firewall6
csh.login               manpath.config.bak      rc.initdiskless
...
host.conf               pam.d                   spwd.db
hostid                  passwd                  ssh
hosts                   pccard_ether            ssl
hosts.allow             periodic                sysctl.conf
hosts.equiv             pf.conf                 syslog.conf
hosts.lpd               pf.os                   termcap
inetd.conf              phones                  ttys
isdn                    portsnap.conf           zfs
libalias.conf           ppp
lilalo                  printcap
14:41:31
#cd ntp

14:41:38
#ls
[root@fbsd4:etc]# cd ntp
14:41:38
#ls

14:41:40
#cd ..

14:41:40
#cd ..

14:41:51
#ee resolve.conf
14:42:16
#ls
gss                     opiekeys                snmpd.config
host.conf               pam.d                   spwd.db
hostid                  passwd                  ssh
hosts                   pccard_ether            ssl
hosts.allow             periodic                sysctl.conf
hosts.equiv             pf.conf                 syslog.conf
hosts.lpd               pf.os                   termcap
inetd.conf              phones                  ttys
isdn                    portsnap.conf           zfs
libalias.conf           ppp
lilalo                  printcap
14:42:16
#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
cached.conf             mail.rc                 rc.d
crontab                 make.conf               rc.firewall
csh.cshrc               manpath.config          rc.firewall6
csh.login               manpath.config.bak      rc.initdiskless
...
host.conf               pam.d                   spwd.db
hostid                  passwd                  ssh
hosts                   pccard_ether            ssl
hosts.allow             periodic                sysctl.conf
hosts.equiv             pf.conf                 syslog.conf
hosts.lpd               pf.os                   termcap
inetd.conf              phones                  ttys
isdn                    portsnap.conf           zfs
libalias.conf           ppp
lilalo                  printcap
14:42:18
#ee resolv.conf
14:42:37
#ee rc.conf
--- /tmp/l3-saved-13605.11173.26569	2008-03-11 12:42:41.000000000 +0000
+++ rc.conf	2008-03-11 12:43:32.000000000 +0000
@@ -4,6 +4,7 @@
 # Enable network daemons for user convenience.
 # Please make all changes to this file, not to /etc/defaults/rc.conf.
 # This file now contains just the overrides from /etc/defaults/rc.conf.
+
 font8x14="NO"
 font8x16="NO"
 font8x8="NO"
@@ -11,6 +12,7 @@
 sshd_enable="YES"
 inetd_enable="YES"
 #gdm_enable="YES"
+
 ifconfig_re0="inet 192.168.16.24  netmask 255.255.255.0"
 defaultrouter="192.168.16.254"
 hostname="fbsd4.unix.nt"
14:42:37
#ee rc.conf
14:43:32
#ee
14:43:32
#ee
14:43:32
#ee
14:43:32
#ee
14:43:32
#ee
14:43:32
#ee
14:43:32
#iifconfig
bash: iifconfig: command not found
14:46:34
#ifconfig
[root@fbsd4:etc]# iifconfig
bash: iifconfig: command not found
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:16:3e:03:00:c5
        inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
14:46:34
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:16:3e:03:00:c5
        inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
14:46:37
# ee ee ee ee ee eeifconfig
прошло 42 минуты
15:29:33
#cat -n ifconfig
[root@fbsd4:etc]#  ee ee ee ee ee eeifconfig
cat: ifconfig: No such file or directory
15:29:33
#cat -n ifconfig
cat: ifconfig: No such file or directory
15:29:41
#cat ifconfig
cat: ifconfig: No such file or directory
15:29:41
#cat ifconfig
cat: ifconfig: No such file or directory
15:29:48
#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
cached.conf             mail.rc                 rc.d
crontab                 make.conf               rc.firewall
csh.cshrc               manpath.config          rc.firewall6
csh.login               manpath.config.bak      rc.initdiskless
...
host.conf               pam.d                   spwd.db
hostid                  passwd                  ssh
hosts                   pccard_ether            ssl
hosts.allow             periodic                sysctl.conf
hosts.equiv             pf.conf                 syslog.conf
hosts.lpd               pf.os                   termcap
inetd.conf              phones                  ttys
isdn                    portsnap.conf           zfs
libalias.conf           ppp
lilalo                  printcap
15:29:48
#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
cached.conf             mail.rc                 rc.d
crontab                 make.conf               rc.firewall
csh.cshrc               manpath.config          rc.firewall6
csh.login               manpath.config.bak      rc.initdiskless
...
host.conf               pam.d                   spwd.db
hostid                  passwd                  ssh
hosts                   pccard_ether            ssl
hosts.allow             periodic                sysctl.conf
hosts.equiv             pf.conf                 syslog.conf
hosts.lpd               pf.os                   termcap
inetd.conf              phones                  ttys
isdn                    portsnap.conf           zfs
libalias.conf           ppp
lilalo                  printcap
15:29:54
#cat -n log.conf
     1  # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $
     2  #
     3  #       Spaces ARE valid field separators in this file. However,
     4  #       other *nix-like systems still insist on using tabs as field
     5  #       separators. If you are sharing this file between systems, you
     6  #       may want to use only tabs as field separators here.
     7  #       Consult the syslog.conf(5) manpage.
     8  *.err;kern.warning;auth.notice;mail.crit                /dev/console
     9  *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
    10  security.*                                      /var/log/security
...
    23  # uncomment this to enable logging to a remote loghost named loghost
    24  #*.*                                            @loghost
    25  # uncomment these if you're running inn
    26  # news.crit                                     /var/log/news/news.crit
    27  # news.err                                      /var/log/news/news.err
    28  # news.notice                                   /var/log/news/news.notice
    29  !startslip
    30  *.*                                             /var/log/slip.log
    31  !ppp
    32  *.*                                             /var/log/ppp.log
15:30:07
#cat -bsyslog.conf
[root@fbsd4:etc]# cat -n log.conf
     1  # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $
     2  #
     3  #       Spaces ARE valid field separators in this file. However,
     4  #       other *nix-like systems still insist on using tabs as field
     5  #       separators. If you are sharing this file between systems, you
     6  #       may want to use only tabs as field separators here.
     7  #       Consult the syslog.conf(5) manpage.
     8  *.err;kern.warning;auth.notice;mail.crit                /dev/console
     9  *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
...
    23  # uncomment this to enable logging to a remote loghost named loghost
    24  #*.*                                            @loghost
    25  # uncomment these if you're running inn
    26  # news.crit                                     /var/log/news/news.crit
    27  # news.err                                      /var/log/news/news.err
    28  # news.notice                                   /var/log/news/news.notice
    29  !startslip
    30  *.*                                             /var/log/slip.log
    31  !ppp
    32  *.*                                             /var/log/ppp.log
15:30:07
#cat -bsyslog.conf
     1  # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $
     2  #
     3  #       Spaces ARE valid field separators in this file. However,
     4  #       other *nix-like systems still insist on using tabs as field
     5  #       separators. If you are sharing this file between systems, you
     6  #       may want to use only tabs as field separators here.
     7  #       Consult the syslog.conf(5) manpage.
     8  *.err;kern.warning;auth.notice;mail.crit                /dev/console
     9  *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
    10  security.*                                      /var/log/security
...
    23  # uncomment this to enable logging to a remote loghost named loghost
    24  #*.*                                            @loghost
    25  # uncomment these if you're running inn
    26  # news.crit                                     /var/log/news/news.crit
    27  # news.err                                      /var/log/news/news.err
    28  # news.notice                                   /var/log/news/news.notice
    29  !startslip
    30  *.*                                             /var/log/slip.log
    31  !ppp
    32  *.*                                             /var/log/ppp.log
15:30:13
#cat -b syslog.conf
     1  # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $
     2  #
     3  #       Spaces ARE valid field separators in this file. However,
     4  #       other *nix-like systems still insist on using tabs as field
     5  #       separators. If you are sharing this file between systems, you
     6  #       may want to use only tabs as field separators here.
     7  #       Consult the syslog.conf(5) manpage.
     8  *.err;kern.warning;auth.notice;mail.crit                /dev/console
     9  *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
    10  security.*                                      /var/log/security
...
    23  # uncomment this to enable logging to a remote loghost named loghost
    24  #*.*                                            @loghost
    25  # uncomment these if you're running inn
    26  # news.crit                                     /var/log/news/news.crit
    27  # news.err                                      /var/log/news/news.err
    28  # news.notice                                   /var/log/news/news.notice
    29  !startslip
    30  *.*                                             /var/log/slip.log
    31  !ppp
    32  *.*                                             /var/log/ppp.log
15:30:13
#cat -b syslog.conf
     1  # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $
     2  #
     3  #       Spaces ARE valid field separators in this file. However,
     4  #       other *nix-like systems still insist on using tabs as field
     5  #       separators. If you are sharing this file between systems, you
     6  #       may want to use only tabs as field separators here.
     7  #       Consult the syslog.conf(5) manpage.
     8  *.err;kern.warning;auth.notice;mail.crit                /dev/console
     9  *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
    10  security.*                                      /var/log/security
...
    23  # uncomment this to enable logging to a remote loghost named loghost
    24  #*.*                                            @loghost
    25  # uncomment these if you're running inn
    26  # news.crit                                     /var/log/news/news.crit
    27  # news.err                                      /var/log/news/news.err
    28  # news.notice                                   /var/log/news/news.notice
    29  !startslip
    30  *.*                                             /var/log/slip.log
    31  !ppp
    32  *.*                                             /var/log/ppp.log
15:30:15
#cat -b syslog.conf
     1  # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $
     2  #
     3  #       Spaces ARE valid field separators in this file. However,
     4  #       other *nix-like systems still insist on using tabs as field
     5  #       separators. If you are sharing this file between systems, you
     6  #       may want to use only tabs as field separators here.
     7  #       Consult the syslog.conf(5) manpage.
     8  *.err;kern.warning;auth.notice;mail.crit                /dev/console
     9  *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
    10  security.*                                      /var/log/security
...
    23  # uncomment this to enable logging to a remote loghost named loghost
    24  #*.*                                            @loghost
    25  # uncomment these if you're running inn
    26  # news.crit                                     /var/log/news/news.crit
    27  # news.err                                      /var/log/news/news.err
    28  # news.notice                                   /var/log/news/news.notice
    29  !startslip
    30  *.*                                             /var/log/slip.log
    31  !ppp
    32  *.*                                             /var/log/ppp.log
15:30:16
#cat -n syslog.conf
[root@fbsd4:etc]# cat -b syslog.conf
     1  # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $
     2  #
     3  #       Spaces ARE valid field separators in this file. However,
     4  #       other *nix-like systems still insist on using tabs as field
     5  #       separators. If you are sharing this file between systems, you
     6  #       may want to use only tabs as field separators here.
     7  #       Consult the syslog.conf(5) manpage.
     8  *.err;kern.warning;auth.notice;mail.crit                /dev/console
     9  *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
...
    23  # uncomment this to enable logging to a remote loghost named loghost
    24  #*.*                                            @loghost
    25  # uncomment these if you're running inn
    26  # news.crit                                     /var/log/news/news.crit
    27  # news.err                                      /var/log/news/news.err
    28  # news.notice                                   /var/log/news/news.notice
    29  !startslip
    30  *.*                                             /var/log/slip.log
    31  !ppp
    32  *.*                                             /var/log/ppp.log
15:30:16
#cat -n syslog.conf
     1  # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $
     2  #
     3  #       Spaces ARE valid field separators in this file. However,
     4  #       other *nix-like systems still insist on using tabs as field
     5  #       separators. If you are sharing this file between systems, you
     6  #       may want to use only tabs as field separators here.
     7  #       Consult the syslog.conf(5) manpage.
     8  *.err;kern.warning;auth.notice;mail.crit                /dev/console
     9  *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
    10  security.*                                      /var/log/security
...
    23  # uncomment this to enable logging to a remote loghost named loghost
    24  #*.*                                            @loghost
    25  # uncomment these if you're running inn
    26  # news.crit                                     /var/log/news/news.crit
    27  # news.err                                      /var/log/news/news.err
    28  # news.notice                                   /var/log/news/news.notice
    29  !startslip
    30  *.*                                             /var/log/slip.log
    31  !ppp
    32  *.*                                             /var/log/ppp.log
15:30:19
#less g.conf
15:31:00
#cd /
*.err;kern.warning;auth.notice;mail.crit                /dev/console
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/message
s
# $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $
#
[root@fbsd4:etc]# less g.conf
# $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $
#
#       Spaces ARE valid field separators in this file. However,
#       other *nix-like systems still insist on using tabs as field
...
*.*                                             /var/log/slip.log
# uncomment this to log all writes to /dev/console to /var/log/console.log
!ppp
#console.info                                   /var/log/console.log
*.*                                             /var/log/ppp.log
# uncomment this to enable logging of all log messages to /var/log/all.log
# touch /var/log/all.log and chmod it to mode 600 before it will work
#*.*                                            /var/log/all.log
# uncomment this to enable logging to a remote loghost named loghost
#*.*                                            @loghost
15:31:00
#cd /

15:33:10
#ls
.cshrc          boot            etc             media           sbin
.profile        cdrom           home            mfsroot.gz      sys
.snap           compat          kernel          mnt             tmp
COPYRIGHT       dev             kernel_f        proc            usr
Xvnc.core       dist            lib             rescue          var
bin             entropy         libexec         root            xdm.core
15:33:10
#ls
.cshrc          boot            etc             media           sbin
.profile        cdrom           home            mfsroot.gz      sys
.snap           compat          kernel          mnt             tmp
COPYRIGHT       dev             kernel_f        proc            usr
Xvnc.core       dist            lib             rescue          var
bin             entropy         libexec         root            xdm.core
15:33:13
#cd ~

15:33:18
#ls
[root@fbsd4:/]# cd ~
.ICEauthority                           .profile
.XSM-Default                            .prxbnzRcu
.XSMlock-Default                        .ssh
.Xauthority                             .twm2U23SP
.bash_history                           .viminfo
.bash_profile                           .vimrc
.bashrc                                 .xinitrc
.cshrc                                  .xsession
.dmrc                                   .xsession-errors
...
.gconfd                                 fluxbox.core
.gnome2                                 grub-0.95
.gnome2_private                         grub-0.95-freebsd.diff
.history                                grub-0.95-freebsd.diff?file_id=1886
.k5login                                grub-0.95.tar.gz
.l3rc                                   install
.lesshst                                kfreebsd.diff
.lilalo                                 kfreebsd.diff?file_id=9830
.login                                  mbox
.mozilla                                mymbr.img
15:33:18
#ls
.ICEauthority                           .profile
.XSM-Default                            .prxbnzRcu
.XSMlock-Default                        .ssh
.Xauthority                             .twm2U23SP
.bash_history                           .viminfo
.bash_profile                           .vimrc
.bashrc                                 .xinitrc
.cshrc                                  .xsession
.dmrc                                   .xsession-errors
.fluxbox                                .xsmUpMmYE
.gconf                                  .xsmrni9F1
.gconfd                                 fluxbox.core
.gnome2                                 grub-0.95
.gnome2_private                         grub-0.95-freebsd.diff
.history                                grub-0.95-freebsd.diff?file_id=1886
.k5login                                grub-0.95.tar.gz
.l3rc                                   install
.lesshst                                kfreebsd.diff
.lilalo                                 kfreebsd.diff?file_id=9830
.login                                  mbox
.mozilla                                mymbr.img
15:33:20
#pwd
/root
15:33:20
#pwd
/root
15:33:27
#ls -l
total 5480
-rw-------  1 root  wheel      966 Dec 23 11:13 .ICEauthority
-rw-r--r--  1 root  wheel       45 Dec 23 10:27 .XSM-Default
-r--r--r--  1 root  wheel      102 Dec 23 11:11 .XSMlock-Default
-rw-------  1 root  wheel      392 Mar 11 07:36 .Xauthority
-rw-------  1 root  wheel    11954 Mar 11 08:18 .bash_history
-rw-r--r--  1 root  wheel       19 Mar 10 16:31 .bash_profile
-rw-r--r--  1 root  wheel      134 Mar 10 16:30 .bashrc
-rw-r--r--  2 root  wheel      786 Oct 11 04:14 .cshrc
-rw-------  1 root  wheel       26 Dec 23 08:54 .dmrc
...
-rw-------  1 root  wheel  4390912 Dec 22 13:36 fluxbox.core
drwxrwxrwx  9 501   501       1024 Feb  6 22:23 grub-0.95
-rw-r--r--  1 root  wheel    19912 Feb  6 23:58 grub-0.95-freebsd.diff
-rw-r--r--  1 root  wheel    19979 Feb  6 23:58 grub-0.95-freebsd.diff?file_id=1886
-rw-r--r--  1 root  wheel   976017 Jun 13  2004 grub-0.95.tar.gz
-rw-r--r--  1 root  wheel     5296 Mar 10 16:30 install
-rw-r--r--  1 root  wheel    30419 Jan 19 15:14 kfreebsd.diff
-rw-r--r--  1 root  wheel    30419 Feb  6 23:55 kfreebsd.diff?file_id=9830
-rw-------  1 root  wheel    10065 Feb  7 08:29 mbox
-rw-r--r--  1 root  wheel      512 Jan 18 22:36 mymbr.img
15:33:52
#ls -lF
[root@fbsd4:~]# ls -l
total 5480
-rw-------  1 root  wheel      966 Dec 23 11:13 .ICEauthority
-rw-r--r--  1 root  wheel       45 Dec 23 10:27 .XSM-Default
-r--r--r--  1 root  wheel      102 Dec 23 11:11 .XSMlock-Default
-rw-------  1 root  wheel      392 Mar 11 07:36 .Xauthority
-rw-------  1 root  wheel    11954 Mar 11 08:18 .bash_history
-rw-r--r--  1 root  wheel       19 Mar 10 16:31 .bash_profile
-rw-r--r--  1 root  wheel      134 Mar 10 16:30 .bashrc
-rw-r--r--  2 root  wheel      786 Oct 11 04:14 .cshrc
...
-rw-------  1 root  wheel  4390912 Dec 22 13:36 fluxbox.core
drwxrwxrwx  9 501   501       1024 Feb  6 22:23 grub-0.95/
-rw-r--r--  1 root  wheel    19912 Feb  6 23:58 grub-0.95-freebsd.diff
-rw-r--r--  1 root  wheel    19979 Feb  6 23:58 grub-0.95-freebsd.diff?file_id=1886
-rw-r--r--  1 root  wheel   976017 Jun 13  2004 grub-0.95.tar.gz
-rw-r--r--  1 root  wheel     5296 Mar 10 16:30 install
-rw-r--r--  1 root  wheel    30419 Jan 19 15:14 kfreebsd.diff
-rw-r--r--  1 root  wheel    30419 Feb  6 23:55 kfreebsd.diff?file_id=9830
-rw-------  1 root  wheel    10065 Feb  7 08:29 mbox
-rw-r--r--  1 root  wheel      512 Jan 18 22:36 mymbr.img
15:33:52
#ls -lF
total 5480
-rw-------  1 root  wheel      966 Dec 23 11:13 .ICEauthority
-rw-r--r--  1 root  wheel       45 Dec 23 10:27 .XSM-Default
-r--r--r--  1 root  wheel      102 Dec 23 11:11 .XSMlock-Default
-rw-------  1 root  wheel      392 Mar 11 07:36 .Xauthority
-rw-------  1 root  wheel    11954 Mar 11 08:18 .bash_history
-rw-r--r--  1 root  wheel       19 Mar 10 16:31 .bash_profile
-rw-r--r--  1 root  wheel      134 Mar 10 16:30 .bashrc
-rw-r--r--  2 root  wheel      786 Oct 11 04:14 .cshrc
-rw-------  1 root  wheel       26 Dec 23 08:54 .dmrc
...
-rw-------  1 root  wheel  4390912 Dec 22 13:36 fluxbox.core
drwxrwxrwx  9 501   501       1024 Feb  6 22:23 grub-0.95/
-rw-r--r--  1 root  wheel    19912 Feb  6 23:58 grub-0.95-freebsd.diff
-rw-r--r--  1 root  wheel    19979 Feb  6 23:58 grub-0.95-freebsd.diff?file_id=1886
-rw-r--r--  1 root  wheel   976017 Jun 13  2004 grub-0.95.tar.gz
-rw-r--r--  1 root  wheel     5296 Mar 10 16:30 install
-rw-r--r--  1 root  wheel    30419 Jan 19 15:14 kfreebsd.diff
-rw-r--r--  1 root  wheel    30419 Feb  6 23:55 kfreebsd.diff?file_id=9830
-rw-------  1 root  wheel    10065 Feb  7 08:29 mbox
-rw-r--r--  1 root  wheel      512 Jan 18 22:36 mymbr.img
15:33:57
#cd tmp
bash: cd: tmp: No such file or directory
15:33:57
#cd tmp
bash: cd: tmp: No such file or directory
15:34:07
#cd /etc

15:34:14
#pwd
[root@fbsd4:~]# cd /etc
/etc
15:34:14
#pwd
/etc
15:34:17
#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
cached.conf             mail.rc                 rc.d
crontab                 make.conf               rc.firewall
csh.cshrc               manpath.config          rc.firewall6
csh.login               manpath.config.bak      rc.initdiskless
...
host.conf               pam.d                   spwd.db
hostid                  passwd                  ssh
hosts                   pccard_ether            ssl
hosts.allow             periodic                sysctl.conf
hosts.equiv             pf.conf                 syslog.conf
hosts.lpd               pf.os                   termcap
inetd.conf              phones                  ttys
isdn                    portsnap.conf           zfs
libalias.conf           ppp
lilalo                  printcap
15:34:17
#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
cached.conf             mail.rc                 rc.d
crontab                 make.conf               rc.firewall
csh.cshrc               manpath.config          rc.firewall6
csh.login               manpath.config.bak      rc.initdiskless
...
host.conf               pam.d                   spwd.db
hostid                  passwd                  ssh
hosts                   pccard_ether            ssl
hosts.allow             periodic                sysctl.conf
hosts.equiv             pf.conf                 syslog.conf
hosts.lpd               pf.os                   termcap
inetd.conf              phones                  ttys
isdn                    portsnap.conf           zfs
libalias.conf           ppp
lilalo                  printcap
15:34:23
#ls -lF
total 542
drwxr-xr-x  2 root  wheel       512 Dec 23 11:55 X11/
lrwxrwxrwx  1 root  wheel        12 Dec 21 20:00 aliases@ -> mail/aliases
-rw-r--r--  1 root  wheel       210 Oct 11 04:14 amd.map
-rw-r--r--  1 root  wheel      1234 Oct 11 04:14 apmd.conf
-rw-r--r--  1 root  wheel       231 Oct 11 04:14 auth.conf
drwxr-xr-x  2 root  wheel       512 Dec 21 20:00 bluetooth/
-rw-r--r--  1 root  wheel       287 Oct 11 04:14 cached.conf
-rw-r--r--  1 root  wheel       737 Oct 11 04:14 crontab
-rw-r--r--  1 root  wheel       108 Oct 11 04:14 csh.cshrc
...
drwxr-xr-x  2 root  wheel       512 Oct 11 04:09 skel/
-rw-r--r--  1 root  wheel      2406 Oct 11 04:14 snmpd.config
-rw-------  1 root  wheel     40960 Dec 23 11:36 spwd.db
drwxr-xr-x  2 root  wheel       512 Dec 22 13:30 ssh/
drwxr-xr-x  2 root  wheel       512 Dec 21 20:00 ssl/
-rw-r--r--  1 root  wheel       390 Dec 23 11:07 sysctl.conf
-rw-r--r--  1 root  wheel      1335 Oct 11 04:14 syslog.conf
lrwxrwxrwx  1 root  wheel        23 Dec 21 20:00 termcap@ -> /usr/share/misc/termcap
-rw-r--r--  1 root  wheel      7654 Dec 23 10:46 ttys
drwxr-xr-x  2 root  wheel       512 Oct 11 04:09 zfs/
15:34:29
#ls -l
-rw-------  1 root  wheel       432 Oct 11 04:14 opieaccess
-rw-------  1 root  wheel         0 Dec 21 21:24 opiekeys
drwxr-xr-x  2 root  wheel       512 Dec 21 20:00 pam.d/
-rw-r--r--  1 root  wheel      1696 Dec 23 11:36 passwd
-rwxr-xr-x  1 root  wheel      2352 Oct 11 04:14 pccard_ether*
drwxr-xr-x  6 root  wheel       512 Oct 11 07:20 periodic/
-rw-r--r--  1 root  wheel      3771 Oct 11 04:14 pf.conf
-rw-r--r--  1 root  wheel     28375 Oct 11 04:14 pf.os
-rw-r--r--  1 root  wheel       233 Oct 11 04:14 phones
-rw-r--r--  1 root  wheel      1363 Oct 11 04:14 portsnap.conf
...
drwxr-xr-x  2 root  wheel       512 Oct 11 04:09 skel
-rw-r--r--  1 root  wheel      2406 Oct 11 04:14 snmpd.config
-rw-------  1 root  wheel     40960 Dec 23 11:36 spwd.db
drwxr-xr-x  2 root  wheel       512 Dec 22 13:30 ssh
drwxr-xr-x  2 root  wheel       512 Dec 21 20:00 ssl
-rw-r--r--  1 root  wheel       390 Dec 23 11:07 sysctl.conf
-rw-r--r--  1 root  wheel      1335 Oct 11 04:14 syslog.conf
lrwxrwxrwx  1 root  wheel        23 Dec 21 20:00 termcap -> /usr/share/misc/termcap
-rw-r--r--  1 root  wheel      7654 Dec 23 10:46 ttys
drwxr-xr-x  2 root  wheel       512 Oct 11 04:09 zfs
15:34:29
#ls -l
total 542
drwxr-xr-x  2 root  wheel       512 Dec 23 11:55 X11
lrwxrwxrwx  1 root  wheel        12 Dec 21 20:00 aliases -> mail/aliases
-rw-r--r--  1 root  wheel       210 Oct 11 04:14 amd.map
-rw-r--r--  1 root  wheel      1234 Oct 11 04:14 apmd.conf
-rw-r--r--  1 root  wheel       231 Oct 11 04:14 auth.conf
drwxr-xr-x  2 root  wheel       512 Dec 21 20:00 bluetooth
-rw-r--r--  1 root  wheel       287 Oct 11 04:14 cached.conf
-rw-r--r--  1 root  wheel       737 Oct 11 04:14 crontab
-rw-r--r--  1 root  wheel       108 Oct 11 04:14 csh.cshrc
...
drwxr-xr-x  2 root  wheel       512 Oct 11 04:09 skel
-rw-r--r--  1 root  wheel      2406 Oct 11 04:14 snmpd.config
-rw-------  1 root  wheel     40960 Dec 23 11:36 spwd.db
drwxr-xr-x  2 root  wheel       512 Dec 22 13:30 ssh
drwxr-xr-x  2 root  wheel       512 Dec 21 20:00 ssl
-rw-r--r--  1 root  wheel       390 Dec 23 11:07 sysctl.conf
-rw-r--r--  1 root  wheel      1335 Oct 11 04:14 syslog.conf
lrwxrwxrwx  1 root  wheel        23 Dec 21 20:00 termcap -> /usr/share/misc/termcap
-rw-r--r--  1 root  wheel      7654 Dec 23 10:46 ttys
drwxr-xr-x  2 root  wheel       512 Oct 11 04:09 zfs
15:34:33
#ls -lF
total 542
drwxr-xr-x  2 root  wheel       512 Dec 23 11:55 X11/
lrwxrwxrwx  1 root  wheel        12 Dec 21 20:00 aliases@ -> mail/aliases
-rw-r--r--  1 root  wheel       210 Oct 11 04:14 amd.map
-rw-r--r--  1 root  wheel      1234 Oct 11 04:14 apmd.conf
-rw-r--r--  1 root  wheel       231 Oct 11 04:14 auth.conf
drwxr-xr-x  2 root  wheel       512 Dec 21 20:00 bluetooth/
-rw-r--r--  1 root  wheel       287 Oct 11 04:14 cached.conf
-rw-r--r--  1 root  wheel       737 Oct 11 04:14 crontab
-rw-r--r--  1 root  wheel       108 Oct 11 04:14 csh.cshrc
...
drwxr-xr-x  2 root  wheel       512 Oct 11 04:09 skel/
-rw-r--r--  1 root  wheel      2406 Oct 11 04:14 snmpd.config
-rw-------  1 root  wheel     40960 Dec 23 11:36 spwd.db
drwxr-xr-x  2 root  wheel       512 Dec 22 13:30 ssh/
drwxr-xr-x  2 root  wheel       512 Dec 21 20:00 ssl/
-rw-r--r--  1 root  wheel       390 Dec 23 11:07 sysctl.conf
-rw-r--r--  1 root  wheel      1335 Oct 11 04:14 syslog.conf
lrwxrwxrwx  1 root  wheel        23 Dec 21 20:00 termcap@ -> /usr/share/misc/termcap
-rw-r--r--  1 root  wheel      7654 Dec 23 10:46 ttys
drwxr-xr-x  2 root  wheel       512 Oct 11 04:09 zfs/
15:34:33
#ls -lF
total 542
drwxr-xr-x  2 root  wheel       512 Dec 23 11:55 X11/
lrwxrwxrwx  1 root  wheel        12 Dec 21 20:00 aliases@ -> mail/aliases
-rw-r--r--  1 root  wheel       210 Oct 11 04:14 amd.map
-rw-r--r--  1 root  wheel      1234 Oct 11 04:14 apmd.conf
-rw-r--r--  1 root  wheel       231 Oct 11 04:14 auth.conf
drwxr-xr-x  2 root  wheel       512 Dec 21 20:00 bluetooth/
-rw-r--r--  1 root  wheel       287 Oct 11 04:14 cached.conf
-rw-r--r--  1 root  wheel       737 Oct 11 04:14 crontab
-rw-r--r--  1 root  wheel       108 Oct 11 04:14 csh.cshrc
...
drwxr-xr-x  2 root  wheel       512 Oct 11 04:09 skel/
-rw-r--r--  1 root  wheel      2406 Oct 11 04:14 snmpd.config
-rw-------  1 root  wheel     40960 Dec 23 11:36 spwd.db
drwxr-xr-x  2 root  wheel       512 Dec 22 13:30 ssh/
drwxr-xr-x  2 root  wheel       512 Dec 21 20:00 ssl/
-rw-r--r--  1 root  wheel       390 Dec 23 11:07 sysctl.conf
-rw-r--r--  1 root  wheel      1335 Oct 11 04:14 syslog.conf
lrwxrwxrwx  1 root  wheel        23 Dec 21 20:00 termcap@ -> /usr/share/misc/termcap
-rw-r--r--  1 root  wheel      7654 Dec 23 10:46 ttys
drwxr-xr-x  2 root  wheel       512 Oct 11 04:09 zfs/
15:34:36
#ls -lFa
total 546
drwxr-xr-x  21 root  wheel      2048 Mar 10 16:30 ./
drwxr-xr-x  22 root  wheel       512 Feb  7 22:27 ../
drwxr-xr-x   2 root  wheel       512 Dec 23 11:55 X11/
lrwxrwxrwx   1 root  wheel        12 Dec 21 20:00 aliases@ -> mail/aliases
-rw-r--r--   1 root  wheel       210 Oct 11 04:14 amd.map
-rw-r--r--   1 root  wheel      1234 Oct 11 04:14 apmd.conf
-rw-r--r--   1 root  wheel       231 Oct 11 04:14 auth.conf
drwxr-xr-x   2 root  wheel       512 Dec 21 20:00 bluetooth/
-rw-r--r--   1 root  wheel       287 Oct 11 04:14 cached.conf
...
drwxr-xr-x   2 root  wheel       512 Oct 11 04:09 skel/
-rw-r--r--   1 root  wheel      2406 Oct 11 04:14 snmpd.config
-rw-------   1 root  wheel     40960 Dec 23 11:36 spwd.db
drwxr-xr-x   2 root  wheel       512 Dec 22 13:30 ssh/
drwxr-xr-x   2 root  wheel       512 Dec 21 20:00 ssl/
-rw-r--r--   1 root  wheel       390 Dec 23 11:07 sysctl.conf
-rw-r--r--   1 root  wheel      1335 Oct 11 04:14 syslog.conf
lrwxrwxrwx   1 root  wheel        23 Dec 21 20:00 termcap@ -> /usr/share/misc/termcap
-rw-r--r--   1 root  wheel      7654 Dec 23 10:46 ttys
drwxr-xr-x   2 root  wheel       512 Oct 11 04:09 zfs/
15:35:12
#cd ~
[root@fbsd4:etc]# ls -lFa
total 546
drwxr-xr-x  21 root  wheel      2048 Mar 10 16:30 ./
drwxr-xr-x  22 root  wheel       512 Feb  7 22:27 ../
drwxr-xr-x   2 root  wheel       512 Dec 23 11:55 X11/
lrwxrwxrwx   1 root  wheel        12 Dec 21 20:00 aliases@ -> mail/aliases
-rw-r--r--   1 root  wheel       210 Oct 11 04:14 amd.map
-rw-r--r--   1 root  wheel      1234 Oct 11 04:14 apmd.conf
-rw-r--r--   1 root  wheel       231 Oct 11 04:14 auth.conf
drwxr-xr-x   2 root  wheel       512 Dec 21 20:00 bluetooth/
...
drwxr-xr-x   2 root  wheel       512 Oct 11 04:09 skel/
-rw-r--r--   1 root  wheel      2406 Oct 11 04:14 snmpd.config
-rw-------   1 root  wheel     40960 Dec 23 11:36 spwd.db
drwxr-xr-x   2 root  wheel       512 Dec 22 13:30 ssh/
drwxr-xr-x   2 root  wheel       512 Dec 21 20:00 ssl/
-rw-r--r--   1 root  wheel       390 Dec 23 11:07 sysctl.conf
-rw-r--r--   1 root  wheel      1335 Oct 11 04:14 syslog.conf
lrwxrwxrwx   1 root  wheel        23 Dec 21 20:00 termcap@ -> /usr/share/misc/termcap
-rw-r--r--   1 root  wheel      7654 Dec 23 10:46 ttys
drwxr-xr-x   2 root  wheel       512 Oct 11 04:09 zfs/
15:35:12
#cd ~

15:35:59
#pwd
/root
15:35:59
#pwd
/root
15:36:03
#cd /tmp

15:36:03
#cd /tmp

15:36:07
#ls
.ICE-unix                       .font-unix
.X0-lock                        .gdm_socket
.X1-lock                        .snap
.X11-unix                       .xorg.conf6318
.XIM-unix                       .xorg.conf6321
.Xauth4j1eJJ                    fam-user
.Xauth5MNp1A                    grub-install.log.10372
.XauthVnvJcs                    grub-install.log.8872
.XauthWZCDmQ                    grub-install.log.9047
.XauthiEK9wY                    grub-install.log.9221
.XauthjJ4f1W                    install.cfg
.XauthjbfPhl                    lilalo-install-temp-10315
.Xauthv3Drb2                    mfsroot.gz
.XauthyYIU3v                    patchrHcY96i
.XauthzGCIuz
15:36:07
#ls
.ICE-unix                       .font-unix
.X0-lock                        .gdm_socket
.X1-lock                        .snap
.X11-unix                       .xorg.conf6318
.XIM-unix                       .xorg.conf6321
.Xauth4j1eJJ                    fam-user
.Xauth5MNp1A                    grub-install.log.10372
.XauthVnvJcs                    grub-install.log.8872
.XauthWZCDmQ                    grub-install.log.9047
.XauthiEK9wY                    grub-install.log.9221
.XauthjJ4f1W                    install.cfg
.XauthjbfPhl                    lilalo-install-temp-10315
.Xauthv3Drb2                    mfsroot.gz
.XauthyYIU3v                    patchrHcY96i
.XauthzGCIuz
15:36:09
#cd lab2
bash: cd: lab2: No such file or directory
15:36:20
#mkdir lab2
[root@fbsd4:tmp]# cd lab2
bash: cd: lab2: No such file or directory
15:36:20
#mkdir lab2

15:36:25
#mkdir 1 2 3

15:36:43
#ls
[root@fbsd4:tmp]# mkdir 1 2 3
.ICE-unix                       .snap
.X0-lock                        .xorg.conf6318
.X1-lock                        .xorg.conf6321
.X11-unix                       1
.XIM-unix                       2
.Xauth4j1eJJ                    3
.Xauth5MNp1A                    fam-user
.XauthVnvJcs                    grub-install.log.10372
.XauthWZCDmQ                    grub-install.log.8872
.XauthiEK9wY                    grub-install.log.9047
.XauthjJ4f1W                    grub-install.log.9221
.XauthjbfPhl                    install.cfg
.Xauthv3Drb2                    lab2
.XauthyYIU3v                    lilalo-install-temp-10315
.XauthzGCIuz                    mfsroot.gz
.font-unix                      patchrHcY96i
.gdm_socket

Файлы

  • -bsyslog.conf
  • log.conf
  • syslog.conf
  • -bsyslog.conf
    >
         1  # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $
         2  #
         3  #       Spaces ARE valid field separators in this file. However,
         4  #       other *nix-like systems still insist on using tabs as field
         5  #       separators. If you are sharing this file between systems, you
         6  #       may want to use only tabs as field separators here.
         7  #       Consult the syslog.conf(5) manpage.
         8  *.err;kern.warning;auth.notice;mail.crit                /dev/console
         9  *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
        10  security.*                                      /var/log/security
        11  auth.info;authpriv.info                         /var/log/auth.log
        12  mail.info                                       /var/log/maillog
        13  lpr.info                                        /var/log/lpd-errs
        14  ftp.info                                        /var/log/xferlog
        15  cron.*                                          /var/log/cron
        16  *.=debug                                        /var/log/debug.log
        17  *.emerg                                         *
        18  # uncomment this to log all writes to /dev/console to /var/log/console.log
        19  #console.info                                   /var/log/console.log
        20  # uncomment this to enable logging of all log messages to /var/log/all.log
        21  # touch /var/log/all.log and chmod it to mode 600 before it will work
        22  #*.*                                            /var/log/all.log
        23  # uncomment this to enable logging to a remote loghost named loghost
        24  #*.*                                            @loghost
        25  # uncomment these if you're running inn
        26  # news.crit                                     /var/log/news/news.crit
        27  # news.err                                      /var/log/news/news.err
        28  # news.notice                                   /var/log/news/news.notice
        29  !startslip
        30  *.*                                             /var/log/slip.log
        31  !ppp
        32  *.*                                             /var/log/ppp.log
    
    log.conf
    >
         1  # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $
         2  #
         3  #       Spaces ARE valid field separators in this file. However,
         4  #       other *nix-like systems still insist on using tabs as field
         5  #       separators. If you are sharing this file between systems, you
         6  #       may want to use only tabs as field separators here.
         7  #       Consult the syslog.conf(5) manpage.
         8  *.err;kern.warning;auth.notice;mail.crit                /dev/console
         9  *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
        10  security.*                                      /var/log/security
        11  auth.info;authpriv.info                         /var/log/auth.log
        12  mail.info                                       /var/log/maillog
        13  lpr.info                                        /var/log/lpd-errs
        14  ftp.info                                        /var/log/xferlog
        15  cron.*                                          /var/log/cron
        16  *.=debug                                        /var/log/debug.log
        17  *.emerg                                         *
        18  # uncomment this to log all writes to /dev/console to /var/log/console.log
        19  #console.info                                   /var/log/console.log
        20  # uncomment this to enable logging of all log messages to /var/log/all.log
        21  # touch /var/log/all.log and chmod it to mode 600 before it will work
        22  #*.*                                            /var/log/all.log
        23  # uncomment this to enable logging to a remote loghost named loghost
        24  #*.*                                            @loghost
        25  # uncomment these if you're running inn
        26  # news.crit                                     /var/log/news/news.crit
        27  # news.err                                      /var/log/news/news.err
        28  # news.notice                                   /var/log/news/news.notice
        29  !startslip
        30  *.*                                             /var/log/slip.log
        31  !ppp
        32  *.*                                             /var/log/ppp.log
    
    syslog.conf
    >
         1  # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $
         2  #
         3  #       Spaces ARE valid field separators in this file. However,
         4  #       other *nix-like systems still insist on using tabs as field
         5  #       separators. If you are sharing this file between systems, you
         6  #       may want to use only tabs as field separators here.
         7  #       Consult the syslog.conf(5) manpage.
         8  *.err;kern.warning;auth.notice;mail.crit                /dev/console
         9  *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
        10  security.*                                      /var/log/security
        11  auth.info;authpriv.info                         /var/log/auth.log
        12  mail.info                                       /var/log/maillog
        13  lpr.info                                        /var/log/lpd-errs
        14  ftp.info                                        /var/log/xferlog
        15  cron.*                                          /var/log/cron
        16  *.=debug                                        /var/log/debug.log
        17  *.emerg                                         *
        18  # uncomment this to log all writes to /dev/console to /var/log/console.log
        19  #console.info                                   /var/log/console.log
        20  # uncomment this to enable logging of all log messages to /var/log/all.log
        21  # touch /var/log/all.log and chmod it to mode 600 before it will work
        22  #*.*                                            /var/log/all.log
        23  # uncomment this to enable logging to a remote loghost named loghost
        24  #*.*                                            @loghost
        25  # uncomment these if you're running inn
        26  # news.crit                                     /var/log/news/news.crit
        27  # news.err                                      /var/log/news/news.err
        28  # news.notice                                   /var/log/news/news.notice
        29  !startslip
        30  *.*                                             /var/log/slip.log
        31  !ppp
        32  *.*                                             /var/log/ppp.log
    

    Статистика

    Время первой команды журнала18:31:42 2008- 3-10
    Время последней команды журнала15:36:43 2008- 3-11
    Количество командных строк в журнале100
    Процент команд с ненулевым кодом завершения, %13.00
    Процент синтаксически неверно набранных команд, % 3.00
    Суммарное время работы с терминалом *, час 0.23
    Количество командных строк в единицу времени, команда/мин 7.10
    Частота использования команд
    ls29|=============================| 29.00%
    cd16|================| 16.00%
    ee12|============| 12.00%
    cat12|============| 12.00%
    pwd6|======| 6.00%
    ifconfig4|====| 4.00%
    mkdir3|===| 3.00%
    .3|===| 3.00%
    l3-agent2|==| 2.00%
    chmod2|==| 2.00%
    id2|==| 2.00%
    ssh2|==| 2.00%
    w2|==| 2.00%
    iifconfig1|=| 1.00%
    screen1|=| 1.00%
    less1|=| 1.00%
    exit1|=| 1.00%
    mc1|=| 1.00%
    ____
    *) Интервалы неактивности длительностью 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$