gordon's note infotech How to download a file from a website via terminal?

How to download a file from a website via terminal?

下載到當前目錄:

wget "http://domain.com/directory/4?action=AttachFile&do=view&target=file.tgz"

 
或是

wget -c www.example.com/example.zip

 
或是

axel www.example.com/example.zip

 
或是

curl http://domain.com/directory/4?action=AttachFile&do=view&target=file.tgz

 
或是

aria2c http://example.com/directory/4?action=AttachFile&do=get&target=file.tgz

 
下載到 /home/omio/Desktop/:

wget -P /home/omio/Desktop/ "http://thecanadiantestbox.x10.mx/CC.zip"

 
下載並給一個新的名稱 /home/omio/Desktop/NewFile.zip:

wget -O /home/omio/Desktop/NewFile.zip "http://thecanadiantestbox.x10.mx/CC.zip"

 

 
ref: How to download a file from a website via terminal?
 

#linux #ubuntu

Leave a Reply

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

Related Post