[plug] How to use tar/gtar to extract individual files

Phillip Steege psteege at tpg.com.au
Fri Apr 21 11:31:44 WST 2000


First, I read the man page for tar.

I used tar to make a backup of my home directory:
  cd /home
  tar cvf /tmp/home_backup.tar .

How do I extract an individual file from the tar archive.  I don't want to
extract the entire backup.

I tried the following to extract a file called "myfile"

  tar xvf home_backup.tar/myfile .

Regards,
Phil




More information about the plug mailing list