/l3/users/14-01-2013/NT-BSDadm/freebsd2.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 |
|
$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 |
$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 |
$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 |
$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 |
$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 |
$echo "asdfghj"
![]() asdfghj |
$echo "asdfghj"
![]() asdfghj |
$echo "asdfghj"
![]() asdfghj |
$echo "asdfghj"
asdfghj |
$read answer
![]() case $answer in |
$read answer
![]() case $answer in |
$read answer
![]() case $answer in |
$read answer
case $answer in |
$"man" | "info" )
![]() su: syntax error near unexpected token `)' |
$"man" | "info" )
![]() su: syntax error near unexpected token `)' |
$"man" | "info" )
![]() su: syntax error near unexpected token `)' |
$"man" | "info" )
![]() su: syntax error near unexpected token `)' |
$case $ansver in
![]() > ^C |
$case $ansver in
![]() > ^C |
$case $ansver in
![]() > ^C |
$case $ansver in
![]() > ^C |
$case $answer n
![]() > "man" | "info" ) > echo 'you right' > ;; > "whatis" | "apropos" ) > echo 'not right' > ;; > *) echo 'lol' > ;; > esac lol |
$case $answer n
![]() > "man" | "info" ) > echo 'you right' > ;; > "whatis" | "apropos" ) > echo 'not right' > ;; > *) echo 'lol' > ;; > esac lol |
$case $answer n
![]() > "man" | "info" ) > echo 'you right' > ;; > "whatis" | "apropos" ) > echo 'not right' > ;; > *) echo 'lol' > ;; > esac lol |
$case $answer n
> "man" | "info" ) > echo 'you right' > ;; > "whatis" | "apropos" ) > echo 'not right' > ;; > *) echo 'lol' > ;; > esac lol |
$case $answer in "man" | "info" ) echo 'you right'; ;; "whatis" | "apropos"
![]() lol |
$case $answer in "man" | "info" ) echo 'you right'; ;; "whatis" | "apropos"
![]() lol |
$case $answer in "man" | "info" ) echo 'you right'; ;; "whatis" | "apropos"
![]() lol |
$case $answer in "man" | "info" ) echo 'you right'; ;; "whatis" | "apropos"
lol |
$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 > } |
$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 > } |
$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 > } |
$func
![]() No parameters passed to function. |
$func
![]() No parameters passed to function. |
$func
No parameters passed to function. |
$func first
![]() Param #1 is first. |
$func first
Param #1 is first. |
$func first second
![]() Param #1 is first. Parameter #2 is second. |
$func first second
![]() Param #1 is first. Parameter #2 is second. |
$func first second
![]() Param #1 is first. Parameter #2 is second. |
$func first second
Param #1 is first. Parameter #2 is second. |
$func 2
![]() Param #1 is 2. |
$func 2
![]() Param #1 is 2. |
$func 2
![]() Param #1 is 2. |
$func 2
Param #1 is 2. |
$func Koly Vasechkin
![]() Param #1 is Koly. Parameter #2 is Vasechkin. |
$func Koly Vasechkin
![]() Param #1 is Koly. Parameter #2 is Vasechkin. |
$func Koly Vasechkin
![]() Param #1 is Koly. Parameter #2 is Vasechkin. |
$func Koly Vasechkin
Param #1 is Koly. Parameter #2 is Vasechkin. |
$exit
![]() exit |
$exit
![]() exit |
$exit
![]() exit |
$exit
exit |
#cp ~/mymotd /etc/motd
![]() cp: /root/mymotd: No such file or directory |
#cp ~/mymotd /etc/motd
![]() cp: /root/mymotd: No such file or directory |
#cp ~/mymotd /etc/motd
![]() cp: /root/mymotd: No such file or directory |
#cd
![]() |
#cd
![]() |
#cd
![]() |
#cd
|
#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 |
#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 |
#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 |
#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 |