Skip to main content

Download Files From Remote to local via command line


To download Files From Remote to local via command line  normally we use scp.

To copy all from Local Location to Remote Location (Upload)
scp -r /path/from/destination username@hostname:/path/to/destination
Copy on current directory from Remote to Local
scp -r username@hostname:/path/from/file .

To download a single file the command will be:

scp user@your.server.example.com:/path/to/foo/file.name /home/user/Desktop/

To download a single file the command will be: 

scp -r user@your.server.example.com:/path/to/foo /home/user/Desktop/

Help:

  1. -r Recursively copy all directories and files
  2. Always use full location from /, Get full location by pwd
  3. scp will replace all existing files
  4. hostname will be hostname or IP address
  5. if custom port is needed (besides port 22) use -P portnumber
  6. . (dot) - it means current working directory, So download/copy from server and paste here only

Comments

Popular posts from this blog

Some Handy ssh/cli Commands

On Wednesday night you logged in into your server through ssh. Checking is this server capable to certain applications or not. First you ask which OS is it using.  Assuming its a Linux server. Following command will show you the OS : uname - a

Never Stop Learning

I got a news letter today from John Sonmez The founder of  Simple Programmer  .  I really Liked some ideas to stay motivated. And stay passionate to learning.   He state that, " Fail often and fail hard, learn and grow, overcome and succeed my previous self every single day ".  Never Stop Learning, Be more. Grow and learn and be the best version of yourself.  If you don't like the road you're walking, start paving another one.

Why ReactJS ?

I was decided to learn ReactJs. And asking my self why I want to learn React. What can I do or build using React? To get the answer I do some Researchs and make couple of important notes. Hope It will help who have interest to learn ReactJS. Lets know what is React First.  React is a JavaScript library for building User Interface s. Very often it’s misinterpreted as tool, framework, language. React allows developers to create large web applications that use data which can change over time, without reloading the page. Its main goal is to be fast, simple and scalable. React processes only user interface in applications ( source ).   It also can be use along with other JS freamwork.  To learn More visit :  https://reactjs.org/ As Inspired from Simon Sinek The author of "Start with Why", firstly I was finding my why's. Love the Quote : It is one of life’s greatest joys to wake up in the morning... every morning, With a clear sense of why that day matt...