通过xshell命令方式下载文件

1.Help 查看sftp支持哪些命令

bye     finish your SFTP session
cd      change your remote working directory
clear   clear screen
exit    finish your SFTP session
explore explore your local directory
get     download a file from the server to your local machine
help    give help
lcd     change and/or print local working directory
lls     list contents of a local directory
lpwd    print your local working directory
ls      list contents of a remote directory
mkdir   create a directory on the remote server
mv      move or rename a file on the remote server
put     upload a file from your local machine to the server
pwd     print your remote working directory
quit    finish your SFTP session
rename  move or rename a file on the remote server
rm      delete a file
rmdir   remove a directory on the remote server


2.直接cd 有权限的目录下 ,ls 查看目录下的文件, 登录账号如果没有权限查看其他目录下会报错permission denied ,表示没有权限
3.输入 get 下载的文件名 ,直接可以下载到默认的本地目录下
4.查看本地下载的目录 lpwd 回车
5.更改本地下载的目录 lcd e:/ ,表示更改下载目录为e盘根目录
6.上传文件
(1)cd 到需要上传文件的目录
(2)put 本地文件默认上传位置的文件名 ,表示直接上传到当前目录

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值