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

Содержание

Журнал

Четверг (07/09/09)

/dev/ttyv2
19:28:18
#man logger
19:28:18
#man logger
19:28:18
#man logger
19:28:18
#man logger
19:28:44
#logger -p debug test

/dev/ttyp2
19:33:18
#vim /etc/newsyslog.conf
19:34:28
# 24 /var/log/cron^I^I^I^I600 3^I 10
             N       indicates that there is no process which needs to be sig-
     of the line, the `#' character and the rest of the line after it is
     ignored.  To prevent special meaning, the `#' character may be escaped
     with `\\'; in this case preceding `\\' is removed and `#' is treated as
     an ordinary character.  The fields of the configuration file are as fol-
     lows:
     logfile_name
             Name of the system log file to be archived, or the literal string
             ``<default>''.  The special default entry will only be used if a
             log file name is given as a command line argument to
...
                     it can be used as a placeholder to create a flags field
                     when you need to specify any of the following fields.
     path_to_pid_file
             This optional field specifies the file name containing a daemon's
             process ID or to find a group process ID if the U flag was speci-
             fied.  If this field is present, a signal_number is sent the
             process ID contained in this file.  If this field is not present,
             then a SIGHUP signal will be sent to syslogd(8), unless the N
             flag has been specified.  This field must start with `/' in order
             to be recognized properly.
19:34:28
# 24 /var/log/cron^I^I^I^I600 3^I 10
             N       indicates that there is no process which needs to be sig-
     of the line, the `#' character and the rest of the line after it is
     ignored.  To prevent special meaning, the `#' character may be escaped
     with `\\'; in this case preceding `\\' is removed and `#' is treated as
     an ordinary character.  The fields of the configuration file are as fol-
     lows:
     logfile_name
             Name of the system log file to be archived, or the literal string
             ``<default>''.  The special default entry will only be used if a
             log file name is given as a command line argument to
...
                     it can be used as a placeholder to create a flags field
                     when you need to specify any of the following fields.
     path_to_pid_file
             This optional field specifies the file name containing a daemon's
             process ID or to find a group process ID if the U flag was speci-
             fied.  If this field is present, a signal_number is sent the
             process ID contained in this file.  If this field is not present,
             then a SIGHUP signal will be sent to syslogd(8), unless the N
             flag has been specified.  This field must start with `/' in order
             to be recognized properly.
19:34:28
# 24 /var/log/cron^I^I^I^I600 3^I 10
             N       indicates that there is no process which needs to be sig-
     of the line, the `#' character and the rest of the line after it is
     ignored.  To prevent special meaning, the `#' character may be escaped
     with `\\'; in this case preceding `\\' is removed and `#' is treated as
     an ordinary character.  The fields of the configuration file are as fol-
     lows:
     logfile_name
             Name of the system log file to be archived, or the literal string
             ``<default>''.  The special default entry will only be used if a
             log file name is given as a command line argument to
...
                     it can be used as a placeholder to create a flags field
                     when you need to specify any of the following fields.
     path_to_pid_file
             This optional field specifies the file name containing a daemon's
             process ID or to find a group process ID if the U flag was speci-
             fied.  If this field is present, a signal_number is sent the
             process ID contained in this file.  If this field is not present,
             then a SIGHUP signal will be sent to syslogd(8), unless the N
             flag has been specified.  This field must start with `/' in order
             to be recognized properly.
19:34:28
# 24 /var/log/cron^I^I^I^I600 3^I 10
             N       indicates that there is no process which needs to be sig-
     of the line, the `#' character and the rest of the line after it is
     ignored.  To prevent special meaning, the `#' character may be escaped
     with `\\'; in this case preceding `\\' is removed and `#' is treated as
     an ordinary character.  The fields of the configuration file are as fol-
     lows:
     logfile_name
             Name of the system log file to be archived, or the literal string
             ``<default>''.  The special default entry will only be used if a
             log file name is given as a command line argument to
...
                     it can be used as a placeholder to create a flags field
                     when you need to specify any of the following fields.
     path_to_pid_file
             This optional field specifies the file name containing a daemon's
             process ID or to find a group process ID if the U flag was speci-
             fied.  If this field is present, a signal_number is sent the
             process ID contained in this file.  If this field is not present,
             then a SIGHUP signal will be sent to syslogd(8), unless the N
             flag has been specified.  This field must start with `/' in order
             to be recognized properly.
19:34:28
# 24 /var/log/cron^I^I^I^I600 3^I 10
             N       indicates that there is no process which needs to be sig-
     of the line, the `#' character and the rest of the line after it is
     ignored.  To prevent special meaning, the `#' character may be escaped
     with `\\'; in this case preceding `\\' is removed and `#' is treated as
     an ordinary character.  The fields of the configuration file are as fol-
     lows:
     logfile_name
             Name of the system log file to be archived, or the literal string
             ``<default>''.  The special default entry will only be used if a
             log file name is given as a command line argument to
...
                     it can be used as a placeholder to create a flags field
                     when you need to specify any of the following fields.
     path_to_pid_file
             This optional field specifies the file name containing a daemon's
             process ID or to find a group process ID if the U flag was speci-
             fied.  If this field is present, a signal_number is sent the
             process ID contained in this file.  If this field is not present,
             then a SIGHUP signal will be sent to syslogd(8), unless the N
             flag has been specified.  This field must start with `/' in order
             to be recognized properly.
19:34:28
# 24 /var/log/cron^I^I^I^I600 3^I 10
             N       indicates that there is no process which needs to be sig-
     of the line, the `#' character and the rest of the line after it is
     ignored.  To prevent special meaning, the `#' character may be escaped
     with `\\'; in this case preceding `\\' is removed and `#' is treated as
     an ordinary character.  The fields of the configuration file are as fol-
     lows:
     logfile_name
             Name of the system log file to be archived, or the literal string
             ``<default>''.  The special default entry will only be used if a
             log file name is given as a command line argument to
...
                     it can be used as a placeholder to create a flags field
                     when you need to specify any of the following fields.
     path_to_pid_file
             This optional field specifies the file name containing a daemon's
             process ID or to find a group process ID if the U flag was speci-
             fied.  If this field is present, a signal_number is sent the
             process ID contained in this file.  If this field is not present,
             then a SIGHUP signal will be sent to syslogd(8), unless the N
             flag has been specified.  This field must start with `/' in order
             to be recognized properly.
19:34:28
# 24 /var/log/cron^I^I^I^I600 3^I 10
             N       indicates that there is no process which needs to be sig-
     of the line, the `#' character and the rest of the line after it is
     ignored.  To prevent special meaning, the `#' character may be escaped
     with `\\'; in this case preceding `\\' is removed and `#' is treated as
     an ordinary character.  The fields of the configuration file are as fol-
     lows:
     logfile_name
             Name of the system log file to be archived, or the literal string
             ``<default>''.  The special default entry will only be used if a
             log file name is given as a command line argument to
...
                     it can be used as a placeholder to create a flags field
                     when you need to specify any of the following fields.
     path_to_pid_file
             This optional field specifies the file name containing a daemon's
             process ID or to find a group process ID if the U flag was speci-
             fied.  If this field is present, a signal_number is sent the
             process ID contained in this file.  If this field is not present,
             then a SIGHUP signal will be sent to syslogd(8), unless the N
             flag has been specified.  This field must start with `/' in order
             to be recognized properly.
19:34:28
# 24 /var/log/cron^I^I^I^I600 3^I 10
             N       indicates that there is no process which needs to be sig-
     of the line, the `#' character and the rest of the line after it is
     ignored.  To prevent special meaning, the `#' character may be escaped
     with `\\'; in this case preceding `\\' is removed and `#' is treated as
     an ordinary character.  The fields of the configuration file are as fol-
     lows:
     logfile_name
             Name of the system log file to be archived, or the literal string
             ``<default>''.  The special default entry will only be used if a
             log file name is given as a command line argument to
...
                     it can be used as a placeholder to create a flags field
                     when you need to specify any of the following fields.
     path_to_pid_file
             This optional field specifies the file name containing a daemon's
             process ID or to find a group process ID if the U flag was speci-
             fied.  If this field is present, a signal_number is sent the
             process ID contained in this file.  If this field is not present,
             then a SIGHUP signal will be sent to syslogd(8), unless the N
             flag has been specified.  This field must start with `/' in order
             to be recognized properly.
19:38:14
#vim /etc/newsyslog.conf
/dev/ttyv2
19:43:34
#logger -p debug test

19:43:46
#bg
bash: bg: current: no such job
19:43:51
#tail -f /var/log/debug
tail: /var/log/debug: No such file or directory
19:44:16
#ssh quiz@192.168.16.254
----------------------------------------------------------------------
 +----------------------------------
 | ТЕМЫ ПЕРВОГО ДНЯ
 | man, shell, vi, screen
 | Общее количество вопросов: 40
 | Вам будут заданы вопросы и показаны варианты ответа на них.
 | После каждого вопроса вы должны вводить номер варианта ответа, который вы считаете наиболее правильным.
 | После ввода номера нужно нажимать <ENTER>.
 | Возвращаться назад и менять ответ, после того как вы нажали <ENTER>, нельзя.
 | Прерывать сеанс нельзя (прерывать можно, но продолжить не получится).
...
 | Вопросы связаны между собой.
 | Для ответа на вопрос 20 может потребоваться информация,
 | которая сообщалась в вопросе 10.
 | Вопросы и ответы читайте внимательно.
 | Вопросов "на внимательность" хотя и мало, но они есть.
 | НАЧИНАЕМ!
 | (ENTER)
 +----------------------------------
---------------------------------------------------------------------------
Connection to 192.168.16.254 closed.

Пятница (07/10/09)

16:56:30
#crontab -e
~
~
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
~
~
crontab: no changes made to crontab
прошло 19 минут
17:15:58
#eixt
bash: eixt: command not found
17:15:58
#eixt
bash: eixt: command not found
17:15:58
#eixt
bash: eixt: command not found
17:15:58
#eixt
bash: eixt: command not found
17:15:58
#eixt
bash: eixt: command not found
17:15:58
#eixt
bash: eixt: command not found
17:15:58
#eixt
bash: eixt: command not found
прошло 19 минут
/dev/ttyv2
17:35:51
#õþûå
bash: õþûå: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
17:35:51
#õþûå
bash: õþûå: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
17:35:51
#õþûå
bash: õþûå: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
17:35:51
#õþûå
bash: õþûå: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
17:35:51
#õþûå
bash: õþûå: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
17:35:51
#õþûå
bash: õþûå: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
17:35:51
#õþûå
bash: õþûå: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
17:35:51
#õþûå
bash: õþûå: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
17:35:51
#õþûå
bash: õþûå: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
17:35:51
#õþûå
bash: õþûå: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
17:35:51
#õþûå
bash: õþûå: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
прошло >2 часов
/dev/ttyp2
19:58:17
#pkg_info -x cowsay
pkg_info: no packages match pattern(s)
19:58:17
#pkg_info -x cowsay
pkg_info: no packages match pattern(s)
19:58:17
#pkg_info -x cowsay
pkg_info: no packages match pattern(s)
19:58:30
#cd /usr/ports/games/cowsay/

19:58:30
#cd /usr/ports/games/cowsay/

19:58:30
#cd /usr/ports/games/cowsay/

19:58:30
#cd /usr/ports/games/cowsay/

19:58:41
#ls
Makefile        distinfo        files           pkg-descr       pkg-plist
19:58:41
#ls
Makefile        distinfo        files           pkg-descr       pkg-plist
19:58:41
#ls
Makefile        distinfo        files           pkg-descr       pkg-plist
19:58:41
#ls
Makefile        distinfo        files           pkg-descr       pkg-plist
19:58:42
#vim distinfo
19:58:42
#vim distinfo
19:58:48
#vim pkg-
19:58:48
#vim pkg-
19:58:48
#vim pkg-descr
19:58:48
#vim pkg-descr
19:58:48
#vim pkg-descr
19:58:48
#vim pkg-descr
19:58:57
#~
pkg-descr  pkg-plist
19:58:57
#~
pkg-descr  pkg-plist
19:58:57
#~
pkg-descr  pkg-plist
19:58:57
#~
pkg-descr  pkg-plist
19:58:57
#vim pkg-plist
19:58:57
#vim pkg-plist
19:59:03
#~

19:59:03
#~

19:59:04
#ls
Makefile        distinfo        files           pkg-descr       pkg-plist
19:59:04
#ls
Makefile        distinfo        files           pkg-descr       pkg-plist
19:59:06
#vim distinfo
19:59:06
#vim distinfo
19:59:06
#vim distinfo
19:59:06
#vim distinfo
19:59:06
#vim distinfo
19:59:06
#vim distinfo
19:59:12
#~
Makefile        distinfo        files           pkg-descr       pkg-plist
19:59:12
#~
Makefile        distinfo        files           pkg-descr       pkg-plist
19:59:12
#~
Makefile        distinfo        files           pkg-descr       pkg-plist
19:59:12
#~
Makefile        distinfo        files           pkg-descr       pkg-plist
19:59:12
#~
Makefile        distinfo        files           pkg-descr       pkg-plist
19:59:12
#~
Makefile        distinfo        files           pkg-descr       pkg-plist
19:59:14
#ls Makefile
Makefile
19:59:14
#ls Makefile
Makefile
19:59:14
#ls Makefile
Makefile
19:59:26
#ls
Makefile        distinfo        files           pkg-descr       pkg-plist
19:59:26
#ls
Makefile        distinfo        files           pkg-descr       pkg-plist
19:59:26
#ls
Makefile        distinfo        files           pkg-descr       pkg-plist
19:59:26
#ls
Makefile        distinfo        files           pkg-descr       pkg-plist
19:59:26
#ls
Makefile        distinfo        files           pkg-descr       pkg-plist
19:59:26
#ls
Makefile        distinfo        files           pkg-descr       pkg-plist
19:59:35
#vim Makefile
19:59:35