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

Содержание

Журнал

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

11:36:58
$echo $?
0
11:37:00
$test -e /etc/motd

11:37:37
$echo $?
0
11:37:37
$test -e /etc/motd23

11:37:44
$echo $?
1
11:37:46
$test -d

11:38:07
$echo $?
0
11:38:09
$test -r /etc/master.passwd

11:38:39
$echo $?
1
11:38:41
$test -k /tmp

11:39:08
$echo $?
0
11:39:08
$test -w /etc/passwd

11:39:35
$echo $?
1
11:39:37
$test 5 -gt 10

11:41:10
$echo $?
1
11:41:11
$test 10 -gt 5

11:41:24
$echo $?
0
/dev/ttyp0
11:44:21
$echo "Ваш любимый цвет?" : read FAV_COL ; \
>
Ваш любимый цвет? : read FAV_COL
11:46:51
$echo "Ваш любимый цвет?" : read FAV_COL ;
Ваш любимый цвет? : read FAV_COL
11:46:52
$echo "Ваш любимый цвет?" : read FAV_COL ;
Ваш любимый цвет? : read FAV_COL
11:47:15
$echo "Ваш любимый цвет?" : read FAV_COL ; Red
Ваш любимый цвет? : read FAV_COL
bash: Red: command not found
11:47:17
$echo "Ваш любимый цвет?" : read FAV_COL ;
Ваш любимый цвет? : read FAV_COL
11:47:19
$echo "Ваш любимый цвет?" : read FAV_COL ;
Ваш любимый цвет? : read FAV_COL
11:48:04
$echo "Ваш любимый цвет?"
Ваш любимый цвет?
Red
11:48:22
$for file in /etc/* ; do ; [ -r $file ] || echo $file ;
bash: syntax error near unexpected token `;'
11:52:17
$for file in /etc/* ; do ; [ -r $file ] || echo $file ; done ;
bash: syntax error near unexpected token `;'
11:52:25
$for file in /etc/* ; do
/etc/group-
/etc/gshadow
/etc/gshadow-
/etc/shadow
/etc/shadow-
/etc/sudoers
11:52:35
$for file in /etc/* ; do [ -w
[user@debian2:~]$ for file in /etc/* ; do
/etc/group-
/etc/gshadow
/etc/gshadow-
/etc/shadow
/etc/shadow-
/etc/sudoers
/etc/adduser.conf
/etc/adjtime
/etc/alternatives
...
/etc/texmf
/etc/timezone
/etc/ucf.conf
/etc/udev
/etc/updatedb.conf
/etc/vim
/etc/vnc.conf
/etc/wgetrc
/etc/X11
/etc/xpdf
11:53:09
$for file in /etc/* ; do [ -x
/etc/adduser.conf
/etc/adjtime
/etc/bash.bashrc
/etc/bash_completion
/etc/console-cyrillic
/etc/crontab
/etc/debconf.conf
/etc/debian_version
/etc/deluser.conf
/etc/fstab
...
/etc/shadow-
/etc/shells
/etc/sudoers
/etc/sysctl.conf
/etc/syslog.conf
/etc/timezone
/etc/ucf.conf
/etc/updatedb.conf
/etc/vnc.conf
/etc/wgetrc
11:53:16
$for file in /etc/* ; do [ -r
/etc/group-
/etc/gshadow
/etc/gshadow-
/etc/shadow
/etc/shadow-
/etc/sudoers
11:59:37
$for file in /etc/* ; do [ -r $file ] || echo $file ; d

11:59:37
$whatis $ping
whatis что?
12:00:10
$whatis $mount
whatis что?
12:00:43
$whatis $mount

12:00:43
$whatis $command
make (1)             - GNU make utility to maintain groups of programs
12:01:06
$whatis make
make (1)             - GNU make utility to maintain groups of programs
12:03:22
$ping 82.144.212.176
PING 82.144.212.176 (82.144.212.176) 56(84) bytes of data.
From 82.144.194.5 icmp_seq=1 Destination Host Unreachable
From 82.144.194.5 icmp_seq=2 Destination Host Unreachable
From 82.144.194.5 icmp_seq=3 Destination Host Unreachable
From 82.144.194.5 icmp_seq=4 Destination Host Unreachable
From 82.144.194.5 icmp_seq=5 Destination Host Unreachable
From 82.144.194.5 icmp_seq=6 Destination Host Unreachable
From 82.144.194.5 icmp_seq=7 Destination Host Unreachable
From 82.144.194.5 icmp_seq=8 Destination Host Unreachable
From 82.144.194.5 icmp_seq=9 Destination Host Unreachable
From 82.144.194.5 icmp_seq=10 Destination Host Unreachable
From 82.144.194.5 icmp_seq=11 Destination Host Unreachable
From 82.144.194.5 icmp_seq=12 Destination Host Unreachable
From 82.144.194.5 icmp_seq=13 Destination Host Unreachable
From 82.144.194.5 icmp_seq=14 Destination Host Unreachable
From 82.144.194.5 icmp_seq=15 Destination Host Unreachable
--- 82.144.212.176 ping statistics ---
17 packets transmitted, 0 received, +15 errors, 100% packet loss, time 16046ms
, pipe 3
12:03:45
$ping 82.144.212.176

12:05:05
$ping 82.144.212.176
[user@debian2:~]$ ping 82.144.212.176
PING 82.144.212.176 (82.144.212.176) 56(84) bytes of data.
From 82.144.194.5 icmp_seq=1 Destination Host Unreachable
From 82.144.194.5 icmp_seq=2 Destination Host Unreachable
From 82.144.194.5 icmp_seq=3 Destination Host Unreachable
From 82.144.194.5 icmp_seq=4 Destination Host Unreachable
From 82.144.194.5 icmp_seq=5 Destination Host Unreachable
From 82.144.194.5 icmp_seq=6 Destination Host Unreachable
From 82.144.194.5 icmp_seq=7 Destination Host Unreachable
From 82.144.194.5 icmp_seq=8 Destination Host Unreachable
...
PING 82.144.212.176 (82.144.212.176) 56(84) bytes of data.
From 82.144.194.5 icmp_seq=1 Destination Host Unreachable
From 82.144.194.5 icmp_seq=2 Destination Host Unreachable
From 82.144.194.5 icmp_seq=3 Destination Host Unreachable
From 82.144.194.5 icmp_seq=4 Destination Host Unreachable
From 82.144.194.5 icmp_seq=5 Destination Host Unreachable
From 82.144.194.5 icmp_seq=6 Destination Host Unreachable
--- 82.144.212.176 ping statistics ---
9 packets transmitted, 0 received, +6 errors, 100% packet loss, time 8021ms
, pipe 3
12:05:27
$ping 82.144.212.176

12:06:48
$ping 82.144.212.176
[user@debian2:~]$ ping 82.144.212.176
PING 82.144.212.176 (82.144.212.176) 56(84) bytes of data.
From 82.144.194.5 icmp_seq=1 Destination Host Unreachable
From 82.144.194.5 icmp_seq=2 Destination Host Unreachable
From 82.144.194.5 icmp_seq=3 Destination Host Unreachable
From 82.144.194.5 icmp_seq=4 Destination Host Unreachable
From 82.144.194.5 icmp_seq=5 Destination Host Unreachable
From 82.144.194.5 icmp_seq=6 Destination Host Unreachable
^[[A^[[B
--- 82.144.212.176 ping statistics ---
44 packets transmitted, 0 received, +6 errors, 100% packet loss, time 43023ms
, pipe 3
PING 82.144.212.176 (82.144.212.176) 56(84) bytes of data.
--- 82.144.212.176 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2003ms
12:06:55