Linux how to download a folder from command line – what's the easiest way? or What’s the best command

22 Replies, 970 Views

Dude, `curl` won’t do folders well, but for linux how to download a folder from command line, `tar` + `ssh` is a slick combo:

`ssh user@remote "tar czf - /path/to/folder" | tar xzvf - -C /local/path`

This tars the folder on the fly and extracts it locally. No temp files!

Messages In This Thread



Users browsing this thread: 1 Guest(s)