3
1
If you're downloading a large file in linux via command line, is there a command to know if it's already completed? Currently I am only checking if the file size is the same as the expected file size but what if you don't know the expected file size? Currently ls
shows the exact file name (i.e., file.zip
) instead of something like file.zip.temp
or something even if the file is currently downloading.
You can also use
iftop
command that will show you active connection and the volume of network traffic. If you have a single download file per destination IP, you will be able to see when the transfer finishes. – mnmnc – 2015-08-11T10:32:34.453Couldn't you just check whether
wget
is still running? (ps -ef | grep wget | grep -v grep
or similar) – slhck – 2012-10-21T13:06:22.170@slhck looks like that ninja code will do the job – IMB – 2012-10-21T13:21:22.377