WinRAR is a Windows data compression tool that focuses on the RAR and ZIP data compression formats for all Windows users. Supports RAR, ZIP, CAB, ARJ, LZH, TAR, GZip, UUE, ISO, BZIP2, Z and 7-Zip. Hide Cookie Info! Download WinRAR. WinRAR for Windows 10 is a specially developed version of the world-famous archive manager that is designed to meet all the requirements of your Windows 10 operating system. The application has been extremely popular for more than ten years, taking a leading position between its competitors.
Tar (Tape Archive) is a popular file archiving format in Linux. It can be used together with gzip (tar.gz) or bzip2 (tar.bz2) for compression. It is the most widely used command line utility to create compressed archive files (packages, source code, databases and so much more) that can be transferred easily from machine to another or over a network.
Take a look at Tar for Windows. The GNU Tar program provides the ability to create tar archives, as well as various other kinds of manipulation. For example, you can use tar on previously created archives to extract files, to store additional files, or to update or list files which were already stored. Download p7zip for Linux (Posix) (x86 binaries and source code): p7zip at SourceForge p7zip is the command line version of 7-Zip for Linux / Unix, made by an independent developer.
Read Also: 18 Tar Command Examples in Linux
In this article, we will show you how to download tar archives using two well known command line downloaders – wget or cURL and extract them with one single command.
How to Download and Extract File Using Wget Command
Extract Tar Windows 10
The example below shows how to download, unpack the latest GeoLite2 Country databases (use by the GeoIP Nginx module) in the current directory.
The wget option
-O
specifies a file to which the documents is written, and here we use -
, meaning it will written to standard output and piped to tar and the tar flag -x
enables extraction of archive files and -z
decompresses, compressed archive files created by gzip.Tar Download For Windows 10 Chrome
To extract tar files to specific directory, /etc/nginx/ in this case, include use the
-C
flag as follows.Note: If extracting files to particular directory that requires root permissions, use the sudo command to run tar.
Download and Extract File to Directory
Alternatively, you can use the following command, here, the archive file will be downloaded on your system before you can extract it.
To extract compressed archive file to a specific directory, use the following command.
How to Download and Extract File Using cURL Command
Considering the previous example, this is how you can use cURL to download and unpack archives in the current working directory.
To extract file to different directory while downloading, use the following command.
That’s all! In this short but useful guide, we showed you how to download and extract archive files in one single command. If you have any queries, use the comment section below to reach us.