How to uplaod file from computer with console?

September 19, 2016 155 views
FAQ Getting Started Linux Basics Ubuntu

I want to upload a large file so I want to do so from the droplet's console. The file is on my compouter. How do I do that?

1 comment
  • Hi,

    You can copy file on your droplet using below command, if you are using any Linux distro.

    1.Open terminal and run below command.

    rsync -avz source/file/path example@yourdriopletpublicIP:/home/example

    You can also use FileZilla to copy file from local system to server.

    Hope it will help you..

2 Answers
ryanpq MOD September 19, 2016
Accepted Answer

Running a command on your local computer to upload files to your server is pretty easy on macOS or Linux where you can use scp:

scp -r /path/to/my/files root@:

or rsync

rsync -avz /path/to/my/files root@:

While there are versions of rsync and scp/sftp available for windows they are not installed by default and getting started with a GUI client like Filezilla might be an easier way to go.

by Pablo Carranza
This article will teach you how to use Filezilla to transfer and manage files securely on your VPS.

Thank you both for your answers. I ended up transferring the file through FTP.

Have another answer? Share your knowledge.