From the computer of: qmchenry
(337 recipes)
Created: Jul 12, 2006
A tar file is extracted (and created) with the easy-to-remember application tar. While the name is simple, the syntax is a little different than normal UNIX commands. To extract the contents of the file archive.tar, use:
The x in xf means extract the contents of the archive. The f in xf tells tar to use the next parameter as the filename of the archive. This comes from tar's history as a tape archiving application (the name tar comes from tape archive). By default, tar wants to read or write to a tape drive, thus the f parameter.
Another couple of nice parameters to know are t and v. The t parameter is used in place of x to list a table of contents of the archive.
The v parameter can be used with x to list each file in the archive while extracting them.
Subscribe to the Tech-Recipes Newsletter
You can get tips like this delivered in your email every week!
We will never, ever sell your email address or spam you.
Related recipes:
Decompress and extract a tgz or tar.gz archive in a single step
Extract a bz2 or bzip2 file
Extract a gzip compressed tar archive in Linux
Create a TAR archive of a directory
Create a symbolic link in UNIX
Select an arbitrary column of text in UNIX
Validate information from a Solaris flash archive
Create a local Solaris flash archive
Tar and compress a file in one step
creating a solaris 8 flash archive boot disk
Sponsored links
Login
Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.Search
Tech Recipes
· Home
· Mac OS X
· Solaris
· Windows
· Programming
· UNIX
· Cisco
· MySQL
· Google
· Instant messaging
· Add recipes
· Leave feedback
· Recommend us
· RSS Syndication
Hot recipes
Make XP look like Windows Vista / Longhorn for free!
XP: Small, Free Way to Use and Mount Images (ISO files) Without Burning Them
Hacks to Beat Rapidshare Download Limits and Waiting Time
How Do I Use or Open Bin, Cue, or ISO Files?
Vista: Should I Install 64-bit or 32-bit Version? (x64 vs x86)
XP: kill a Windows process from the command line with taskkill
MySpace: Hack to Download Any Song on MySpace
How to patch up your UXtheme.dll file in XP home or pro
Who's Online
There are currently, 2435 guest(s) and 1 member(s) that are online.
You are Anonymous user. You can register for free by clicking here
Information
Wish to advertise with us?
All logos and trademarks in this site are property of their respective owner. The comments and forum posts are property of their posters, all the rest © 2003-2007 by QD Ideas, LLC.
Users of this site are legally bound by the Terms and conditions and Disclaimer. Do not use this web site if you do not agree with these policies.
The members, admins, and authors of this website respect your privacy.
Page Generation: 0.86 Seconds
Fri Jul 4 6:13:21 2008