wget command in Linux is basically a utility that is used for downloading files from a web server. Using this
wget command in Linux is basically a utility that is used for downloading files from a web server. Using this command, the users can download various files from their chosen networks using protocols like HTTP, HTTPS, and FTP.
With the usage of wget command in Linux, user can play with different options like downloading multiple files, resuming downloads, limiting bandwidth, recursive downloads, running downloads in background, and many more. So, in this article we are to discuss how this command can be used and how a Linux user can play with downloads using command line.
Syntax of wget command in Linux wget [option] [URL] How to install wget in system? Although the wget package is pre-installed on most of the Linux distributions in modern era, still if you find the package is not installed on your device, you can install it manually.
In order to check if wget package is installed, just open terminal and run the command below:
wget In case if running the command shows wget:missing URL, it means the package is already installed. Otherwise, wget command not found, will be displayed.
Install wget on Ubuntu/Debian systems sudo apt install wget Install wget on CentOS/Fedora sudo yum install wget Options available to use with wget: -v | –version: Displays version of wget package. -h | –help: Displays help instructions on screen with all possible options. -o logfile | –output-file=logfile: Used for directing all messages to a specified log file. If the file is not specified, the logs are stored on default log file. The messages are generally reported to standard error. -b | –background: Using this option, the download process is sent to run in background as soon as the process starts. In case if no file is specified using -o, the output is directed to wget-log by default. -a: Used for appending log file. This option is probably similar to -o, however it appends just the logfile instead of overwriting the old log file. In case if there’s no log file exist, a new file is created. -i: Used to specify a file from which wget reads the URL. -t number | -tries=number: Used to set a specified number of tries. 0 or inf can be specified to retry at infinity. The default number of retry is 20 times. -c: Used for resuming a partially downloaded file if the resume capability of file is yes. -w: This option is used to set the system to wait for the specified number of seconds between retrieving the next data packet. With the help of this, the server load can be lightened as it use to make requests less frequently. -r: This option is technically a recursive call to a specified link in command line. Using this, it keeps recursively retrieving the link specified, even in case of fatal errors.
In this remove or delete directories and files linux tutorial guide, you will learn how to remove empty directory and non empty directory linux using command line. And as well as how to remove/file files linux using command line.
Using Log Analysis with Command Line Tools to Explore Linux Log. Take a look at this guide to using log analysis with command line tools to dig into a Linux log.
How to Use the Command Line for Apple macOS and Linux - You might be like me - I used computers for twenty years without ever touching a command prompt. I didn't know anything about it, and it…
Wget Command in Linux with Examples - GNU Wget is a command-line utility for downloading files from the web. In this tutorial we will show you how to use the Wget command through practical examples and detailed explanations of the most common Wget options.
We will be creating USB boot-able image in two different way: Unetbootin – is an open-source tool for creating bootable Live USB drives for Ubuntu, Fedora, and other Linux distributions.dd – is a command-line tool for converting and copying files.