scp/ftp and shell
1 scpsudo scp abcroot@192.168.1.1:/home/
sudo mount -s smbfs -o username=root //192.168.1.1/share /home
sudo mount -t ntfs UUID="966A4B803710F028" -w /media/D
2ftp
cd dir //enter dir of the server
lcd dir //enter the dir of local host
get Path/file//get file
put Path/file //put file
3.shell parameters
$@all parameters
$# number of parameters
$? last shell's result
$0 name of shell
$* all paremeters
2.shell file test
[-e "file"]
-e //if exist
-w //writable
-r //readable
-x //executable
-d //is dir
-f //if regular ifle
-s //if empty
-v //do have suid
multiple condition
[ -e "file" -a -r "file"]
-a //and,&&
-o //or,||
4.shell comment
:
页:
[1]