Linux Console / Shell

Connect to FTP server $ ftp 192.168.1.104, then enter username, password
use cd directory to change the remote directories on the server
ls to list the remote directory
pwd - print name of the current working directory on the remote machine
get remote-file to download a file (mget for multiple)
lcd directory to change the local directory
lpwd - print the local working directory
put local-file - upload a file (mput local-files - upload multiple files)
Can’t upload whole folders

ftp-upload

Install with $ sudo apt install ftp-upload
Upload a whole folder by zipping it with zip, then upload with
$ ftp-upload -h 192.168.1.104 -u username --password yourpassword -d FolderOnFTPServer LocalFile.zip

Leave a comment