Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Normally I'm extracting my copies with:

pigz -dc backup2_week1_system.tar.gz | tar xzvf -

Now I want to unpack specific directory from /home/user for example admin

share|improve this question
up vote 1 down vote accepted
pigz -dc backup2_week1_system.tar.gz | tar vxf - FILE

where FILE is the file to extract. For example

pigz -dc backup2_week1_system.tar.gz | tar vxf - bob

Will extract the bob directory (e.g. /home/bob) from backup2_week1_system.tar.gz. Note that you don't need the z flag because pigz will already decompress the gzip'd portion.

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.