how to download directly to folder in server

Discussion in 'Server Operation' started by Heeter, Jan 10, 2009.

  1. Heeter

    Heeter Member

    Hi all,

    what command line do I use to download a file directly to a folder in my server.

    I am thinking:
    Code:
    wget http://downloadsite.com/downloadfile.tar.gz > /srv/folder
    
    Would that work?

    Thanks

    Heeter
    ________
    YAMAHA YZF-R7 HISTORY
     
    Last edited: Mar 7, 2011
  2. kkulekci

    kkulekci New Member

    You should use -P option to specify the directory

    Code:
    wget [url]http://downloadsite.com/downloadfile.tar.gz[/url] -P /srv/folder
     
  3. Heeter

    Heeter Member

    Great, Thanks

    Exactly what I was looking for.

    Heeter
    ________
    Buy Glass Bongs
     
    Last edited: Mar 7, 2011

Share This Page