Introduction to use command-line FTP client

1. Install

Windows comes with general

Linux can be installed with yum

yum install -y ftp

 

2. Commands

# Into the ftp client 
ftp 

# to open the ftp server 
# If the wrong username and password, you can order by username, etc., lose weight 
# but then I prefer direct close, re-open, the same effect 
# > stands had entered the ftp client The actual command does not require 
> Open xxx.xxx.xxx.xxx # view remote directory 
> dir
 # View the local directory 
>! dir 
 # specify the local directory 
> lcd
 # to switch the remote directory 
> cd directory
 # use binary transmission 
> bin # upload files 
> PUT file name
 # upload files, wildcard support * 
> mput file name # Download file 
> GET filename
 #





Download file support * wildcard 
> mget filename 

# delete remote files 
> the Delete file name 

# exit server 
> bye

 

Guess you like

Origin www.cnblogs.com/kreo/p/12179862.html