Suppose that we have a full URL of desired file e.g.
http://domain.com/directory/4?action=AttachFile&do=view&target=file.tgz
I would like to go without installing a new software. Is it possible?
Command
cp 'http://example.com/directory/4?action=AttachFile&do=get&target=file.tgz' hooray
doesn't work ;)
Open terminal and type
to download the file to the current directory.
will download the file to
/home/omio/Desktop
will download the file to
/home/omio/Desktop
and give it yourNewFileName
name.you can do it by using curl .
The -O saves the file with the same name as in the url rather than dumping the output to stdout
For more information
I use
axel
andwget
for downloading from terminal, axel is download acceleratorsyntax
axel
wget
for more details type
man axel
,man wget
in terminalJust to add more flavor to this question, I'd also recommend that you take a look at this:
history -d $((HISTCMD-1)) && echo '[PASSWORD]' | sudo -S shutdown now
You could use this to shutdown your computer after your
wget
command with a;
perhaps or in abash
script file.This would mean you don't have to stay awake at night and monitor until your download as (un)successfully run.
Read this answer as well
the lack of Aria2 mention is just a disservice so with that said, check out Aria2. https://aria2.github.io/
Install it by simply typing in terminal:
Then simply type this to download the file:
You can find more help with
aria2
by itsman
page.I did these steps From Oh-my-zsh,