Saturday, April 20, 2013
Linux command download utility
Linux command download utility:
aria2c -s10 http://example.com/ >/dev/null 2>&1 &
which means
-s10: using 10 connections
Redirecting stdout to /dev/null
Redirecting stderr to wherever stdout is going, which is currently /dev/null because of 1.
Last &: start a new process in the background
In this case both stdout and stderr will be sent to /dev/null.
Note
aria2c will immediately create a file in the destination with the same size as the file to download. It will fill this file as the download stream comes in. If you abort a download, make sure to also remove the file in the destination.
Labels:
Linux
No comments:
Post a Comment