| /l3/users/27-07-2009/nt-ladm/debian2.net.nt/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 |
|
|
$echo $?
0 |
|
$test -e /etc/motd
|
|
$echo $?
0 |
|
$test -e /etc/motd23
|
|
$echo $?
1 |
|
$test -d
|
|
$echo $?
0 |
|
$test -r /etc/master.passwd
|
|
$echo $?
1 |
|
$test -k /tmp
|
|
$echo $?
0 |
|
$test -w /etc/passwd
|
|
$echo $?
1 |
|
$test 5 -gt 10
|
|
$echo $?
1 |
|
$test 10 -gt 5
|
|
$echo $?
0 |
|
$echo "Ваш любимый цвет?" : read FAV_COL ;
Ваш любимый цвет? : read FAV_COL |
|
$echo "Ваш любимый цвет?" : read FAV_COL ;
Ваш любимый цвет? : read FAV_COL |
|
$echo "Ваш любимый цвет?" : read FAV_COL ; Red
Ваш любимый цвет? : read FAV_COL bash: Red: command not found |
|
$echo "Ваш любимый цвет?" : read FAV_COL ;
Ваш любимый цвет? : read FAV_COL |
|
$echo "Ваш любимый цвет?" : read FAV_COL ;
Ваш любимый цвет? : read FAV_COL |
|
$echo "Ваш любимый цвет?"
Ваш любимый цвет? Red |
|
$for file in /etc/* ; do ; [ -r $file ] || echo $file ;
bash: syntax error near unexpected token `;' |
|
$for file in /etc/* ; do ; [ -r $file ] || echo $file ; done ;
bash: syntax error near unexpected token `;' |
|
$for file in /etc/* ; do
/etc/group- /etc/gshadow /etc/gshadow- /etc/shadow /etc/shadow- /etc/sudoers |
|
$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 |
|
$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 |
|
$for file in /etc/* ; do [ -r
/etc/group- /etc/gshadow /etc/gshadow- /etc/shadow /etc/shadow- /etc/sudoers |
|
$for file in /etc/* ; do [ -r $file ] || echo $file ; d
|
|
$whatis $ping
whatis что? |
|
$whatis $mount
whatis что? |
|
$whatis $mount
|
|
$whatis $command
make (1) - GNU make utility to maintain groups of programs |
|
$whatis make
make (1) - GNU make utility to maintain groups of programs |
|
$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 |
|
$ping 82.144.212.176
|
|
$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 |
|
$ping 82.144.212.176
|
|
$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 |