How to download a file from a website via terminal?

| 0 Comments| | 09:54
Categories:

下載到當前目錄:

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

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