• Welcome to Web Hosting Community Forum for Webmasters - Web hosting Forum.
 

Recommended Providers


Jetpack
Fully Managed WordPress Hosting
lc_banner_leadgen_3
Fully Managed WordPress Hosting

WordPress Theme

WordPress Hosting Divi WordPress Theme
WPZOOM

Forum Membership

Forum Membership

How to extract particular file / folder from tar archive

Started by Chris, October 30, 2019, 05:04:39 PM


WordPress Hosting


Chris

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!

Kailash



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.