download a file in particular directory in linux code example
Example: wget to particular directory
wget -O /var/cache/foobar/stackexchange-site-list.txt http://url.to/stackexchange-site-list.txt
wget -O /var/cache/foobar/stackexchange-site-list.txt http://url.to/stackexchange-site-list.txt