Tar things

  1. To see the content

    BASH
    tar -tf your_file.tar.gz
  2. To extract .tar

    BASH
    tar -xvf your_file.tar
  3. Compress .tar

    BASH
    tar -cvf your_file.tar /the/file/or/directory/path
  4. To extract .tar.gz

    BASH
    tar -zxvf your_file.tar.gz
  5. To compress as .tar.gz

    BASH
    tar -zcvf your_file.tar.gz /the/file/or/directory/path

Tips:

BASH
-t check
-f file_name
-z use gzip
-c/-x compress/extract