I need to use wget to download a file to the directory /var/cache/foobar/ (so, as an example, if I download stackexchange-site-list.txt, it'd be downloaded to /var/cache/foobar/stackexchange-site-list.txt)
Is this possible? curl would also be an option, but I'd prefer to not use curl, since it's not installed by default.
man wget– user606723 Oct 28 '11 at 16:28man get. The goal of stackexchange isn't to answer every possible question. – user606723 Dec 11 '11 at 22:38-Pswitch, same w/ the A below. From the manual page: How to specify the location with wget?. – slm May 07 '15 at 23:33grepor something, but even that is not likely to give the answer due to wording. – Synetech Apr 10 '16 at 23:10