wget to particular directory 1

wget to particular directory

wget -O /var/cache/foobar/stackexchange-site-list.txt http://url.to/stackexchange-site-list.txt

Here is what the above code is Doing:
1. It’s creating a directory called /var/cache/foobar
2. It’s downloading a file from the internet and saving it to /var/cache/foobar/stackexchange-site-list.txt

Similar Posts