linux ftp 命令使用
时间: 2023-12-16 12:26:35 浏览: 97
Linux中的FTP命令可以用于在本地主机和远程主机之间传输文件。以下是FTP命令的一些常见用法:
1.连接到FTP服务器:
```shell
ftp ftp.example.com
```
2.使用用户名和密码登录FTP服务器:
```shell
ftp> user username password
```
3.列出FTP服务器上的文件和目录:
```shell
ftp> ls
```
4.在FTP服务器上切换目录:
```shell
ftp> cd directory
```
5.从FTP服务器下载文件:
```shell
ftp> get filename
```
6.将文件上传到FTP服务器:
```shell
ftp> put filename
```
7.退出FTP会话:
```shell
ftp> bye
```
8.下载多个文件:
```shell
ftp> mget file1 file2 file3
```
9.上传多个文件:
```shell
ftp> mput file1 file2 file3
```
阅读全文
相关推荐


















