Collectives on Stack Overflow. Learn more. Asked 8 years, 5 months ago. Active 8 years, 5 months ago. Viewed 29k times. Add a comment. Active Oldest Votes. Tar Tape Archive is a program that collects the files and grabs some helpful information about files it archives, such as permissions, dates, etc. As a Linux administrator, you often have to deal with tar files.
In many situations, you have to extract the data of a tar file to some specific directory. So, how to extract the tar file to a particular path? I just want to restore one single file from the backup. Will extract sources. Open the tar in Archive Manager from Nautilus, go down into the folder hierarchy to find the file you need, and extract it.
Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. How do I extract a specific file from a tar archive? Ask Question. Asked 9 years, 5 months ago. Active 2 years, 1 month ago. If you find this guide helpful or have more information or additional ideas, you can give me a feedback by posting a comment.
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! If you like what you are reading, please consider buying us a coffee or 2 as a token of appreciation. We are thankful for your never ending support. The order of the arguments has to be changed. The single files or directories to be extracted need to be last:.
Your blog is very good, your blog has great information, your content is also very good, your blog has got a lot of help. I would like you to know that we are pleased to have read your beautiful and kind note of appreciation and encouragement. Thanks a lot. Have you created the separate directory before extracting the specific files to that directory? The -C option is used to specify a different directory and it must exists before extracting files. Else, you can also extract files withing the current directory without creating a new directory like:.
I have the same issue as Ren, and in my case I have created the destination dir… no matter how I specify things the extracted file always ends up in the current directory. Oh… if I change the order it works.
Great post.
0コメント