Derwynd's Weblog

Derwynd's Weblog

Playing With Tar Files

I once wanted to create a empty tar file….
tar -czfv empty-archive.tar.gz /dev/null

To append to tar files….

tar –append –file=empty-archive.tar.gz filename
If you now use the –list (-t) operation, you will see that rock has been added to the archive:

less empty-archive.tar.gz

To untar at a specific location add the -C operator

tar -czfv empty-archive.tar.gz -C /home/

November 10, 2008 - Posted by | Uncategorized

Sorry, the comment form is closed at this time.

%d bloggers like this: