None


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 20:03  
Related Articles

» Find and Replace Text in Multiple Files

Sometimes it is useful to be able to replace a certain piece of text in multiple files, even across multiple folders. Opening each file and using find/replace is tedious. Fortunately, there is a much easier way using the sed and grep utilities. For Windows users, please to get these programs on your system. Linux and Mac OS X users will already have these programs pre-installed.Launch a terminal window, and cd to the root directory where all of these files and folders exist. Once in the...

» How to Eliminate Ads in Firefox

I, like many people I know, end up releasing my latent anger issues on my computer after about 5 minutes of Facebook and MySpace ads. The tips in this article will provide a way to mitigate these ads in your everyday browsing.  Now, keep in mind that this solution is imperfect, so some websites will still have some ads that get through, and every one in a while you will have to block new adds manually (we'll touch on this in a bit). Here are a couple ways to drastically reduce the number...

» How to Move (or 'Cut and Paste') a File in Linux

Moving a file in linux is as easy as using the mv command:mv filename.txt foo/bar/newname.txtThe command above would move a file named filename.txt into the bar directory with a new name (newname.txt). If you only specify the directory, the name of the file will not change.