Ubuntu Basic Terminal commands

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9


How to exract tar.gz/bz2/tbz files :

If Your File Extension is .tar.gz (or .tgz) use this command

 tar xvzf file.tar.gz
  • x: This tells tar to extract the files.

  • v: This option will list all of the files one by one in the archive. The “v” stands for “verbose.”

  • z: The z option is very important and tells the tar command to uncompress the file (gzip).

  • f: This options tells tar that you are going to give it a file name to work with.

** If Your File Extension is .tar.bz2 (or .tbz)**

The major difference between these two is that the z option has been replaced by the j option.

  • j: This will decompress a bzip2 file.

Got any Ubuntu Question?