How to extract particular file / folder from tar archive

198 views
0

Hi,

I have large tar archive file (.tar.gz) on the server and I would like to extract particular files and folders from it because I don’t have much space on the server to extract entire tar archive. Can someone help me to extract particular files/folders?

Thanks,
Matt

0

You can extract particular file/folder from your .tar.gz file as follow:

tar -zxvf your-file.tar.gz filename

tar -zxvf your-file.tar.gz directory-name

Please note that you have to specify exact path to extract file/directory.

Bloom Email Optin Plugin