Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am on CentOS server. I have to download a .tbz file every day which is of 3GB in size and then i have to extract it and use inner files for further process.

There are 48 files in the .tbz extracted folder and i have to use only one file from it. After extraction size of the folder is approx. 25 GB because of which disk space of server get exhausted.

I tried

tar -xjf /var/www/html/folder1/folder2/folder3/price.tbz total_price


tar xjf /var/www/html/folder1/folder2/folder3/price.tbz total_price -C /var/www/html/folder1/folder2/folder3/


tar -xjf /var/www/html/folder1/folder2/folder3/price.tbz --wildcards --no-anchored 'total_price*'

where total_price is the name of the file inside it. But above command says :

tar: total_price: Not found in archive
tar: Error exit delayed from previous errors

Any idea what i am missing?

share|improve this question

2 Answers 2

 tar -xjf /var/www/html/folder1/folder2/folder3/price.tbz total_price

should work. Are you absolute sure that the file is in the archive?

share|improve this answer
please see my question. i already tried it. –  Astha Dec 19 '11 at 7:16
yes when i extract the archive file without the file name specifically i can see this file in it. –  Astha Dec 19 '11 at 7:17

it worked for me by the command:

tar --extract --file=/var/www/html/folder1/folder2/folder3/price.tbz price/total_price

which extracted the file inside the folder price.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.