Skip to Content

UNIX Command for Unpacking a Tar file to Different Directory

1. Open Terminal
2. Type this command:
tar -xvzf /path/to/tar/file.tar.gz -C /path/to/dir/you/want/files/expanded

the -C in essence changes the file path for the unpacked files.

One Response to “UNIX Command for Unpacking a Tar file to Different Directory” Leave a reply ›

Leave a Reply

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>