Some basic commands for FTP

Dean.Du
1 min readApr 5, 2022

--

FTP service

The FTP service is the most import tool for the transfer of files, especially when there are some big files will be moved to remote servers. You can use rclone or rsync and other sync-tools. But, they can only be called tools, and the FTP is a service. So, some commands for using the FTP service from commands. I will give a test server host to show the instructions: ftp.test.com .

If you want to connect the server, use command below:

ftp -nv <ftp.test.com>

when you have to login with username and password:

user <anonymous>

then, the screen will show the prompt for password input.

Commands to change the directory and list files under current directory just like linux commands :

cd <directory>
ls

If there is a file to download, use commands below:

lcd </home/user/directory>
get <file>

On the contrary, upload the files like these:

put <file or /path/file>
mput *.xlsx

At last, you should close connection to quit the service:

bye/quit/exit

If you are familiar with Linux commands, the FTP commands are so simple for you. Aren’t then?

--

--

Dean.Du

A lucky man, python/golang programmer and experienced in invest.A translator.