Compress folder Test/ to Test.tar.gz
tar czfv Test.tar.gz Test/
czfv = ‘Compress Zip File Verbose’
If you want bzip files, use ‘j’ instead of ‘z’.
Uncompress Test.tar.gz to folder Test/
tar -xzf Test.tar.gz
x = ‘eXtract’
Again, if you want bzip files, use ‘j’ instead of ‘z’.
Hi,
Thanks, This is very usfull information.
Manjunat
Thanks
Hi , Really this is very useful for me.
Thank You.
Thanks, i just using your info for backup my server files.
the command for compressing is missing a “-“
You can use “tar czfv Test.tar.gz Test/” or “tar -czfv Test.tar.gz Test/” or “tar xzf Test.tar.gz” or “tar -xzf Test.tar.gz”.
No matter, works the same 😉