Using wget to download data from web sites to CSC
Wget is a command for downloading files from WWW-sites and FTP servers. Once you have resolved the URL of the file, just give it as an argument to the
wget command to download the file to your current directory.
So for example
would download a file called gromacs-2019.3.tar.gz to your current directory. Pattern matching in the URL is possible when using ftp , i.e. the URL starts with ftp:
This command would retrieve all the files, whose name start with gromacs-5 and end with .tar.gz
You can fine tune the behaviour of
wget command with several options.
You can see the full list of available command options with the command:
Below are listed some of the most commonly used options.
||URL||Read a file containing the URL:s to retrieve.|
||file name||Name of the output file.|
||file name||Name of the download log file.|
||directory||Defines the directory where the downloaded data will be saved to. The default is . (the current directory).
||Continue getting a partially-downloaded file.|
||username||Specify the user name for file retrieval|
||password||Specify the password for file retrieval.|
||Use time-stamping. Download the file only if it is newer that the file in the target directory.|
||Turn on options suitable for mirroring. This option turns on recursion and time-stamping, sets infinite recursion depth and keeps FTP directory listings.|
Last edited Tue Jan 21 2020