Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I want to extract a file from tar file , if I use tar -xvf will extract all files , if I want to only extract a directory , can advise what can i do ? thx
also please state the nix distro you are running in your posts
i can tell you how to grab 1 file using Gnome or kde ( file roller or ark )
just double click on the file and extract that 1 file .
extract the file blah.txt from foo.tar.gz
a similar approach should work for packed directories, though for very nested directories you need to pass the pathname relative to the tarball, I guess.
===I want to extract a file from tar file , if I use tar -xvf will extract all files , if I want to only extract a directory , can advise what can i do ? thx===
tadosborn:
===Does anyone have a simple command to extract a directory?===
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.