Linux webserver useful commands – Ubuntu Part 2

  • Tar Files:
Its a convenient way of linking together a bunch of files. You may come across TAR files with any of the following extensions. So, we have listed each file type with the command to extract it.
  • TAR Files are not compressed:

Command: tar -xvf file.tar

x: Extract

v: Verbose

f: File Type

  • tar.gz or .tgz files are compressed using gzip compression:

Command: tar -xzvf file.tar.gz

x: Extract

z: for gz compression

v: Verbose

f: File Type

  • tar.bz2 files are compressed using bzip2 compression:

Command: tar -xjvf  file.tar.bz2

x: Extract

j: instead of z, we use j for bz2

v: Verbose

f: File Type

Leave a Reply

Your email address will not be published. Required fields are marked *