How to tar a directory?

I just needed to tar a directory with all files inside of it under Debian 5.

Open shell prompt or putty whatever and write:

tar -cf “files.tar” /path/to/yourfiles

by the way “c” means youre creating a tar file and “f” means you want to use a file name as you pleased.

If you want to update this tar file you can use:

tar -uf “files.tar” /path/to/yourfiles

Tags: ,

Leave a Reply

You must be logged in to post a comment.