Linux Basics: Untarring And Unzipping File ArchivesMay 26th, 2008 · No Comments
Using TAR To Compress Or Extract FilesTAR means Tape Archive. While it doesn’t need to be stored on a tape backup anymore, TAR is used to create an uncompressed file archive. In order to compress a TAR file, the gzip compression format is used.
To make a TAR archive from the command line, the syntax is:
So for example if you wanted to create a compressed archive from a folder named “documents”, you would type:
To extract files from a “targzipped” archive, the syntax is:
So if you wanted to extract the content from an archive file named documents.tar.gz, you would type:
Let’s look at the switches used here:
Using ZipCompressing or extracting files in ZIP format is pretty easy. Here’s how to compress multiple files using the ZIP command:
So for example, if you wanted to create a zipped archive containing two documents, you would use:
Unzipping a zipped archive is quite easy too:
There are some switches you can use with the zip command. Typing
will bring up the zip manual. Other Compression FormatsThere some other compression formats and utility available. Here are a few:
They are just not as popular as the previous format. Have a look at their manpages to find out more. Related Posts |
Popular PostsLatest PostsLatest Deals & Coupons
Recent Comments
Recent WebmastersTag Cloud
1and1
apache
centos
cheap web hosting
control panel
coupon code
coupons
coupons codes
cpanel
dreamhost
godaddy
godaddy vs 1and1
green web hosting
hostdime
hostgator
hostpapa
iis
inmotion hosting
knownhost
linux
mysql
openads
openx
php
reseller hosting
security
shared hosting
system administration
vps
web hosting
web hosting comparison
Web Hosting Comparisons
whm
windows
windows 2008
|
|||||||||
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment