linux

linux tar simple example

OK, this is really simple, but I'm always forgetting the exact syntax, and man pages are overkill for this.

Tar a directory "dir" into a gzip'd tarball:

tar -zcvf dir.tar.gz dir

And extract it:

tar -zxvf dir.tar.gz

Syndicate content