Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting a single file from TAR

Status
Not open for further replies.

sirrom

Technical User
Jul 11, 2001
80
GB
What command do I use to extract a sinlge file from a TAR archicve. The O/S is Sun Solaris 5.6
Thanks.
 
Assuming your tar file is on a tape:

tar xvf <tapedevice> <name of file>

check for format of <name of file> on tape using

tar tvf <tapedevice>

if the tar file is a file on disk, replace <tapedevice> with the path/filename. HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top