Wednesday, August 19, 2009

Compressed tarball of files and sub-folders

At the ESX Service Console, to create a compressed tarball of files and sub-folders, use the following command:
tar -czf tarballname.tar.gz /directory/

To list the files in a compressed .tgz file:
tar -tzf tarballname.tgz

To extract a tarball:
tar -xzvf tarballname.tar.gz
More vQuotes

No comments:

Post a Comment