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

Содержание

Журнал

Среда (01/16/13)

/dev/pts/0
16:58:35
$for file in /etc/*
> do
> [ -r $file ] || echo $file
> done
/etc/master.passwd
/etc/nsmb.conf
/etc/ntp
/etc/opieaccess
/etc/opiekeys
/etc/spwd.db
16:59:37
$echo 'O kakoi komande vi hotite poluchit infu?' ; \
> select command in man touch mount make exit clear
> do
> whatis $command
> break
> done
O kakoi komande vi hotite poluchit infu?
1) man
2) touch
3) mount
4) make
5) exit
6) clear
#? 2
touch(1)                 - change file access and modification times
16:59:37
$echo 'O kakoi komande vi hotite poluchit infu?' ; \
> select command in man touch mount make exit clear
> do
> whatis $command
> break
> done
O kakoi komande vi hotite poluchit infu?
1) man
2) touch
3) mount
4) make
5) exit
6) clear
#? 2
touch(1)                 - change file access and modification times
16:59:37
$echo 'O kakoi komande vi hotite poluchit infu?' ; \
> select command in man touch mount make exit clear
> do
> whatis $command
> break
> done
O kakoi komande vi hotite poluchit infu?
1) man
2) touch
3) mount
4) make
5) exit
6) clear
#? 2
touch(1)                 - change file access and modification times
16:59:37
$echo 'O kakoi komande vi hotite poluchit infu?' ; \
> select command in man touch mount make exit clear
> do
> whatis $command
> break
> done
O kakoi komande vi hotite poluchit infu?
1) man
2) touch
3) mount
4) make
5) exit
6) clear
#? 2
touch(1)                 - change file access and modification times
17:06:03
$echo "asdfghj"
asdfghj
17:06:03
$echo "asdfghj"
asdfghj
17:06:03
$echo "asdfghj"
asdfghj
17:06:03
$echo "asdfghj"
asdfghj
17:08:35
$read answer
case $answer in
17:08:35
$read answer
case $answer in
17:08:35
$read answer
case $answer in
17:08:35
$read answer
case $answer in
17:09:12
$"man" | "info" )
su: syntax error near unexpected token `)'
17:09:12
$"man" | "info" )
su: syntax error near unexpected token `)'
17:09:12
$"man" | "info" )
su: syntax error near unexpected token `)'
17:09:12
$"man" | "info" )
su: syntax error near unexpected token `)'
17:09:39
$case $ansver in
> ^C
17:09:39
$case $ansver in
> ^C
17:09:39
$case $ansver in
> ^C
17:09:39
$case $ansver in
> ^C
17:10:57
$case $answer n
> "man" | "info" )
> echo 'you right'
> ;;
> "whatis" | "apropos" )
> echo 'not right'
> ;;
> *) echo 'lol'
> ;;
> esac
lol
17:10:57
$case $answer n
> "man" | "info" )
> echo 'you right'
> ;;
> "whatis" | "apropos" )
> echo 'not right'
> ;;
> *) echo 'lol'
> ;;
> esac
lol
17:10:57
$case $answer n
> "man" | "info" )
> echo 'you right'
> ;;
> "whatis" | "apropos" )
> echo 'not right'
> ;;
> *) echo 'lol'
> ;;
> esac
lol
17:10:57
$case $answer n
> "man" | "info" )
> echo 'you right'
> ;;
> "whatis" | "apropos" )
> echo 'not right'
> ;;
> *) echo 'lol'
> ;;
> esac
lol
17:14:08
$case $answer in "man" | "info" ) echo 'you right'; ;; "whatis" | "apropos"
lol
17:14:08
$case $answer in "man" | "info" ) echo 'you right'; ;; "whatis" | "apropos"
lol
17:14:08
$case $answer in "man" | "info" ) echo 'you right'; ;; "whatis" | "apropos"
lol
17:14:08
$case $answer in "man" | "info" ) echo 'you right'; ;; "whatis" | "apropos"
lol
17:15:57
$func () {
> if [ -z "$1" ]
> then
> echo "No parameters passed to function."
> return 0
> else
> echo "Param #1 is $1."
> fi
> if [ "$2" ]
> then
> echo
> echo "Parameter #2 is $2."
> fi
> }
17:15:57
$func () {
> if [ -z "$1" ]
> then
> echo "No parameters passed to function."
> return 0
> else
> echo "Param #1 is $1."
> fi
> if [ "$2" ]
> then
> echo
> echo "Parameter #2 is $2."
> fi
> }
17:15:57
$func () {
> if [ -z "$1" ]
> then
> echo "No parameters passed to function."
> return 0
> else
> echo "Param #1 is $1."
> fi
> if [ "$2" ]
> then
> echo
> echo "Parameter #2 is $2."
> fi
> }
17:19:03
$func
No parameters passed to function.
17:19:03
$func
No parameters passed to function.
17:19:03
$func
No parameters passed to function.
17:19:09
$func first
Param #1 is first.
17:19:09
$func first
Param #1 is first.
17:19:20
$func first second
Param #1 is first.
Parameter #2 is second.
17:19:20
$func first second
Param #1 is first.
Parameter #2 is second.
17:19:20
$func first second
Param #1 is first.
Parameter #2 is second.
17:19:20
$func first second
Param #1 is first.
Parameter #2 is second.
17:19:29
$func 2
Param #1 is 2.
17:19:29
$func 2
Param #1 is 2.
17:19:29
$func 2
Param #1 is 2.
17:19:29
$func 2
Param #1 is 2.
17:20:38
$func Koly Vasechkin
Param #1 is Koly.
Parameter #2 is Vasechkin.
17:20:38
$func Koly Vasechkin
Param #1 is Koly.
Parameter #2 is Vasechkin.
17:20:38
$func Koly Vasechkin
Param #1 is Koly.
Parameter #2 is Vasechkin.
17:20:38
$func Koly Vasechkin
Param #1 is Koly.
Parameter #2 is Vasechkin.
17:20:54
$exit
exit
17:20:54
$exit
exit
17:20:54
$exit
exit
17:20:54
$exit
exit

Четверг (01/17/13)

/dev/pts/1
13:06:01
#cp ~/mymotd /etc/motd
cp: /root/mymotd: No such file or directory
13:06:01
#cp ~/mymotd /etc/motd
cp: /root/mymotd: No such file or directory
13:06:01
#cp ~/mymotd /etc/motd
cp: /root/mymotd: No such file or directory
13:06:01
#cp ~/mymotd /etc/motd
cp: /root/mymotd: No such file or directory
13:06:39
#cd

13:06:39
#cd

13:06:39
#cd

13:06:39
#cd

13:06:44
#vi/mymotd
~
~
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
~
~
:q
13:06:44
#vi/mymotd
~
~
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
~
~
:q
13:06:44
#vi/mymotd
~
~
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
~
~
:q
13:06:44
#vi/mymotd
~
~
~
~
~
~
~
~
~
~
...
~
~
~
~
~
~
~
~
~
:q
13:07:23
#vi ~/mymotd
--- /dev/null	2013-01-17 14:15:56.000000000 +0200
+++ /root/mymotd	2013-01-17 14:16:04.000000000 +0200
@@ -0,0 +1 @@
+Hi Wasya PupkiN
13:07:23
#vi ~/mymotd
--- /dev/null	2013-01-17 14:15:56.000000000 +0200
+++ /root/mymotd	2013-01-17 14:16:04.000000000 +0200
@@ -0,0 +1 @@
+Hi Wasya PupkiN
13:07:23
#vi ~/mymotd
--- /dev/null	2013-01-17 14:15:56.000000000 +0200
+++ /root/mymotd	2013-01-17 14:16:04.000000000 +0200
@@ -0,0 +1 @@
+Hi Wasya PupkiN
13:07:23
#vi ~/mymotd
--- /dev/null	2013-01-17 14:15:56.000000000 +0200
+++ /root/mymotd	2013-01-17 14:16:04.000000000 +0200
@@ -0,0 +1 @@
+Hi Wasya PupkiN
/dev/pts/0
13:08:30
#find mymotd
find: mymotd: No such file or directory
13:08:30