How to control wget over SSH

Hello ,

in this tutorial we will talking about controlling “wget” command in SSH like Resume download , limit the download speed , start in background and more …

Limit the Speed :

if you want to Limit the download speed to not consume the whole uplink speed :

# wget http://remoteserver.com/file.rar --limit-rate=100k

 

Start in Background and log out SSH :

if you download very big file and you want to log out from SSH and keep the process running , you can start it in Background :

when you run it in background it will generate a log file automatically .

# wget -b http://remoteserver.com/file.rar

 

Resume Download :

If you need to stop a current download, and pretend to resume it later, you should use the -c option :

# wget -c http://remoteserver.com/file.rar

 

Log wget output :

# wget http://remoteserver.com/file.rar -o $HOME/log.txt

 

and of course you can combine more than one option together like :

# wget -b http://remoteserver.com/file.rar --limit-rate=100k

the above command should start in background and limit the speed to 100Kbps

 

#Done !