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

Содержание

Журнал

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

/dev/pts/0
12:11:25
$cd /tmp

12:11:29
$ls -l
total 8
-rw-r--r--  1 user  wheel  3234 Nov 27 20:25 dirlist
drwxr-xr-x  2 user  wheel  2048 Nov 27 20:23 etccopy
-rw-r--r--  1 user  wheel  1683 Nov 28 13:11 ssh_cong
12:11:32
$grep abcd onf
grep: ssh-conf: No such file or directory
/dev/pts/0
12:11:40
$cd /tmp

12:11:40
$cd /tmp

12:11:40
$cd /tmp

12:11:40
$cd /tmp

12:11:40
$cd /tmp

12:11:40
$cd /tmp

12:11:40
$cd /tmp

12:11:40
$cd /tmp

12:12:01
$ls
dirlist                         etccopy
etc1                            l3-saved-9209.31645.16251
12:12:01
$ls
dirlist                         etccopy
etc1                            l3-saved-9209.31645.16251
12:12:01
$ls
dirlist                         etccopy
etc1                            l3-saved-9209.31645.16251
12:12:01
$ls
dirlist                         etccopy
etc1                            l3-saved-9209.31645.16251
12:12:01
$ls
dirlist                         etccopy
etc1                            l3-saved-9209.31645.16251
12:12:01
$ls
dirlist                         etccopy
etc1                            l3-saved-9209.31645.16251
12:12:01
$ls
dirlist                         etccopy
etc1                            l3-saved-9209.31645.16251
12:12:01
$ls
dirlist                         etccopy
etc1                            l3-saved-9209.31645.16251
/dev/pts/0
12:12:03
$grep abcd ssh-cong
grep: ssh-cong: No such file or directory
/dev/pts/0
12:12:04
$cd etc1

12:12:04
$cd etc1

12:12:04
$cd etc1

12:12:04
$cd etc1

12:12:04
$cd etc1

12:12:04
$cd etc1

12:12:04
$cd etc1

12:12:04
$cd etc1

/dev/pts/0
12:12:15
$grep abcd ssh_ong

12:12:18
$cath_cong
#       $OpenBSD: ssh_config,v 1.26 2010/01/11 01:39:46 dtucker Exp $
#       $FreeBSD: src/crypto/openssh/ssh_config,v 1.34.2.2.4.1 2010/12/21 17:09:25 kensmith Exp $
# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.
# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
...
#   Cipher 3des
#   Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
#   MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
#   EscapeChar ~
#   Tunnel no
#   TunnelDevice any:any
#   PermitLocalCommand no
#   VisualHostKey no
#   ProxyCommand ssh -q -W %h:%p gateway.example.com
#   VersionAddendum FreeBSD-20100308
/dev/pts/0
12:12:19
$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
12:12:19
$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
12:12:19
$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
12:12:19
$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
12:12:19
$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
12:12:19
$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
12:12:19
$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
12:12:19
$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
12:12:21
$cat sysctl.conf
# $FreeBSD: src/etc/sysctl.conf,v 1.8.34.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
12:12:21
$cat sysctl.conf
# $FreeBSD: src/etc/sysctl.conf,v 1.8.34.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
12:12:21
$cat sysctl.conf
# $FreeBSD: src/etc/sysctl.conf,v 1.8.34.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
12:12:21
$cat sysctl.conf
# $FreeBSD: src/etc/sysctl.conf,v 1.8.34.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
12:12:21
$cat sysctl.conf
# $FreeBSD: src/etc/sysctl.conf,v 1.8.34.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
12:12:21
$cat sysctl.conf
# $FreeBSD: src/etc/sysctl.conf,v 1.8.34.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
12:12:21
$cat sysctl.conf
# $FreeBSD: src/etc/sysctl.conf,v 1.8.34.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
12:12:21
$cat sysctl.conf
# $FreeBSD: src/etc/sysctl.conf,v 1.8.34.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
12:12:21
$cat sysctl.conf
# $FreeBSD: src/etc/sysctl.conf,v 1.8.34.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
/dev/pts/0
12:12:25
$grep Addh_cong
#   AddressFamily any
#   VersionAddendum FreeBSD-20100308
12:12:38
$grep -i ssh_cong
#   AddressFamily any
#   VersionAddendum FreeBSD-20100308
/dev/pts/0
12:13:07
$grep abcd /inet.conf
grep: /inet.conf: No such file or directory
/dev/pts/0
12:13:19
$grep -i ad ssh_cong
#   AddressFamily any
#   VersionAddendum FreeBSD-20100308
/dev/pts/0
12:13:20
$ls -lG
total 806
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 X11
-rw-r--r--  1 user  wheel    1667 Nov 28 13:11 aliases
-rw-r--r--  1 user  wheel     221 Nov 28 13:11 amd.map
-rw-r--r--  1 user  wheel    1248 Nov 28 13:11 apmd.conf
-rw-r--r--  1 user  wheel     241 Nov 28 13:11 auth.conf
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 bluetooth
-rw-r--r--  1 user  wheel     736 Nov 28 13:11 crontab
-rw-r--r--  1 user  wheel     120 Nov 28 13:11 csh.cshrc
-rw-r--r--  1 user  wheel     491 Nov 28 13:11 csh.login
...
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 skel
-rw-r--r--  1 user  wheel    2418 Nov 28 13:11 snmpd.config
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssh
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssl
-rw-r--r--  1 user  wheel     381 Nov 28 13:11 sysctl.conf
-rw-r--r--  1 user  wheel    1309 Nov 28 13:11 syslog.conf
-r--r--r--  1 user  wheel  206907 Nov 28 13:11 termcap
-rw-r--r--  1 user  wheel   10689 Nov 28 13:11 termcap.small
-rw-r--r--  1 user  wheel    7558 Nov 28 13:11 ttys
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 zfs
12:13:20
$ls -lG
total 806
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 X11
-rw-r--r--  1 user  wheel    1667 Nov 28 13:11 aliases
-rw-r--r--  1 user  wheel     221 Nov 28 13:11 amd.map
-rw-r--r--  1 user  wheel    1248 Nov 28 13:11 apmd.conf
-rw-r--r--  1 user  wheel     241 Nov 28 13:11 auth.conf
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 bluetooth
-rw-r--r--  1 user  wheel     736 Nov 28 13:11 crontab
-rw-r--r--  1 user  wheel     120 Nov 28 13:11 csh.cshrc
-rw-r--r--  1 user  wheel     491 Nov 28 13:11 csh.login
...
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 skel
-rw-r--r--  1 user  wheel    2418 Nov 28 13:11 snmpd.config
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssh
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssl
-rw-r--r--  1 user  wheel     381 Nov 28 13:11 sysctl.conf
-rw-r--r--  1 user  wheel    1309 Nov 28 13:11 syslog.conf
-r--r--r--  1 user  wheel  206907 Nov 28 13:11 termcap
-rw-r--r--  1 user  wheel   10689 Nov 28 13:11 termcap.small
-rw-r--r--  1 user  wheel    7558 Nov 28 13:11 ttys
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 zfs
12:13:20
$ls -lG
total 806
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 X11
-rw-r--r--  1 user  wheel    1667 Nov 28 13:11 aliases
-rw-r--r--  1 user  wheel     221 Nov 28 13:11 amd.map
-rw-r--r--  1 user  wheel    1248 Nov 28 13:11 apmd.conf
-rw-r--r--  1 user  wheel     241 Nov 28 13:11 auth.conf
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 bluetooth
-rw-r--r--  1 user  wheel     736 Nov 28 13:11 crontab
-rw-r--r--  1 user  wheel     120 Nov 28 13:11 csh.cshrc
-rw-r--r--  1 user  wheel     491 Nov 28 13:11 csh.login
...
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 skel
-rw-r--r--  1 user  wheel    2418 Nov 28 13:11 snmpd.config
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssh
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssl
-rw-r--r--  1 user  wheel     381 Nov 28 13:11 sysctl.conf
-rw-r--r--  1 user  wheel    1309 Nov 28 13:11 syslog.conf
-r--r--r--  1 user  wheel  206907 Nov 28 13:11 termcap
-rw-r--r--  1 user  wheel   10689 Nov 28 13:11 termcap.small
-rw-r--r--  1 user  wheel    7558 Nov 28 13:11 ttys
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 zfs
12:13:20
$ls -lG
total 806
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 X11
-rw-r--r--  1 user  wheel    1667 Nov 28 13:11 aliases
-rw-r--r--  1 user  wheel     221 Nov 28 13:11 amd.map
-rw-r--r--  1 user  wheel    1248 Nov 28 13:11 apmd.conf
-rw-r--r--  1 user  wheel     241 Nov 28 13:11 auth.conf
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 bluetooth
-rw-r--r--  1 user  wheel     736 Nov 28 13:11 crontab
-rw-r--r--  1 user  wheel     120 Nov 28 13:11 csh.cshrc
-rw-r--r--  1 user  wheel     491 Nov 28 13:11 csh.login
...
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 skel
-rw-r--r--  1 user  wheel    2418 Nov 28 13:11 snmpd.config
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssh
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssl
-rw-r--r--  1 user  wheel     381 Nov 28 13:11 sysctl.conf
-rw-r--r--  1 user  wheel    1309 Nov 28 13:11 syslog.conf
-r--r--r--  1 user  wheel  206907 Nov 28 13:11 termcap
-rw-r--r--  1 user  wheel   10689 Nov 28 13:11 termcap.small
-rw-r--r--  1 user  wheel    7558 Nov 28 13:11 ttys
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 zfs
12:13:20
$ls -lG
total 806
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 X11
-rw-r--r--  1 user  wheel    1667 Nov 28 13:11 aliases
-rw-r--r--  1 user  wheel     221 Nov 28 13:11 amd.map
-rw-r--r--  1 user  wheel    1248 Nov 28 13:11 apmd.conf
-rw-r--r--  1 user  wheel     241 Nov 28 13:11 auth.conf
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 bluetooth
-rw-r--r--  1 user  wheel     736 Nov 28 13:11 crontab
-rw-r--r--  1 user  wheel     120 Nov 28 13:11 csh.cshrc
-rw-r--r--  1 user  wheel     491 Nov 28 13:11 csh.login
...
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 skel
-rw-r--r--  1 user  wheel    2418 Nov 28 13:11 snmpd.config
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssh
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssl
-rw-r--r--  1 user  wheel     381 Nov 28 13:11 sysctl.conf
-rw-r--r--  1 user  wheel    1309 Nov 28 13:11 syslog.conf
-r--r--r--  1 user  wheel  206907 Nov 28 13:11 termcap
-rw-r--r--  1 user  wheel   10689 Nov 28 13:11 termcap.small
-rw-r--r--  1 user  wheel    7558 Nov 28 13:11 ttys
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 zfs
12:13:20
$ls -lG
total 806
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 X11
-rw-r--r--  1 user  wheel    1667 Nov 28 13:11 aliases
-rw-r--r--  1 user  wheel     221 Nov 28 13:11 amd.map
-rw-r--r--  1 user  wheel    1248 Nov 28 13:11 apmd.conf
-rw-r--r--  1 user  wheel     241 Nov 28 13:11 auth.conf
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 bluetooth
-rw-r--r--  1 user  wheel     736 Nov 28 13:11 crontab
-rw-r--r--  1 user  wheel     120 Nov 28 13:11 csh.cshrc
-rw-r--r--  1 user  wheel     491 Nov 28 13:11 csh.login
...
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 skel
-rw-r--r--  1 user  wheel    2418 Nov 28 13:11 snmpd.config
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssh
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssl
-rw-r--r--  1 user  wheel     381 Nov 28 13:11 sysctl.conf
-rw-r--r--  1 user  wheel    1309 Nov 28 13:11 syslog.conf
-r--r--r--  1 user  wheel  206907 Nov 28 13:11 termcap
-rw-r--r--  1 user  wheel   10689 Nov 28 13:11 termcap.small
-rw-r--r--  1 user  wheel    7558 Nov 28 13:11 ttys
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 zfs
12:13:20
$ls -lG
total 806
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 X11
-rw-r--r--  1 user  wheel    1667 Nov 28 13:11 aliases
-rw-r--r--  1 user  wheel     221 Nov 28 13:11 amd.map
-rw-r--r--  1 user  wheel    1248 Nov 28 13:11 apmd.conf
-rw-r--r--  1 user  wheel     241 Nov 28 13:11 auth.conf
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 bluetooth
-rw-r--r--  1 user  wheel     736 Nov 28 13:11 crontab
-rw-r--r--  1 user  wheel     120 Nov 28 13:11 csh.cshrc
-rw-r--r--  1 user  wheel     491 Nov 28 13:11 csh.login
...
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 skel
-rw-r--r--  1 user  wheel    2418 Nov 28 13:11 snmpd.config
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssh
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssl
-rw-r--r--  1 user  wheel     381 Nov 28 13:11 sysctl.conf
-rw-r--r--  1 user  wheel    1309 Nov 28 13:11 syslog.conf
-r--r--r--  1 user  wheel  206907 Nov 28 13:11 termcap
-rw-r--r--  1 user  wheel   10689 Nov 28 13:11 termcap.small
-rw-r--r--  1 user  wheel    7558 Nov 28 13:11 ttys
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 zfs
12:13:20
$ls -lG
total 806
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 X11
-rw-r--r--  1 user  wheel    1667 Nov 28 13:11 aliases
-rw-r--r--  1 user  wheel     221 Nov 28 13:11 amd.map
-rw-r--r--  1 user  wheel    1248 Nov 28 13:11 apmd.conf
-rw-r--r--  1 user  wheel     241 Nov 28 13:11 auth.conf
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 bluetooth
-rw-r--r--  1 user  wheel     736 Nov 28 13:11 crontab
-rw-r--r--  1 user  wheel     120 Nov 28 13:11 csh.cshrc
-rw-r--r--  1 user  wheel     491 Nov 28 13:11 csh.login
...
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 skel
-rw-r--r--  1 user  wheel    2418 Nov 28 13:11 snmpd.config
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssh
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssl
-rw-r--r--  1 user  wheel     381 Nov 28 13:11 sysctl.conf
-rw-r--r--  1 user  wheel    1309 Nov 28 13:11 syslog.conf
-r--r--r--  1 user  wheel  206907 Nov 28 13:11 termcap
-rw-r--r--  1 user  wheel   10689 Nov 28 13:11 termcap.small
-rw-r--r--  1 user  wheel    7558 Nov 28 13:11 ttys
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 zfs
12:13:20
$ls -lG
total 806
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 X11
-rw-r--r--  1 user  wheel    1667 Nov 28 13:11 aliases
-rw-r--r--  1 user  wheel     221 Nov 28 13:11 amd.map
-rw-r--r--  1 user  wheel    1248 Nov 28 13:11 apmd.conf
-rw-r--r--  1 user  wheel     241 Nov 28 13:11 auth.conf
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 bluetooth
-rw-r--r--  1 user  wheel     736 Nov 28 13:11 crontab
-rw-r--r--  1 user  wheel     120 Nov 28 13:11 csh.cshrc
-rw-r--r--  1 user  wheel     491 Nov 28 13:11 csh.login
...
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 skel
-rw-r--r--  1 user  wheel    2418 Nov 28 13:11 snmpd.config
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssh
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 ssl
-rw-r--r--  1 user  wheel     381 Nov 28 13:11 sysctl.conf
-rw-r--r--  1 user  wheel    1309 Nov 28 13:11 syslog.conf
-r--r--r--  1 user  wheel  206907 Nov 28 13:11 termcap
-rw-r--r--  1 user  wheel   10689 Nov 28 13:11 termcap.small
-rw-r--r--  1 user  wheel    7558 Nov 28 13:11 ttys
drwxr-xr-x  2 user  wheel     512 Nov 28 13:11 zfs
/dev/pts/0
12:13:28
$grep add ssh_cong

12:13:34
$grep -n ssh_cong
32:#   AddressFamily any
49:#   VersionAddendum FreeBSD-20100308
/dev/pts/0
12:13:36
$ls -lG|less
12:13:36
$ls -lG|less
12:13:36
$ls -lG|less
12:13:36
$ls -lG|less
12:13:36
$ls -lG|less
12:13:36
$ls -lG|less
/dev/pts/0
12:13:46
$grep ^#.*a$
q
sdfs
a
^C
/dev/pts/0
12:14:37
$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
12:14:37
$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
12:14:37
$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
12:14:37
$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
12:14:37
$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
12:14:37
$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
12:14:37
$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
12:14:37
$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
12:14:37
$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:14:49
$grep abcd /inetd.conf
grep: /inetd.conf: No such file or directory
12:15:00
$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:15:02
$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
12:15:02
$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
12:15:02
$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
12:15:02
$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
12:15:02
$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
12:15:02
$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
12:15:02
$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
12:15:02
$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
12:15:02
$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
12:15:02
$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
12:15:02
$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:15:16
$grep root /inetd.conf
grep: /inetd.conf: No such file or directory
/dev/pts/0
12:15:29
$ls inetd.conf
inetd.conf
12:15:29
$ls inetd.conf
inetd.conf
12:15:29
$ls inetd.conf
inetd.conf
12:15:29
$ls inetd.conf
inetd.conf
12:15:29
$ls inetd.conf
inetd.conf
/dev/pts/0
12:15:35
$grep ^#.*a$ ssh_cong
#   IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
/dev/pts/0
12:15:45
$less inetd.conf
12:15:45
$less inetd.conf
12:15:45
$less inetd.conf

Файлы

  • inetd.conf
  • sysctl.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
    
    sysctl.conf
    >
    # $FreeBSD: src/etc/sysctl.conf,v 1.8.34.1.6.1 2010/12/21 17:09:25 kensmith Exp $
    #
    #  This file is read when going to multi-user and its contents piped thru
    #  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
    #
    # Uncomment this to prevent users from seeing information about processes that
    # are being run under another UID.
    #security.bsd.see_other_uids=0
    

    Статистика

    Время первой команды журнала12:11:25 2012-11-28
    Время последней команды журнала12:15:45 2012-11-28
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 6.93
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 0.07
    Количество командных строк в единицу времени, команда/мин23.31
    Частота использования команд
    ls46|==========================================| 42.99%
    cat21|===================| 19.63%
    cd17|===============| 15.89%
    grep13|============| 12.15%
    less9|========| 8.41%
    cath_cong1|| 0.93%
    ____
    *) Интервалы неактивности длительностью 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$