How To Tar A Directory
Posted on February 23rd, 2008 in Everyday Tips, Sys Admin | No Comments »
I constantly forget how to tar a directory. I think the ln command and the tar command have their parameters in different orders and I can never seem to remember which parameter is the dir you are archiving and which one is the name for the archive. So here it is:
tar -czf archive.tgz dirName