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

Содержание

Журнал

Среда (11/28/12)

/dev/pts/0
12:06:05
$cd ..

12:06:05
$cd ..

12:06:05
$cd ..

12:06:05
$cd ..

12:06:05
$cd ..

12:06:05
$cd ..

12:06:05
$cd ..

12:06:05
$cd ..

12:06:05
$cd ..

/dev/pts/0
12:06:10
$ls
comment-me.txt          hellow                  unixoid.orig.txt
hello-vi.txt            unixoid.err.txt
12:06:12
$cd ..

/dev/pts/0
12:06:24
$ls
user
12:06:24
$ls
user
12:06:24
$ls
user
12:06:24
$ls
user
12:06:24
$ls
user
12:06:24
$ls
user
12:06:24
$ls
user
12:06:24
$ls
user
12:06:24
$ls
user
12:06:24
$ls
user
12:06:24
$ls
user
12:06:24
$ls
user
12:06:24
$ls
user
12:06:24
$ls
user
12:06:24
$ls
user
12:06:32
$cd

12:06:32
$cd

12:06:32
$cd

12:06:32
$cd

12:06:32
$cd

12:06:32
$cd

12:06:32
$cd

12:06:32
$cd

12:06:32
$cd

12:06:32
$cd

12:06:32
$cd

12:06:32
$cd

12:06:32
$cd

12:06:32
$cd

12:06:32
$cd

12:06:37
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1
aba                                     lpi 2
abb                                     man_smb_conf
abc                                     matrix.jpg
abd                                     names
bigfile                                 newfile
bin                                     newtest
directory1                              ogo.jpg
directory2                              pamyatka.pdf
directory3                              press_any_key_to_continue.jpg
errlog                                  proj
file                                    sorted
file1                                   sorted_passwd
file2                                   testfile
file3                                   text
freebsd.jpg                             touchlist
granata.jpg                             unsorted
killall
12:06:37
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1
aba                                     lpi 2
abb                                     man_smb_conf
abc                                     matrix.jpg
abd                                     names
bigfile                                 newfile
bin                                     newtest
directory1                              ogo.jpg
directory2                              pamyatka.pdf
directory3                              press_any_key_to_continue.jpg
errlog                                  proj
file                                    sorted
file1                                   sorted_passwd
file2                                   testfile
file3                                   text
freebsd.jpg                             touchlist
granata.jpg                             unsorted
killall
12:06:37
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1
aba                                     lpi 2
abb                                     man_smb_conf
abc                                     matrix.jpg
abd                                     names
bigfile                                 newfile
bin                                     newtest
directory1                              ogo.jpg
directory2                              pamyatka.pdf
directory3                              press_any_key_to_continue.jpg
errlog                                  proj
file                                    sorted
file1                                   sorted_passwd
file2                                   testfile
file3                                   text
freebsd.jpg                             touchlist
granata.jpg                             unsorted
killall
12:06:37
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1
aba                                     lpi 2
abb                                     man_smb_conf
abc                                     matrix.jpg
abd                                     names
bigfile                                 newfile
bin                                     newtest
directory1                              ogo.jpg
directory2                              pamyatka.pdf
directory3                              press_any_key_to_continue.jpg
errlog                                  proj
file                                    sorted
file1                                   sorted_passwd
file2                                   testfile
file3                                   text
freebsd.jpg                             touchlist
granata.jpg                             unsorted
killall
12:06:37
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1
aba                                     lpi 2
abb                                     man_smb_conf
abc                                     matrix.jpg
abd                                     names
bigfile                                 newfile
bin                                     newtest
directory1                              ogo.jpg
directory2                              pamyatka.pdf
directory3                              press_any_key_to_continue.jpg
errlog                                  proj
file                                    sorted
file1                                   sorted_passwd
file2                                   testfile
file3                                   text
freebsd.jpg                             touchlist
granata.jpg                             unsorted
killall
12:06:37
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1
aba                                     lpi 2
abb                                     man_smb_conf
abc                                     matrix.jpg
abd                                     names
bigfile                                 newfile
bin                                     newtest
directory1                              ogo.jpg
directory2                              pamyatka.pdf
directory3                              press_any_key_to_continue.jpg
errlog                                  proj
file                                    sorted
file1                                   sorted_passwd
file2                                   testfile
file3                                   text
freebsd.jpg                             touchlist
granata.jpg                             unsorted
killall
12:06:37
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1
aba                                     lpi 2
abb                                     man_smb_conf
abc                                     matrix.jpg
abd                                     names
bigfile                                 newfile
bin                                     newtest
directory1                              ogo.jpg
directory2                              pamyatka.pdf
directory3                              press_any_key_to_continue.jpg
errlog                                  proj
file                                    sorted
file1                                   sorted_passwd
file2                                   testfile
file3                                   text
freebsd.jpg                             touchlist
granata.jpg                             unsorted
killall
12:06:37
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1
aba                                     lpi 2
abb                                     man_smb_conf
abc                                     matrix.jpg
abd                                     names
bigfile                                 newfile
bin                                     newtest
directory1                              ogo.jpg
directory2                              pamyatka.pdf
directory3                              press_any_key_to_continue.jpg
errlog                                  proj
file                                    sorted
file1                                   sorted_passwd
file2                                   testfile
file3                                   text
freebsd.jpg                             touchlist
granata.jpg                             unsorted
killall
12:06:37
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1
aba                                     lpi 2
abb                                     man_smb_conf
abc                                     matrix.jpg
abd                                     names
bigfile                                 newfile
bin                                     newtest
directory1                              ogo.jpg
directory2                              pamyatka.pdf
directory3                              press_any_key_to_continue.jpg
errlog                                  proj
file                                    sorted
file1                                   sorted_passwd
file2                                   testfile
file3                                   text
freebsd.jpg                             touchlist
granata.jpg                             unsorted
killall
12:06:37
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1
aba                                     lpi 2
abb                                     man_smb_conf
abc                                     matrix.jpg
abd                                     names
bigfile                                 newfile
bin                                     newtest
directory1                              ogo.jpg
directory2                              pamyatka.pdf
directory3                              press_any_key_to_continue.jpg
errlog                                  proj
file                                    sorted
file1                                   sorted_passwd
file2                                   testfile
file3                                   text
freebsd.jpg                             touchlist
granata.jpg                             unsorted
killall
12:06:37
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1
aba                                     lpi 2
abb                                     man_smb_conf
abc                                     matrix.jpg
abd                                     names
bigfile                                 newfile
bin                                     newtest
directory1                              ogo.jpg
directory2                              pamyatka.pdf
directory3                              press_any_key_to_continue.jpg
errlog                                  proj
file                                    sorted
file1                                   sorted_passwd
file2                                   testfile
file3                                   text
freebsd.jpg                             touchlist
granata.jpg                             unsorted
killall
12:06:37
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1
aba                                     lpi 2
abb                                     man_smb_conf
abc                                     matrix.jpg
abd                                     names
bigfile                                 newfile
bin                                     newtest
directory1                              ogo.jpg
directory2                              pamyatka.pdf
directory3                              press_any_key_to_continue.jpg
errlog                                  proj
file                                    sorted
file1                                   sorted_passwd
file2                                   testfile
file3                                   text
freebsd.jpg                             touchlist
granata.jpg                             unsorted
killall
12:06:37
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1
aba                                     lpi 2
abb                                     man_smb_conf
abc                                     matrix.jpg
abd                                     names
bigfile                                 newfile
bin                                     newtest
directory1                              ogo.jpg
directory2                              pamyatka.pdf
directory3                              press_any_key_to_continue.jpg
errlog                                  proj
file                                    sorted
file1                                   sorted_passwd
file2                                   testfile
file3                                   text
freebsd.jpg                             touchlist
granata.jpg                             unsorted
killall
12:06:37
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1
aba                                     lpi 2
abb                                     man_smb_conf
abc                                     matrix.jpg
abd                                     names
bigfile                                 newfile
bin                                     newtest
directory1                              ogo.jpg
directory2                              pamyatka.pdf
directory3                              press_any_key_to_continue.jpg
errlog                                  proj
file                                    sorted
file1                                   sorted_passwd
file2                                   testfile
file3                                   text
freebsd.jpg                             touchlist
granata.jpg                             unsorted
killall
12:06:37
$ls
Light_Alloy_4.4.784_RC2_by_FAFNIR.exe   lpi 1
aba                                     lpi 2
abb                                     man_smb_conf
abc                                     matrix.jpg
abd                                     names
bigfile                                 newfile
bin                                     newtest
directory1                              ogo.jpg
directory2                              pamyatka.pdf
directory3                              press_any_key_to_continue.jpg
errlog                                  proj
file                                    sorted
file1                                   sorted_passwd
file2                                   testfile
file3                                   text
freebsd.jpg                             touchlist
granata.jpg                             unsorted
killall
12:06:40
$cd text

12:06:40
$cd text

12:06:40
$cd text

12:06:40
$cd text

12:06:53
$ls
comment-me.txt          hellow                  unixoid.err.txt~
hello-vi.txt            unixoid.err.txt         unixoid.orig.txt
12:06:53
$ls
comment-me.txt          hellow                  unixoid.err.txt~
hello-vi.txt            unixoid.err.txt         unixoid.orig.txt
12:06:53
$ls
comment-me.txt          hellow                  unixoid.err.txt~
hello-vi.txt            unixoid.err.txt         unixoid.orig.txt
12:06:53
$ls
comment-me.txt          hellow                  unixoid.err.txt~
hello-vi.txt            unixoid.err.txt         unixoid.orig.txt
12:06:53
$ls
comment-me.txt          hellow                  unixoid.err.txt~
hello-vi.txt            unixoid.err.txt         unixoid.orig.txt
12:06:53
$ls
comment-me.txt          hellow                  unixoid.err.txt~
hello-vi.txt            unixoid.err.txt         unixoid.orig.txt
12:06:53
$ls
comment-me.txt          hellow                  unixoid.err.txt~
hello-vi.txt            unixoid.err.txt         unixoid.orig.txt
12:06:53
$ls
comment-me.txt          hellow                  unixoid.err.txt~
hello-vi.txt            unixoid.err.txt         unixoid.orig.txt
12:06:53
$ls
comment-me.txt          hellow                  unixoid.err.txt~
hello-vi.txt            unixoid.err.txt         unixoid.orig.txt
12:06:53
$ls
comment-me.txt          hellow                  unixoid.err.txt~
hello-vi.txt            unixoid.err.txt         unixoid.orig.txt
12:06:53
$ls
comment-me.txt          hellow                  unixoid.err.txt~
hello-vi.txt            unixoid.err.txt         unixoid.orig.txt
12:06:53
$ls
comment-me.txt          hellow                  unixoid.err.txt~
hello-vi.txt            unixoid.err.txt         unixoid.orig.txt
12:06:55
$cp -r /etc /tmp/etc1
cp: /etc/security/audit_control: Permission denied
cp: /etc/security/audit_user: Permission denied
cp: /etc/security/audit_warn: Permission denied
cp: /etc/ssh/ssh_host_key: Permission denied
cp: /etc/ssh/ssh_host_dsa_key: Permission denied
cp: /etc/ssh/ssh_host_rsa_key: Permission denied
cp: /etc/bluetooth/hcsecd.conf: Permission denied
cp: /etc/ntp: Permission denied
cp: /etc/ppp/ppp.conf: Permission denied
cp: /etc/master.passwd: Permission denied
cp: /etc/nsmb.conf: Permission denied
cp: /etc/opieaccess: Permission denied
cp: /etc/spwd.db: Permission denied
cp: /etc/opiekeys: Permission denied
12:06:55
$cp -r /etc /tmp/etc1
cp: /etc/security/audit_control: Permission denied
cp: /etc/security/audit_user: Permission denied
cp: /etc/security/audit_warn: Permission denied
cp: /etc/ssh/ssh_host_key: Permission denied
cp: /etc/ssh/ssh_host_dsa_key: Permission denied
cp: /etc/ssh/ssh_host_rsa_key: Permission denied
cp: /etc/bluetooth/hcsecd.conf: Permission denied
cp: /etc/ntp: Permission denied
cp: /etc/ppp/ppp.conf: Permission denied
cp: /etc/master.passwd: Permission denied
cp: /etc/nsmb.conf: Permission denied
cp: /etc/opieaccess: Permission denied
cp: /etc/spwd.db: Permission denied
cp: /etc/opiekeys: Permission denied
12:06:55
$cp -r /etc /tmp/etc1
cp: /etc/security/audit_control: Permission denied
cp: /etc/security/audit_user: Permission denied
cp: /etc/security/audit_warn: Permission denied
cp: /etc/ssh/ssh_host_key: Permission denied
cp: /etc/ssh/ssh_host_dsa_key: Permission denied
cp: /etc/ssh/ssh_host_rsa_key: Permission denied
cp: /etc/bluetooth/hcsecd.conf: Permission denied
cp: /etc/ntp: Permission denied
cp: /etc/ppp/ppp.conf: Permission denied
cp: /etc/master.passwd: Permission denied
cp: /etc/nsmb.conf: Permission denied
cp: /etc/opieaccess: Permission denied
cp: /etc/spwd.db: Permission denied
cp: /etc/opiekeys: Permission denied
12:06:55
$cp -r /etc /tmp/etc1
cp: /etc/security/audit_control: Permission denied
cp: /etc/security/audit_user: Permission denied
cp: /etc/security/audit_warn: Permission denied
cp: /etc/ssh/ssh_host_key: Permission denied
cp: /etc/ssh/ssh_host_dsa_key: Permission denied
cp: /etc/ssh/ssh_host_rsa_key: Permission denied
cp: /etc/bluetooth/hcsecd.conf: Permission denied
cp: /etc/ntp: Permission denied
cp: /etc/ppp/ppp.conf: Permission denied
cp: /etc/master.passwd: Permission denied
cp: /etc/nsmb.conf: Permission denied
cp: /etc/opieaccess: Permission denied
cp: /etc/spwd.db: Permission denied
cp: /etc/opiekeys: Permission denied
12:06:55
$cp -r /etc /tmp/etc1
cp: /etc/security/audit_control: Permission denied
cp: /etc/security/audit_user: Permission denied
cp: /etc/security/audit_warn: Permission denied
cp: /etc/ssh/ssh_host_key: Permission denied
cp: /etc/ssh/ssh_host_dsa_key: Permission denied
cp: /etc/ssh/ssh_host_rsa_key: Permission denied
cp: /etc/bluetooth/hcsecd.conf: Permission denied
cp: /etc/ntp: Permission denied
cp: /etc/ppp/ppp.conf: Permission denied
cp: /etc/master.passwd: Permission denied
cp: /etc/nsmb.conf: Permission denied
cp: /etc/opieaccess: Permission denied
cp: /etc/spwd.db: Permission denied
cp: /etc/opiekeys: Permission denied
12:06:55
$cp -r /etc /tmp/etc1
cp: /etc/security/audit_control: Permission denied
cp: /etc/security/audit_user: Permission denied
cp: /etc/security/audit_warn: Permission denied
cp: /etc/ssh/ssh_host_key: Permission denied
cp: /etc/ssh/ssh_host_dsa_key: Permission denied
cp: /etc/ssh/ssh_host_rsa_key: Permission denied
cp: /etc/bluetooth/hcsecd.conf: Permission denied
cp: /etc/ntp: Permission denied
cp: /etc/ppp/ppp.conf: Permission denied
cp: /etc/master.passwd: Permission denied
cp: /etc/nsmb.conf: Permission denied
cp: /etc/opieaccess: Permission denied
cp: /etc/spwd.db: Permission denied
cp: /etc/opiekeys: Permission denied
12:06:55
$cp -r /etc /tmp/etc1
cp: /etc/security/audit_control: Permission denied
cp: /etc/security/audit_user: Permission denied
cp: /etc/security/audit_warn: Permission denied
cp: /etc/ssh/ssh_host_key: Permission denied
cp: /etc/ssh/ssh_host_dsa_key: Permission denied
cp: /etc/ssh/ssh_host_rsa_key: Permission denied
cp: /etc/bluetooth/hcsecd.conf: Permission denied
cp: /etc/ntp: Permission denied
cp: /etc/ppp/ppp.conf: Permission denied
cp: /etc/master.passwd: Permission denied
cp: /etc/nsmb.conf: Permission denied
cp: /etc/opieaccess: Permission denied
cp: /etc/spwd.db: Permission denied
cp: /etc/opiekeys: Permission denied
/dev/pts/0
12:06:58
$cp matrix.jpg text_to_grep{.,uuu}
cp: text_to_grepuuu is not a directory
/dev/pts/0
12:08:18
$cd ..

12:08:22
$cd ..

12:08:23
$cd ..

12:08:25
$ls
COPYRIGHT       dev             libexec         root            var
bin             dist            media           sbin
boot            etc             mnt             sys
cdrom           home            proc            tmp
compat          lib             rescue          usr
12:08:28
$cp /etc /tmp
cp: /etc is a directory (not copied).
/dev/pts/0
12:08:41
$localeto_grep
Unknown keyword: `text_to_grep'
12:09:04
$locale 'text_to_grep'
Unknown keyword: `text_to_grep'
12:09:09
$cd /etc

/dev/pts/0
12:09:38
$cp -r /etc /tmp
cp: /etc/security/audit_control: Permission denied
cp: /etc/security/audit_user: Permission denied
cp: /etc/security/audit_warn: Permission denied
cp: /etc/ssh/ssh_host_key: Permission denied
cp: /etc/ssh/ssh_host_dsa_key: Permission denied
cp: /etc/ssh/ssh_host_rsa_key: Permission denied
cp: /etc/bluetooth/hcsecd.conf: Permission denied
cp: /etc/ntp: Permission denied
cp: /etc/ppp/ppp.conf: Permission denied
cp: /etc/master.passwd: Permission denied
cp: /etc/nsmb.conf: Permission denied
cp: /etc/opieaccess: Permission denied
cp: /etc/spwd.db: Permission denied
cp: /etc/opiekeys: Permission denied
/dev/pts/0
12:09:55
$ls -l
total 616
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 X11
lrwxr-xr-x  1 root  wheel        12 Feb 18  2011 aliases -> mail/aliases
-rw-r--r--  1 root  wheel       221 Feb 18  2011 amd.map
-rw-r--r--  1 root  wheel      1248 Feb 18  2011 apmd.conf
-rw-r--r--  1 root  wheel       241 Feb 18  2011 auth.conf
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 bluetooth
-rw-r--r--  1 root  wheel       736 Feb 18  2011 crontab
-rw-r--r--  1 root  wheel       120 Feb 18  2011 csh.cshrc
-rw-r--r--  1 root  wheel       491 Feb 18  2011 csh.login
...
-rw-r--r--  1 root  wheel      2418 Feb 18  2011 snmpd.config
-rw-------  1 root  wheel     40960 Jul  5 20:49 spwd.db
drwxr-xr-x  2 root  wheel       512 Jul  5 19:12 ssh
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 ssl
-rw-r--r--  1 root  wheel       381 Feb 18  2011 sysctl.conf
-rw-r--r--  1 root  wheel      1309 Feb 18  2011 syslog.conf
lrwxr-xr-x  1 root  wheel        23 Feb 18  2011 termcap -> /usr/share/misc/termcap
-rw-r--r--  1 root  wheel     10689 Feb 18  2011 termcap.small
-rw-r--r--  1 root  wheel      7558 Jul  3 21:38 ttys
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 zfs
12:09:58
$ls -l | grep ^d
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 X11
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 bluetooth
drwxr-xr-x  2 root  wheel       512 Jul  3 21:19 defaults
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 devd
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 gnats
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 gss
drwxr-xr-x  2 root  wheel       512 Jul  5 20:49 lilalo
drwxr-xr-x  2 root  wheel       512 Jul  3 21:25 mail
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 mtree
drwx------  2 root  wheel       512 Feb 18  2011 ntp
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 pam.d
drwxr-xr-x  6 root  wheel       512 Feb 18  2011 periodic
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 ppp
drwxr-xr-x  2 root  wheel      3072 Feb 18  2011 rc.d
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 security
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 skel
drwxr-xr-x  2 root  wheel       512 Jul  5 19:12 ssh
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 ssl
drwxr-xr-x  2 root  wheel       512 Feb 18  2011 zfs
/dev/pts/0
12:10:10
$cd tmp

/dev/pts/0
12:10:18
$cd ssh

/dev/pts/0
12:10:24
$cd usr
l3script: cd: usr: No such file or directory
12:10:41
$ls
dirlist etc     etccopy
12:10:52
$cd etc

/dev/pts/0
12:11:05
$ls -l
total 146
-rw-r--r--  1 root  wheel  125811 Feb 18  2011 moduli
-rw-r--r--  1 root  wheel    1683 Feb 18  2011 ssh_config
-rw-------  1 root  wheel     672 Jul  3 21:43 ssh_host_dsa_key
-rw-r--r--  1 root  wheel     615 Jul  3 21:43 ssh_host_dsa_key.pub
-rw-------  1 root  wheel     542 Jul  3 21:43 ssh_host_key
-rw-r--r--  1 root  wheel     347 Jul  3 21:43 ssh_host_key.pub
-rw-------  1 root  wheel    1679 Jul  3 21:43 ssh_host_rsa_key
-rw-r--r--  1 root  wheel     407 Jul  3 21:43 ssh_host_rsa_key.pub
-rw-r--r--  1 root  wheel    3410 Jul  5 19:12 sshd_config
-rw-r--r--  1 root  wheel    3410 Feb 18  2011 sshd_config~
/dev/pts/0
12:11:08
$ls
X11                     lilalo                  profile
aliases                 localtime               protocols
amd.map                 locate.rc               pwd.db
apmd.conf               login.access            rc
auth.conf               login.conf              rc.bsdextended
bluetooth               login.conf.db           rc.conf
crontab                 mac.conf                rc.conf~
csh.cshrc               mail                    rc.d
csh.login               mail.rc                 rc.firewall
csh.logout              make.conf               rc.initdiskless
...
group                   ntp.conf                snmpd.config
gss                     pam.d                   ssh
host.conf               passwd                  ssl
hostid                  pccard_ether            sysctl.conf
hosts                   periodic                syslog.conf
hosts.allow             pf.os                   termcap
hosts.equiv             phones                  termcap.small
hosts.lpd               portsnap.conf           ttys
inetd.conf              ppp                     zfs
libalias.conf           printcap
/dev/pts/0
12:11:08
$cp ssh_config /tmp/ssh_cong

/dev/pts/0
12:11:11
$cat inetd.conf
# $FreeBSD: src/etc/inetd.conf,v 1.73.10.2.6.1 2010/12/21 17:09:25 kensmith Exp $
#
# Internet server configuration database
#
# Define *both* IPv4 and IPv6 entries for dual-stack support.
# To disable a service, comment it out by prefixing the line with '#'.
# To enable a service, remove the '#' at the beginning of the line.
#
#ftp    stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l
#ftp    stream  tcp6    nowait  root    /usr/libexec/ftpd       ftpd -l
...
#
#smtp   stream  tcp     nowait  qmaild  /var/qmail/bin/tcp-env  tcp-env /var/qmail/bin/qmail-smtpd
#
# Enable the following two entries to enable samba startup from inetd
# (from the Samba documentation).  Enable the third entry to enable the swat
# samba configuration tool.
#
#netbios-ssn stream tcp nowait          root    /usr/local/sbin/smbd    smbd
#netbios-ns dgram udp   wait            root    /usr/local/sbin/nmbd    nmbd
#swat   stream  tcp     nowait/400      root    /usr/local/sbin/swat    swat
/dev/pts/0
12:11:25
$cd /tmp

Файлы

  • inetd.conf
  • inetd.conf
    >
    # $FreeBSD: src/etc/inetd.conf,v 1.73.10.2.6.1 2010/12/21 17:09:25 kensmith Exp $
    #
    # Internet server configuration database
    #
    # Define *both* IPv4 and IPv6 entries for dual-stack support.
    # To disable a service, comment it out by prefixing the line with '#'.
    # To enable a service, remove the '#' at the beginning of the line.
    #
    #ftp    stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l
    #ftp    stream  tcp6    nowait  root    /usr/libexec/ftpd       ftpd -l
    ssh     stream  tcp     nowait  root    /usr/sbin/sshd          sshd -i -4
    #ssh    stream  tcp6    nowait  root    /usr/sbin/sshd          sshd -i -6
    #telnet stream  tcp     nowait  root    /usr/libexec/telnetd    telnetd
    #telnet stream  tcp6    nowait  root    /usr/libexec/telnetd    telnetd
    #shell  stream  tcp     nowait  root    /usr/libexec/rshd       rshd
    #shell  stream  tcp6    nowait  root    /usr/libexec/rshd       rshd
    #login  stream  tcp     nowait  root    /usr/libexec/rlogind    rlogind
    #login  stream  tcp6    nowait  root    /usr/libexec/rlogind    rlogind
    #finger stream  tcp     nowait/3/10 nobody /usr/libexec/fingerd fingerd -s
    #finger stream  tcp6    nowait/3/10 nobody /usr/libexec/fingerd fingerd -s
    #
    # run comsat as root to be able to print partial mailbox contents w/ biff,
    # or use the safer tty:tty to just print that new mail has been received.
    #comsat dgram   udp     wait    tty:tty /usr/libexec/comsat     comsat
    #
    # ntalk is required for the 'talk' utility to work correctly
    #ntalk  dgram   udp     wait    tty:tty /usr/libexec/ntalkd     ntalkd
    #tftp   dgram   udp     wait    root    /usr/libexec/tftpd      tftpd -l -s /tftpboot
    #tftp   dgram   udp6    wait    root    /usr/libexec/tftpd      tftpd -l -s /tftpboot
    #bootps dgram   udp     wait    root    /usr/libexec/bootpd     bootpd
    #
    # "Small servers" -- used to be standard on, but we're more conservative
    # about things due to Internet security concerns.  Only turn on what you
    # need.
    #
    #daytime stream tcp     nowait  root    internal
    #daytime stream tcp6    nowait  root    internal
    #daytime dgram  udp     wait    root    internal
    #daytime dgram  udp6    wait    root    internal
    #time   stream  tcp     nowait  root    internal
    #time   stream  tcp6    nowait  root    internal
    #time    dgram  udp     wait    root    internal
    #time    dgram  udp6    wait    root    internal
    #echo   stream  tcp     nowait  root    internal
    #echo   stream  tcp6    nowait  root    internal
    #echo   dgram   udp     wait    root    internal
    #echo   dgram   udp6    wait    root    internal
    #discard stream tcp     nowait  root    internal
    #discard stream tcp6    nowait  root    internal
    #discard dgram  udp     wait    root    internal
    #discard dgram  udp6    wait    root    internal
    #chargen stream tcp     nowait  root    internal
    #chargen stream tcp6    nowait  root    internal
    #chargen dgram  udp     wait    root    internal
    #chargen dgram  udp6    wait    root    internal
    #
    # CVS servers - for master CVS repositories only!  You must set the
    # --allow-root path correctly or you open a trivial to exploit but
    # deadly security hole.
    #
    #cvspserver     stream  tcp     nowait  root    /usr/bin/cvs    cvs --allow-root=/your/cvsroot/here pserver
    #cvspserver     stream  tcp     nowait  root    /usr/bin/cvs    cvs --allow-root=/your/cvsroot/here kserver
    #
    # RPC based services (you MUST have rpcbind running to use these)
    #
    #rstatd/1-3     dgram rpc/udp wait root /usr/libexec/rpc.rstatd  rpc.rstatd
    #rusersd/1-2    dgram rpc/udp wait root /usr/libexec/rpc.rusersd rpc.rusersd
    #walld/1        dgram rpc/udp wait root /usr/libexec/rpc.rwalld  rpc.rwalld
    #pcnfsd/1-2     dgram rpc/udp wait root /usr/local/libexec/rpc.pcnfsd    rpc.pcnfsd
    #rquotad/1      dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
    #sprayd/1       dgram rpc/udp wait root /usr/libexec/rpc.sprayd  rpc.sprayd
    #
    # example entry for the optional pop3 server
    #
    #pop3   stream  tcp     nowait  root    /usr/local/libexec/popper       popper
    #
    # example entry for the optional imap4 server
    #
    #imap4  stream  tcp     nowait  root    /usr/local/libexec/imapd        imapd
    #
    # example entry for the optional nntp server
    #
    #nntp   stream  tcp     nowait  news    /usr/local/libexec/nntpd        nntpd
    #
    # example entry for the optional uucpd server
    #
    #uucpd  stream  tcp     nowait  root    /usr/local/libexec/uucpd        uucpd
    #
    # Return error for all "ident" requests
    #
    #auth   stream  tcp     nowait  root    internal
    #auth   stream  tcp6    nowait  root    internal
    #
    # Provide internally a real "ident" service which provides ~/.fakeid support,
    # provides ~/.noident support, reports UNKNOWN as the operating system type
    # and times out after 30 seconds.
    #
    #auth   stream  tcp     nowait  root    internal        auth -r -f -n -o UNKNOWN -t 30
    #auth   stream  tcp6    nowait  root    internal        auth -r -f -n -o UNKNOWN -t 30
    #
    # Example entry for an external ident server
    #
    #auth   stream  tcp     wait    root    /usr/local/sbin/identd  identd -w -t120
    #
    # Example entry for the optional qmail MTA
    #  NOTE: This is no longer the correct way to handle incoming SMTP
    #        connections for qmail.  Use tcpserver (http://cr.yp.to/ucspi-tcp.html)
    #        instead.
    #
    #smtp   stream  tcp     nowait  qmaild  /var/qmail/bin/tcp-env  tcp-env /var/qmail/bin/qmail-smtpd
    #
    # Enable the following two entries to enable samba startup from inetd
    # (from the Samba documentation).  Enable the third entry to enable the swat
    # samba configuration tool.
    #
    #netbios-ssn stream tcp nowait          root    /usr/local/sbin/smbd    smbd
    #netbios-ns dgram udp   wait            root    /usr/local/sbin/nmbd    nmbd
    #swat   stream  tcp     nowait/400      root    /usr/local/sbin/swat    swat
    

    Статистика

    Время первой команды журнала12:06:05 2012-11-28
    Время последней команды журнала12:11:25 2012-11-28
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %10.89
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 0.09
    Количество командных строк в единицу времени, команда/мин18.94
    Частота использования команд
    ls49|================================================| 48.04%
    cd38|=====================================| 37.25%
    cp11|==========| 10.78%
    locale1|| 0.98%
    localeto_grep1|| 0.98%
    cat1|| 0.98%
    grep1|| 0.98%
    ____
    *) Интервалы неактивности длительностью 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$