How to Unpack a Tarball (.tgz, tar.gz, or tar.bz2)

(0 votes, average 0 out of 5)

Unpacking a tarball through the command line is a simple a matter of memorization.  Here is the command to unpack a .tgz or .tar.gz file:

tar -xzf 

To unpack tar.bz2 files, simply change the z to a j:

tar -xjf 
Upon running one of these commands you should see an extracted version of the directory without the .tar.gz or .tgz extension.
Partner Links:
Last Updated on Monday, 13 February 2012 14:03  
Related Articles

» Change Default Access URL of phpMyAdmin

By default, phpMyAdmin installs its web interface to a well-known location, like yourhost.com/phpMyAdmin. In order to make the phpMyAdmin installation more secure, it is a good idea to change this to a different, unique name. In order to do so, open the apache.conf file in the phpMyAdmin's configuration directory. On many Linux servers, this file is located in /etc/phpmyadmin/. At the top of apache.conf, look for the following line:123# phpMyAdmin default Apache configuration Alias...

» Merge Two Versions of A Table Together in a Database

When keeping multiple versions of a website, or perhaps migrating a website to a new environment, it is often necessary to merge any changes between the two databases. The databases have the same structure, but each has new, unique content which needs to be added to the other. The following tutorial uses syntax for MySQL, however it should be applicable to other major database schemas. The following example assumes that the master database where we want all of the changes to reside is called...

» How to Fix an Atari 2600: From Top to Bottom

Believe it or not, the Atari 2600 is one beast of a console, and very rarely dies. Its like the annoying brother you kick in the pants, and he still comes back. Here are some notes to keep your console looking fresh, clean, and working perfect. Don't forget, you need to use either the RF box that comes with the atari, or you can buy an RCA to Coax adapter. An automatic RF switching box will *not* work, because the atari signal isn't strong enough.Out of all of the consoles I like to work...