Good day Linux nation!
I would like to ask if there is a way to set up wget to stop downloading after a certain file size???
Let's say I want wget to stop downloading once it exceeds 20mb.
I've read the wget manual, and there is an option called "quota".
But what I understand from the manual is that this quota option works only for recursive downloads. Wget will stop downloading once it reached the sum (total) quota.
Since I am only downloading a single file (url) then this quota option will not affect the download.
Any suggestions?
I could of course manually stop the download but then I would be monitoring the log or terminal and it would be a waste of time.
Bookmarks