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

Содержание

Журнал

Пятница (09/11/09)

/dev/ttyp3
15:18:37
$ps awux |
user      2965  0.0  0.1   4624   744 ttyp6    R+   16:18   0:00 grep screen
15:18:53
$screen -w
15:18:57
$kill -9 1786

/dev/ttyp7
15:19:02
$screen -x
/dev/ttyp3
15:19:03
$screen -w
15:19:06
$screen
/dev/ttyp7
15:19:12
$screen -x
/dev/ttyp0
15:19:20
$ssh 192.168.16.254
  1 #!/bin/bash
  2 #set -x
  3 #rsync -az nt.ua:/tmp/test/ /backup-nt/test/ && echo rsync_is_done | ssh clint@nt.ua mail -s rsync_nt sergey.cherepenin@gmail.com
  4 route add -host nt.ua gw 10.0.1.1
  5 rsync -az nt.ua:/usr/www/nt.com.ua/ /backup-nt/nt.com.ua/ && ssh clint@nt.ua 'df -h | mail -s rsync_nt_done sergey.cherepenin@gmail.com'
  6 route del -host nt.ua gw 10.0.1.1
"/sbin/rsync_nt" 6L, 355C
/dev/ttyp8
15:19:28
$screen -x
/dev/ttyp0
15:28:12
$lspci --help
lspci: invalid option -- -
Usage: lspci [<switches>]
-v              Be verbose
-n              Show numeric ID's
-nn             Show both textual and numeric ID's (names & numbers)
-b              Bus-centric view (PCI addresses and IRQ's instead of those seen by the CPU)
-x              Show hex-dump of the standard portion of config space
-xxx            Show hex-dump of the whole config space (dangerous; root only)
-xxxx           Show hex-dump of the 4096-byte extended config space (root only)
-s [[[[<domain>]:]<bus>]:][<slot>][.[<func>]]   Show only devices in selected slots
-d [<vendor>]:[<device>]        Show only selected devices
-t              Show bus tree
-m              Produce machine-readable output
-i <file>       Use specified ID database instead of /usr/share/misc/pci.ids
-D              Always show domain numbers
-M              Enable `bus mapping' mode (dangerous; root only)
-P <dir>        Use specified directory instead of /proc/bus/pci
-H <mode>       Use direct hardware access (<mode> = 1 or 2)
-F <file>       Read configuration data from given file
-G              Enable PCI access debugging
прошло 15 минут
15:44:05
$whois
bash: whois: command not found
15:51:14
$sudo
Password:
Чтение списков пакетов... Готово
Построение дерева зависимостей... Готово
Будут установлены следующие дополнительные пакеты:
  libidn11
НОВЫЕ пакеты, которые будут установлены:
  libidn11 whois
обновлено 0, установлено 2 новых пакетов, для удаления отмечено 0 пакетов, и 55 пакетов не обновлено.
Необходимо скачать 163kБ архивов.
После распаковки объем занятого дискового пространства возрастёт на 594kB.
Хотите продолжить [Д/н]?
Получено:1 http://debian.org.ua etch/main libidn11 0.6.5-1 [116kB]
Получено:2 http://debian.org.ua etch/main whois 4.7.20 [47,7kB]
Получено 163kB за 0s (738kB/c)
Выбор ранее не выбранного пакета libidn11.
(Чтение базы данных... на данный момент установлено 23070 файлов и каталогов.)
Распаковывается пакет libidn11 (из файла .../libidn11_0.6.5-1_i386.deb)...
Выбор ранее не выбранного пакета whois.
Распаковывается пакет whois (из файла .../archives/whois_4.7.20_i386.deb)...
Настраивается пакет libidn11 (0.6.5-1) ...
Настраивается пакет whois (4.7.20) ...
15:51:30
$whois nt.ua | grep gmail
e-mail:         sergey.cherepenin@gmail.com

Понедельник (09/14/09)

/dev/ttyp2
19:28:55
$cd /tmp

19:28:57
$mkdir find

19:29:01
$cd find

19:29:03
$touch 1.cnf

19:29:07
$touch 1.conf

19:29:10
$touch 1.config

19:29:12
$find . -regex 1.*
find: пути должны быть перед выражением
Usage: find [-H] [-L] [-P] [path...] [expression]
19:29:23
$find . -regex 1\

19:29:26
$find . -regex 1\..

19:29:35
$find . -regex '

19:29:42
$find . -regex '1\.\(config\|cnf\|conf\)

19:30:06
$find . -regex '.*
./1.cnf
./1.config
./1.conf
19:30:20
$find . -regex '1

19:30:27
$find . -regex '\
find: Invalid back reference
19:30:34
$find . -regex '
./1.cnf
./1.config
./1.conf
19:30:54
$touch 123.c
[user@debian1:find]$ find . -regex '
./1.cnf
./1.config
./1.conf
19:31:00
$find . -regex '.*\(config\|cnf\|conf\)'
./1.cnf
./1.config
./1.conf
19:31:02
$ls
123.c  1.cnf  1.conf  1.config
19:31:05
$find . -regex '1

19:31:12
$find . -regex 1

19:31:20
$find . -regex '^1

19:31:59
$find . -regex '^1.*(config|cnf|conf

19:32:07
$find . -regex '^

19:32:11