Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

May 182010
 

How to extract a particular file from a tar file?

Answer:

Assume you have a lot of files in a tar file, how do you extract only a particular file without extract all the files?

Just use the following command:

# tar xvf files.tar file.txt

Now only file.txt is extracted.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>