Divi WordPress Theme

How to extract particular file / folder from tar archive

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

Offline Chris

  • Junior Guru
  • **
  • Posts: 81
  • 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

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 660
  • 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:

Execute ASP code on HTM or HTML file

Started by KailashBoard How Tos

Replies: 0
Views: 7656
Last post January 10, 2007, 02:31:38 PM
by Kailash
HELM3 how to create application folder and virtual directory

Started by w3schoolBoard Hosting Software and Control Panels

Replies: 2
Views: 5067
Last post March 04, 2020, 07:50:03 PM
by Madison444
Could not load file or assembly System.Web.Extensions

Started by MikeBoard .NET Development

Replies: 1
Views: 5721
Last post July 17, 2007, 12:09:04 PM
by Kailash
check perl file syntax through shell access

Started by KailashBoard cPanel/WHM

Replies: 0
Views: 3371
Last post July 29, 2007, 01:02:07 PM
by Kailash
Doing Wonders With Apache Settings - Guide To Htaccess File

Started by TechBoard Apache

Replies: 0
Views: 5381
Last post September 09, 2007, 10:54:13 AM
by Tech