DEV Community

Abhay Kochar
Abhay Kochar

Posted on

How to run WGET in background on logout

When transfer large files from one server to another we usually use WGET command to download it, but when network speed is slow on specific server it gets stopped on logging out.

wget http://path-to-url/file.zip

-b : Go to background
-q : Turn off wget’s output aka save disk space.
-c : Resume broken download i.e. continue getting a partially-downloaded file

wget -bqc http://path-to-url/file.zip

Nohup command

Nohup prevents the processes or jobs from receiving the SIGHUP (Signal Hang UP) signal. This is a signal that is sent to a process upon closing or exiting the terminal.

nohup wget -qc http://path-to-url/file.zip & 

Top comments (0)