Extracting a Single File/Folder from a .tar Ball

It’s actually quite simple! The standard un-tarring SSH line is:

tar -xzvf your-tar-ball.tgz

You can target a specific file or folder by adding another parameter:

tar -zvxf your-tar-ball.tgz your-folder
tar -zvxf your-tar-ball.tgz your-folder/subfolder/image.jpg

Note: The process will go through the entire tarball, so be patient!

Leave a Reply

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