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

Содержание

Журнал

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

/dev/pts/0
12:26:52
$grep -x #.*netcp.*bd inetd.conf
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
/dev/pts/0
12:27:10
$cat /etc/passwd
# $FreeBSD: src/etc/master.passwd,v 1.40.22.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#
root:*:0:0:Charlie &:/root:/usr/local/bin/bash
toor:*:0:0:Bourne-again Superuser:/root:
daemon:*:1:1:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5:System &:/:/usr/sbin/nologin
bin:*:3:7:Binaries Commands and Source:/:/usr/sbin/nologin
tty:*:4:65533:Tty Sandbox:/:/usr/sbin/nologin
kmem:*:5:65533:KMem Sandbox:/:/usr/sbin/nologin
games:*:7:13:Games pseudo-user:/usr/games:/usr/sbin/nologin
...
mailnull:*:26:26:Sendmail Default User:/var/spool/mqueue:/usr/sbin/nologin
bind:*:53:53:Bind Sandbox:/:/usr/sbin/nologin
proxy:*:62:62:Packet Filter pseudo-user:/nonexistent:/usr/sbin/nologin
_pflogd:*:64:64:pflogd privsep user:/var/empty:/usr/sbin/nologin
_dhcp:*:65:65:dhcp programs:/var/empty:/usr/sbin/nologin
uucp:*:66:66:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico
pop:*:68:6:Post Office Owner:/nonexistent:/usr/sbin/nologin
www:*:80:80:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
nobody:*:65534:65534:Unprivileged user:/nonexistent:/usr/sbin/nologin
user:*:1001:1001:User &:/home/user:/usr/local/bin/bash
12:27:21
$sed 's/:/ /g' /etc/passwd
# $FreeBSD  src/etc/master.passwd,v 1.40.22.1.6.1 2010/12/21 17 09 25 kensmith Exp $
#
root * 0 0 Charlie & /root /usr/local/bin/bash
toor * 0 0 Bourne-again Superuser /root
daemon * 1 1 Owner of many system processes /root /usr/sbin/nologin
operator * 2 5 System & / /usr/sbin/nologin
bin * 3 7 Binaries Commands and Source / /usr/sbin/nologin
tty * 4 65533 Tty Sandbox / /usr/sbin/nologin
kmem * 5 65533 KMem Sandbox / /usr/sbin/nologin
games * 7 13 Games pseudo-user /usr/games /usr/sbin/nologin
...
mailnull * 26 26 Sendmail Default User /var/spool/mqueue /usr/sbin/nologin
bind * 53 53 Bind Sandbox / /usr/sbin/nologin
proxy * 62 62 Packet Filter pseudo-user /nonexistent /usr/sbin/nologin
_pflogd * 64 64 pflogd privsep user /var/empty /usr/sbin/nologin
_dhcp * 65 65 dhcp programs /var/empty /usr/sbin/nologin
uucp * 66 66 UUCP pseudo-user /var/spool/uucppublic /usr/local/libexec/uucp/uucico
pop * 68 6 Post Office Owner /nonexistent /usr/sbin/nologin
www * 80 80 World Wide Web Owner /nonexistent /usr/sbin/nologin
nobody * 65534 65534 Unprivileged user /nonexistent /usr/sbin/nologin
user * 1001 1001 User & /home/user /usr/local/bin/bash
/dev/pts/0
12:27:28
$grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression
  -F, --fixed-strings       PATTERN is a set of newline-separated strings
  -G, --basic-regexp        PATTERN is a basic regular expression
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN as a regular expression
  -f, --file=FILE           obtain PATTERN from FILE
...
      --color[=WHEN],
      --colour[=WHEN]       use markers to distinguish the matching string
                            WHEN may be `always', `never' or `auto'.
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input.  If less than
two FILEs given, assume -h.  Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
12:27:28
$grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression
  -F, --fixed-strings       PATTERN is a set of newline-separated strings
  -G, --basic-regexp        PATTERN is a basic regular expression
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN as a regular expression
  -f, --file=FILE           obtain PATTERN from FILE
...
      --color[=WHEN],
      --colour[=WHEN]       use markers to distinguish the matching string
                            WHEN may be `always', `never' or `auto'.
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input.  If less than
two FILEs given, assume -h.  Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
12:27:28
$grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression
  -F, --fixed-strings       PATTERN is a set of newline-separated strings
  -G, --basic-regexp        PATTERN is a basic regular expression
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN as a regular expression
  -f, --file=FILE           obtain PATTERN from FILE
...
      --color[=WHEN],
      --colour[=WHEN]       use markers to distinguish the matching string
                            WHEN may be `always', `never' or `auto'.
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input.  If less than
two FILEs given, assume -h.  Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
12:27:28
$grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression
  -F, --fixed-strings       PATTERN is a set of newline-separated strings
  -G, --basic-regexp        PATTERN is a basic regular expression
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN as a regular expression
  -f, --file=FILE           obtain PATTERN from FILE
...
      --color[=WHEN],
      --colour[=WHEN]       use markers to distinguish the matching string
                            WHEN may be `always', `never' or `auto'.
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input.  If less than
two FILEs given, assume -h.  Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
12:27:28
$grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression
  -F, --fixed-strings       PATTERN is a set of newline-separated strings
  -G, --basic-regexp        PATTERN is a basic regular expression
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN as a regular expression
  -f, --file=FILE           obtain PATTERN from FILE
...
      --color[=WHEN],
      --colour[=WHEN]       use markers to distinguish the matching string
                            WHEN may be `always', `never' or `auto'.
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input.  If less than
two FILEs given, assume -h.  Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
12:27:28
$grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression
  -F, --fixed-strings       PATTERN is a set of newline-separated strings
  -G, --basic-regexp        PATTERN is a basic regular expression
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN as a regular expression
  -f, --file=FILE           obtain PATTERN from FILE
...
      --color[=WHEN],
      --colour[=WHEN]       use markers to distinguish the matching string
                            WHEN may be `always', `never' or `auto'.
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input.  If less than
two FILEs given, assume -h.  Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
12:27:28
$grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression
  -F, --fixed-strings       PATTERN is a set of newline-separated strings
  -G, --basic-regexp        PATTERN is a basic regular expression
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN as a regular expression
  -f, --file=FILE           obtain PATTERN from FILE
...
      --color[=WHEN],
      --colour[=WHEN]       use markers to distinguish the matching string
                            WHEN may be `always', `never' or `auto'.
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input.  If less than
two FILEs given, assume -h.  Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
12:27:28
$grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression
  -F, --fixed-strings       PATTERN is a set of newline-separated strings
  -G, --basic-regexp        PATTERN is a basic regular expression
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN as a regular expression
  -f, --file=FILE           obtain PATTERN from FILE
...
      --color[=WHEN],
      --colour[=WHEN]       use markers to distinguish the matching string
                            WHEN may be `always', `never' or `auto'.
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input.  If less than
two FILEs given, assume -h.  Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
12:27:28
$grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression
  -F, --fixed-strings       PATTERN is a set of newline-separated strings
  -G, --basic-regexp        PATTERN is a basic regular expression
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN as a regular expression
  -f, --file=FILE           obtain PATTERN from FILE
...
      --color[=WHEN],
      --colour[=WHEN]       use markers to distinguish the matching string
                            WHEN may be `always', `never' or `auto'.
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input.  If less than
two FILEs given, assume -h.  Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
12:27:28
$grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression
  -F, --fixed-strings       PATTERN is a set of newline-separated strings
  -G, --basic-regexp        PATTERN is a basic regular expression
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN as a regular expression
  -f, --file=FILE           obtain PATTERN from FILE
...
      --color[=WHEN],
      --colour[=WHEN]       use markers to distinguish the matching string
                            WHEN may be `always', `never' or `auto'.
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input.  If less than
two FILEs given, assume -h.  Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
12:27:28
$grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression
  -F, --fixed-strings       PATTERN is a set of newline-separated strings
  -G, --basic-regexp        PATTERN is a basic regular expression
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN as a regular expression
  -f, --file=FILE           obtain PATTERN from FILE
...
      --color[=WHEN],
      --colour[=WHEN]       use markers to distinguish the matching string
                            WHEN may be `always', `never' or `auto'.
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input.  If less than
two FILEs given, assume -h.  Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
12:27:28
$grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression
  -F, --fixed-strings       PATTERN is a set of newline-separated strings
  -G, --basic-regexp        PATTERN is a basic regular expression
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN as a regular expression
  -f, --file=FILE           obtain PATTERN from FILE
...
      --color[=WHEN],
      --colour[=WHEN]       use markers to distinguish the matching string
                            WHEN may be `always', `never' or `auto'.
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input.  If less than
two FILEs given, assume -h.  Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
12:27:28
$grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression
  -F, --fixed-strings       PATTERN is a set of newline-separated strings
  -G, --basic-regexp        PATTERN is a basic regular expression
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN as a regular expression
  -f, --file=FILE           obtain PATTERN from FILE
...
      --color[=WHEN],
      --colour[=WHEN]       use markers to distinguish the matching string
                            WHEN may be `always', `never' or `auto'.
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input.  If less than
two FILEs given, assume -h.  Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
12:27:28
$grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression
  -F, --fixed-strings       PATTERN is a set of newline-separated strings
  -G, --basic-regexp        PATTERN is a basic regular expression
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN as a regular expression
  -f, --file=FILE           obtain PATTERN from FILE
...
      --color[=WHEN],
      --colour[=WHEN]       use markers to distinguish the matching string
                            WHEN may be `always', `never' or `auto'.
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input.  If less than
two FILEs given, assume -h.  Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
12:27:28
$grep --help
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression
  -F, --fixed-strings       PATTERN is a set of newline-separated strings
  -G, --basic-regexp        PATTERN is a basic regular expression
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN as a regular expression
  -f, --file=FILE           obtain PATTERN from FILE
...
      --color[=WHEN],
      --colour[=WHEN]       use markers to distinguish the matching string
                            WHEN may be `always', `never' or `auto'.
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input.  If less than
two FILEs given, assume -h.  Exit status is 0 if match, 1 if no match,
and 2 if trouble.
Report bugs to <bug-gnu-utils@gnu.org>.
/dev/pts/0
12:27:51
$egrep " ([^ ]*) \1" ./inetd.conf
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
/dev/pts/0
12:28:22
$grep --help|less
12:28:22
$grep --help|less
12:28:22
$grep --help|less
12:28:22
$grep --help|less
12:28:22
$grep --help|less
12:28:22
$grep --help|less
12:28:22
$grep --help|less
12:28:22
$grep --help|less
12:28:22
$grep --help|less
12:29:07
$grep -x #.*net.*tcp.*bd inetd.conf
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
12:29:07
$grep -x #.*net.*tcp.*bd inetd.conf
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
12:29:07
$grep -x #.*net.*tcp.*bd inetd.conf
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
12:29:07
$grep -x #.*net.*tcp.*bd inetd.conf
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
12:29:07
$grep -x #.*net.*tcp.*bd inetd.conf
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
12:29:07
$grep -x #.*net.*tcp.*bd inetd.conf
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
12:29:07
$grep -x #.*net.*tcp.*bd inetd.conf
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
12:29:07
$grep -x #.*net.*tcp.*bd inetd.conf
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
12:29:07
$grep -x #.*net.*tcp.*bd inetd.conf
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
12:29:07
$grep -x #.*net.*tcp.*bd inetd.conf
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
12:29:07
$grep -x #.*net.*tcp.*bd inetd.conf
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
/dev/pts/0
12:29:19
$grep -x '#\ En.*td'/inetd.conf
# Enable the following two entries to enable samba startup from inetd
/dev/pts/0
12:29:30
$grep -x '.*net.*tcp.*bd'inetd.conf
#netbios-ssn stream tcp nowait          root    /usr/local/sbin/smbd    smbd
12:29:50
$egrep " ([^ ]*) \1"
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:29:50
$egrep " ([^ ]*) \1"
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:29:50
$egrep " ([^ ]*) \1"
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:29:50
$egrep " ([^ ]*) \1"
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:29:50
$egrep " ([^ ]*) \1"
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:29:50
$egrep " ([^ ]*) \1"
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:29:50
$egrep " ([^ ]*) \1"
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:29:50
$egrep " ([^ ]*) \1"
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:29:50
$egrep " ([^ ]*) \1"
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:29:50
$egrep " ([^ ]*) \1"
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:29:50
$egrep " ([^ ]*) \1"
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
/dev/pts/0
12:30:27
$egrep " ([^ ]*) \1" ./inetd.conf
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:30:38
$egrep '(root | xyz)[[:digit:]]{2,4}'

/dev/pts/0
12:33:43
$egrep " ([^ ]*) \1" inetd.conf
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:33:43
$egrep " ([^ ]*) \1" inetd.conf
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:33:43
$egrep " ([^ ]*) \1" inetd.conf
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:33:43
$egrep " ([^ ]*) \1" inetd.conf
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:33:43
$egrep " ([^ ]*) \1" inetd.conf
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:33:43
$egrep " ([^ ]*) \1" inetd.conf
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
12:33:43
$egrep " ([^ ]*) \1" inetd.conf
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
/dev/pts/0
12:33:55
$cat /etc/passwd|tr -c a 1|tr -d 1| wc -c
      40
/dev/pts/0
12:34:30
$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:34:49
$egrep '(root | tcp)[[:digit:]]{2,6}' ./inetd.conf

/dev/pts/0
12:34:54
$cat /etc/passwd|tr -c a 1|tr -d 1

12:35:16
$cat /etc/passwd|tr -c a 1|tr -d 1| wc -c
      40
12:35:26
$cat /etc/passwd|tr -c a 1|tr -d 1| wc -c
      40
/dev/pts/0
12:35:33
$egrep '(root | tcp)[[:digit:]]{1}' ./inetd.conf

12:35:47
$egrep " ([^ ]*) \1" ./inetd.conf
# about things due to Internet security concerns.  Only turn on what you
# CVS servers - for master CVS repositories only!  You must set the
#  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.
# (from the Samba documentation).  Enable the third entry to enable the swat
/dev/pts/0
12:38:06
$cat /etc/passwd|tr -c a 1|tr -d 1

12:38:11
$cat /etc/passwd|tr -c a 1

12:38:15
$cat /etc/passwd|tr -c a 1|tr -d 1

12:38:19
$cat /etc/passwd|tr -c a 1 | -d 1

12:38:28
$cat /etc/passwd|tr -c a 1|tr -d 1| wc -c
      40
12:38:38
$cat /etc/passwd |tr -c a 1

12:38:49
$cat /et | tr -c a 1 | tr -d 1 -c
      40
12:38:59
$cat /etc/passwd | tr -c a 1 | tr -d 1

12:39:02
$egrep " ([^ ]* \1" ssh_cong
egrep: Invalid back reference
/dev/pts/0
12:41:52
$pwd
/tmp/etc
/dev/pts/0
12:42:18
$egrep " ([^ ]* \1" /tmp/ong
egrep: Invalid back reference
12:42:27
$egrep " ([^ ]*)\1" /tmp/ssh_cong
# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Site-wide defaults for some commonly used options.  For a comprehensive
#   ForwardAgent no
#   ForwardX11 no
#   RhostsRSAAuthentication no
#   RSAAuthentication yes
...
#   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
12:42:41
$egrep " ([^ ]*) \1" /tmp/ssh_cong
# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Site-wide defaults for some commonly used options.  For a comprehensive
#   ForwardAgent no
#   ForwardX11 no
#   RhostsRSAAuthentication no
#   RSAAuthentication yes
...
#   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:42:50
$egrep " ([^ ]*) \1" inetd.conf|less
12:42:50
$egrep " ([^ ]*) \1" inetd.conf|less
12:42:50
$egrep " ([^ ]*) \1" inetd.conf|less
12:42:50
$egrep " ([^ ]*) \1" inetd.conf|less
12:42:50
$egrep " ([^ ]*) \1" inetd.conf|less
12:42:50
$egrep " ([^ ]*) \1" inetd.conf|less
12:42:50
$egrep " ([^ ]*) \1" inetd.conf|less
12:42:50
$egrep " ([^ ]*) \1" inetd.conf|less
/dev/pts/0
12:43:36
$grep FreeBSD ./inetd.conf
# $FreeBSD: src/etc/inetd.conf,v 1.73.10.2.6.1 2010/12/21 17:09:25 kensmith Exp $
/dev/pts/0
12:43:51
$lsinetd.conf|less
12:43:51
$lsinetd.conf|less
12:43:51
$lsinetd.conf|less
12:43:51
$lsinetd.conf|less
12:43:51
$lsinetd.conf|less
/dev/pts/0
12:44:08
$grep -n eBSD ./inetd.conf
1:# $FreeBSD: src/etc/inetd.conf,v 1.73.10.2.6.1 2010/12/21 17:09:25 kensmith Exp $
12:44:31
$cd ..

/dev/pts/0
12:45:32
$vimetd.conf
#
#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/qmaa
il/bin/qmail-smtpd
...
il/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
#auth   stream  tcp6    nowait  root    internalexec   msat   117,1         98%
12:45:32
$vimetd.conf
#
#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/qmaa
il/bin/qmail-smtpd
...
il/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
#auth   stream  tcp6    nowait  root    internalexec   msat   117,1         98%
12:45:32
$vimetd.conf
#
#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/qmaa
il/bin/qmail-smtpd
...
il/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
#auth   stream  tcp6    nowait  root    internalexec   msat   117,1         98%

Файлы

  • /etc/passwd
  • inetd.conf
  • /etc/passwd
    >
    # $FreeBSD: src/etc/master.passwd,v 1.40.22.1.6.1 2010/12/21 17:09:25 kensmith Exp $
    #
    root:*:0:0:Charlie &:/root:/usr/local/bin/bash
    toor:*:0:0:Bourne-again Superuser:/root:
    daemon:*:1:1:Owner of many system processes:/root:/usr/sbin/nologin
    operator:*:2:5:System &:/:/usr/sbin/nologin
    bin:*:3:7:Binaries Commands and Source:/:/usr/sbin/nologin
    tty:*:4:65533:Tty Sandbox:/:/usr/sbin/nologin
    kmem:*:5:65533:KMem Sandbox:/:/usr/sbin/nologin
    games:*:7:13:Games pseudo-user:/usr/games:/usr/sbin/nologin
    news:*:8:8:News Subsystem:/:/usr/sbin/nologin
    man:*:9:9:Mister Man Pages:/usr/share/man:/usr/sbin/nologin
    sshd:*:22:22:Secure Shell Daemon:/var/empty:/usr/sbin/nologin
    smmsp:*:25:25:Sendmail Submission User:/var/spool/clientmqueue:/usr/sbin/nologin
    mailnull:*:26:26:Sendmail Default User:/var/spool/mqueue:/usr/sbin/nologin
    bind:*:53:53:Bind Sandbox:/:/usr/sbin/nologin
    proxy:*:62:62:Packet Filter pseudo-user:/nonexistent:/usr/sbin/nologin
    _pflogd:*:64:64:pflogd privsep user:/var/empty:/usr/sbin/nologin
    _dhcp:*:65:65:dhcp programs:/var/empty:/usr/sbin/nologin
    uucp:*:66:66:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico
    pop:*:68:6:Post Office Owner:/nonexistent:/usr/sbin/nologin
    www:*:80:80:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
    nobody:*:65534:65534:Unprivileged user:/nonexistent:/usr/sbin/nologin
    user:*:1001:1001:User &:/home/user:/usr/local/bin/bash
    
    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:26:52 2012-11-28
    Время последней команды журнала12:45:32 2012-11-28
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %16.83
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 0.31
    Количество командных строк в единицу времени, команда/мин 5.41
    Частота использования команд
    grep40|===========================| 27.97%
    egrep36|=========================| 25.17%
    less22|===============| 15.38%
    cat14|=========| 9.79%
    tr12|========| 8.39%
    lsinetd.conf5|===| 3.50%
    wc4|==| 2.80%
    vimetd.conf3|==| 2.10%
    xyz)[[:digit:]]{2,4}'1|| 0.70%
    pwd1|| 0.70%
    tcp)[[:digit:]]{1}'1|| 0.70%
    sed1|| 0.70%
    -d1|| 0.70%
    tcp)[[:digit:]]{2,6}'1|| 0.70%
    cd1|| 0.70%
    ____
    *) Интервалы неактивности длительностью 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$