Posts Tagged ‘tar’

How to tar a directory?

Friday, May 21st, 2010

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