scp/ftp and shell

本文全面介绍了信息技术领域的基础知识到高级应用,涵盖了前端开发、后端开发、移动开发、游戏开发、大数据开发等核心部分,深入探讨了开发工具、嵌入式开发、音视频基础、AI音视频处理等热门话题,旨在为读者提供一个全面的技术视角。

1 scp

sudo scp abc  root@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
:<<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

转载于:https://www.cnblogs.com/elfylin/archive/2012/04/05/2433812.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值