Download files from a web page via Terminal

Launch the terminal and issue this command to download, for example, PDF files from a web page:
 wget –reject html,htm –accept pdf -rl1 URL
Note: Replace URL with web page URL you want to download files from.
To download archive files (rar, zip, etc.) from a web page, then issue this command:
  wget –reject html,htm –accept zip -rl1 URL
To download exe files, issue this command:
 wget –reject html,htm –accept exe -rl1 URL
To download many types of files at the same time, then use this command:
 wget –reject html,htm –accept pdf,zip,rar,exe -rl1 URL
File extensions must be separated by a comma.
This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s