14

I want to download a file from the Linux command line. Basically I'm using ssh and I'm trying to download a file to my file system on my laptop. How can I do that from the command line?

24

wget and curl are commonly used for web URLs. For remote files, use scp for individual files and consider rsync for directories.

| improve this answer | |
14

If the file is publicly available, then:

wget http://example.com/file.tar
| improve this answer | |
  • This article explains how to use different options available for wget . Sengar +1 for you ;) – Shekhar Mar 23 '11 at 10:35
1

I upvoted zengr's answer, but would like to mention (since your question is a bit vague) lynx or links web browsers as well, if you don't remember the full URL to the file to download.

scp with public key authentication is your friend if you copy between your own machines.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy