All commands tested on Mac OS Monterey / Jan 05, 2022

Tar Extract Examples

How to extract a tar archive into a different directory

Extract files.tar to the directory ~/some-other-directory.
View the command

How to extract a single file from a tar archive

Extract my-file.txt from the files.tar archive.
View the command