I want to compress files in .tgz. I know how to make tar.gz(with tar and gzip) and some people say it is almost the same, but I need to make a .tgz, how??
Ubuntu – Compress in .tgz
bashcompressiongziptar
bashcompressiongziptar
I want to compress files in .tgz. I know how to make tar.gz(with tar and gzip) and some people say it is almost the same, but I need to make a .tgz, how??
Best Answer
A tar.gz file and a .tgz file are similar.
Compress files using tar:
for example, I want to create a
backup.tgz
orbackup.tar.gz
from folder/home/user/project
You can use
tar cvzf
instead oftar -cvzf
as well.Extract .tgz or .tar.gz files using tar
Mnemonic for compression (the order of the flags do not matter)
Mnemonic for extraction (the order of the flags do not matter)