TAR Extract Question.
Help..
I have a huge tar file and I only need one file from it. I've been trying to extract the one file with the following command but can't seem to get it. Could anyone give me a hand with the proper command: tar -xvf blog_work_linux.tar I need the Readme.txt file from this tar file. I've tried a number of commands such as: tar -xvf blog_work_linux.tar Readme.txt and tar -xvf blog_work_linux.tar /Readme.txt and nothing works. Thanks.:cry: |
Quote:
"tar --list --file=blog_work_linux.tar" to list the archive and verify the spelling and case of Readme.txt. |
Thanks bigrigdriver.
Yep. that the correct name of the file. |
Try opening it with a GUI archiving tool and verify the name. You can extract the one file with the same GUI tool.
|
do
Code:
tar -t blog_work_linux.tar |
hm, strange.
Look at the tarball's content using $ tar -tf blog_work_linux.tar and check whether the Readme.txt is in the "root directory" of the tar. In case it is contained in a sub-directory you have to give the tar command the full path to it! e.g. Code:
tar -tf blog_work_linux.tar tar -xf blog_work_linux.tar docs/Readme.txt Or ... just use a GUI utility, as proposed. |
Thanks all,
I'll try some of this out and advise. |
All times are GMT -5. The time now is 12:33 AM. |