XShell工具sftp使用

简介:

关于如何在Linux与linux,以及linux与windows之前传输文件,如下

sftp:/home/test> help

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

sftp:/home/test>

这里主要是介绍windows与linux文件传输,其中比较常用的命令如下:

1、get

从远程服务器上下载一个文件存放到本地,如下:

先通过lcd切换到本地那个目录下,然后通过get file

>> lcd d:\             //表示切换到本地的d盘下

>> get ./test.sql  //这样就将当前文件下载本地的d盘下

2、put

是将本地的文件上传到远程服务器上,如下:

>>  put        //在windows下弹出选择文件的窗口

3、lcd

先通过lcd切换到本地那个目录下

>> lcd d:\             //表示切换到本地的d盘下

4、lls

显示当前目录下的所有文件

5、pwd

显示当前目录

 

 

 








本文转自一米一阳光博客园博客,原文链接:http://www.cnblogs.com/candle806/archive/2013/01/31/2886735.html    ,如需转载请自行联系原作者


相关文章
|
1月前
|
网络协议 Ubuntu Linux
「远程开发」VSCode使用SSH远程linux服务器 - 公网远程连接
「远程开发」VSCode使用SSH远程linux服务器 - 公网远程连接
122 0
|
6月前
|
安全 Linux 网络安全
【工具使用】几款优秀的SSH连接客户端软件工具推荐FinalShell、Xshell、MobaXterm、OpenSSH、PUTTY、Terminus、mRemoteNG、Terminals等
【工具使用】几款优秀的SSH连接客户端软件工具推荐FinalShell、Xshell、MobaXterm、OpenSSH、PUTTY、Terminus、mRemoteNG、Terminals等
3176 0
|
网络安全 开发工具 数据安全/隐私保护
阿里云搭建FTP服务器,完成文件传输
本文主要使用搭建FTP服务器的系统是ubuntu18.04,租的服务器是阿里云服务器(ecs.t6-c1m1.large)。决定想在服务器上搭建FTP主要是为了方便传输文件,网上方法众多,因此我将我从头到尾搭建FTP并且传输文件的步骤和问题记录在此,方便想尝试的人学习。
阿里云搭建FTP服务器,完成文件传输
|
Ubuntu Unix Linux
PUTTY-0.75 下载安装及SSH远程连接方法
Putty是一个免费的、Windows 平台下的ssh远程登录工具。完全免费、小巧绿色、无需安装、操作简单,用它来远程管理Linux十分好用
211 0
PUTTY-0.75 下载安装及SSH远程连接方法
|
弹性计算 数据安全/隐私保护 安全
使用xshell连接阿里云远程服务器(图文教程)
1. 参考资料: 阿里云官方帮助资料: https://help.aliyun.com/document_detail/71529.html?spm=a2c4g.11186623.6.616.JqUSgl 2. 准备条件:     1). 登录阿里云官网,申请阿里云ECS服务器         请参考网上其他教程,或者自己申请一下就好。
42869 2
|
网络安全 数据安全/隐私保护 Linux
|
安全 网络安全 数据安全/隐私保护