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??
A tar.gz file and a .tgz file are similar.
Compress files using tar:
for e.g. I want to create a backup.tgz or backup.tar.gz from folder /home/user/project
You can use
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)