Unzip and Untar Those tar.gz or tar.bz2 Files

If you are new to the world of Linux, you probably unzip your tar.gz files first, and then extract them from the tar file… at least, if you are even bothering to use the command prompt at all. It’s easy to gunzip or even bunzip2 the files with a simple command-line switch.

To gunzip and untar a file in a single step, use the following—note that the z switch is the important one that tells tar to unzip it.

tar xvfz somefilename.tar.gz

To use bunzip2 to extract your tar.bz2 file in a single step, use the j switch instead.

tar xvfj somefilename.tar.bz2

Nice and simple, just the way we like it.

  • tar xvfz, tar xvfj, unzip, gunzip, untar
  • 0 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

How to Set Up a Mac for Your Kids

Providing children with access to a computer and the internet is increasingly important, but so...

How to Get Help With a Command from the Linux Terminal

Whether you’re an inexperienced terminal user or a grizzled veteran, you won’t always know the...

How to change the ssh port on Linux

To Change the SSH Port for Linux Server Connect to your server via SSH Switch to the root...

How To Install screenFetch in Linux

If you've browsed Linux groups on social media, you've probably seen a lot of screenshots that...

Static IP vs. Dynamic IP Address

A static IP address is one that remains fixed and never changes. The PC always sees the same...

Powered by WHMCompleteSolution