How to get files and folders from a remote server using FTP?

Let's make a quick start by looking at the various commands to get files and folders from a remote server. 
Method 1:
wget -m -nH --user='username' --password='user_password' ftp: //IP address/

Method 2:
1. ftp
2. open ftp: //ftp.domain_name.com 
3. enter username and password
4. ls -la 
5. get filename or mget *     ( Note: This works only with files and not folders)

Method 3:
wget --user=username --password='user_password' ftp: //url/path/file.name

Method 4: 
wget -r --user=username --password='user_password' ftp: //ftp.domain_name.com/*

Was this answer helpful?

 Print this Article

Also Read

How to perform LAMP installation on CentOS?

LAMP stands for Linux, Apache, MySQL, and PHP. It is nothing but Linux operating system with...

Basic exim commands

1. REMOVE MAILS BY ID - /usr/sbin/exim -v -Mrm (MAIL ID HERE) 2. LIST QUEUED MAILS -...

Daily Useful Linux Commands

Finding the username from provided hosting service name - /script/whoowns domain_name Finding...

Disk Usage Useful Command

Note - You can replace /home with correct '/' drive on your server. 1. Checking the disk usage -...

How to backup and restore large MySQL databases using mysqldump?

1. Backup database:#mysqldump -u username -p[username_password] databasename >...