Command to download tar.gz file in linux






















Disclaimer : I am the author of this utility. Untar Single file from tar File compressed file To extract a single file called video. Sandeep Singh Sandeep Singh 1 1 1 bronze badge. Nowadays tar decompresses automatically if needed. It is enough to write: tar xf file.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Who is building clouds for the independent developer? Exploding turkeys and how not to thaw your frozen bird: Top turkey questions Featured on Meta.

Now live: A fully responsive profile. Reducing the weight of our footer. Linked Related Hot Network Questions. Question feed. Introduction A tar. Was this article helpful? Dejan Tucakov. He is dedicated to simplifying complex notions and providing meaningful insight into data center and cloud technology.

Next you should read. SysAdmin Web Servers. A list of all the important Linux commands in one place. Find the command you need, whenever you need it or Zip files are ubiquitously used on all operating system, including Linux. This simple guide explains how to Security SysAdmin. Secure Shell is an important protocol for anyone managing and controlling remote machines. This guide covers It can be used together with gzip tar. 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.

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.

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.

Note : If extracting files to particular directory that requires root permissions, use the sudo command to run tar. Alternatively, you can use the following command, here, the archive file will be downloaded on your system before you can extract it. Considering the previous example, this is how you can use cURL to download and unpack archives in the current working directory. 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. TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! If you like what you are reading, please consider buying us a coffee or 2 as a token of appreciation.



0コメント

  • 1000 / 1000