COLORADO: 5:01 am
JAPAN: 8:01 pm

-1189 days for S+Y!



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How To Open a Tar.gz File In Unix
PostPosted: Fri Aug 09, 2013 4:26 pm 
SysOp
User avatar

Joined: Sun Nov 08, 2009 7:03 pm
Posts: 1550
Location: Colorado
Code:
tar -zxvf data.tar.gz


-z : Uncompress the resulting archive with gzip command.
-x : Extract to disk from the archive.
-v : Produce verbose output i.e. show progress and file names while extracting files.
-f data.tar.gz : Read the archive from the specified file called data.tar.gz.


is the file just gzipped?

Code:
gzip -d mydata.doc.gz



Need to create a tarball that is gz zip compressed?

Code:
tar -zcvf archive_name.tar.gz directory_to_compress


tar it in tmp directory of files/folders in current folder:
Code:
tar -zcvf /tmp/archive_name.tar.gz  .

_________________
Contact me directly: Ironfeatherbooks (@) gmail.com

Image

Bookmark and Share



Top
 OfflineProfile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 1 guest



Search for:
cron

This site contains adult natured content. All material submitted to this site is the sole responsibility of the submitter.

© 2023 Iron Feather Journal

 

Recent Visitors: