1 scp
sudo scp abc root@192.168.1.1:/home/
sudo mount -s smbfs -o username=root //192.168.1.1/share /homesudo 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
:<<BLOCK
BLOCK
5.string test
[ string1 operator string2]
=
!=
-z //null string
-n //not empty string
6. number test
-eq -ne//equal,not equal
-lt -gt//less than, greater than
-le -ge//less and equal, greater and equal
7. make
mm 2>&1 | tee abc.txt