ARCHIVED: In Unix, how can I uncompress *.Z or *.tar.Z files?

This content has been archived, and is no longer maintained by Indiana University. Information here may no longer be accurate, and links may no longer be available or reliable.

If you are on a Unix system, to uncompress *.Z or *.tar.Z files, at the shell prompt, enter:

  uncompress *.Z

Use the ls command to check the resulting files. If uncompress creates a .tar file, you must extract the files by entering:

  tar -xvf *.tar

Alternatively, to do this in one step and avoid creating the intermediate *.tar file, enter:

  zcat *.Z | tar -xvf -

For more information, refer to the online manual by entering:

  man tar
  man uncompress
  man zcat

At Indiana University, for personal or departmental Linux or Unix systems support, see Get help for Linux or Unix at IU.

This is document acsy in the Knowledge Base.
Last modified on 2018-01-18 09:27:39.