Divi WordPress Theme

Topic: How to extract particular file / folder from tar archive  (Read 132 times)

Offline Chris

  • Junior Guru
  • **
  • Posts: 77
  • iTrader: +0/-0
    • View Profile
How to extract particular file / folder from tar archive
« on: October 30, 2019, 05:04:39 PM »
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!
VPS Hosting - AccuWebHosting

Online Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 648
  • iTrader: +153/-0
    • View Profile
Re: How to extract particular file / folder from tar archive
« Reply #1 on: October 30, 2019, 05:05:23 PM »


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.
Shopify Divi WordPress Theme
Tags: