psftp 实用的经验

open zlb@202.116.112.35

 

lcd 

cd

 

ls 远程目录

!dir 查看本地目录

 

pwd

lpwd

 

put [-r]  get  [-r]

mput mget

rm  del

mkdir mv

 

chmod命令
  其参数u, g, o, a, +, -, r, w, x涵义分别是:
  u (the owning user)文档所有者 
  g (members of the owning group)组成员 
  o (everybody else - ‘others’)其它所有人 
  a (‘all’, everyone)所有人 
  + 加上(授予) 
  - 减去(剥夺) 
  r (permission to read the file)读 
  w (permission to write to the file)写 
  x (permission to execute the file)运行 
  chmod go-rwx,u+w privatefile
  上面代码的涵义是剥夺组成员及其它任何人的读写运行权限,授予文件所有者写权限也(也就是私人文档)
  chmod a+r public*
  上面代码的涵义授予所有人读权限(也就是公开公开公开)
  直接用权限数字代码也可以
  chmod 640 groupfile1 groupfile2

 

文件名中有空格时使用双引号
  如”space name.txt”

 

 使用通配符
  * 代替任何字串 
  ? 替代一个字母 
  [abc] 在a b c范围内替代一个字母 
  [a-z] 在a到z范围内替代一个字母 
  [^abc] 替代一个字母,不包括a b cmatches a single character that is not a, b, or c. 
  [-a] 代表连接号(-) 
  [a^] 代表脱字符号(^) 
  / 放在上面的所有通配符之前,以取消其(通配符)涵义 
  (文件夹名称不支持通配符)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值