https://www.cyberciti.biz/faq/how-to-create-tar-gz-file-in-linux-using-command-line/#tar_command

https://www.cyberciti.biz/faq/how-to-tar-a-file-in-linux-using-command-line/

https://askubuntu.com/questions/122141/whats-the-difference-between-tar-gz-and-gz-or-tar-7z-and-7z#:~:text=These are archives of multiple,compresses one file (only).

If you come from a Windows background, you may be familiar with the zip and rar formats. These are archives of multiple files compressed together.

In Unix and Unix-like systems (like Ubuntu), archiving and compression are separate.

tar puts multiple files into a single (tar) file.

gzip compresses one file (only).

So to get a compressed archive, you combine the two, first use tar or pax to get all files into a single file (archive.tar), then gzip it (archive.tar.gz). If you only have one file you need to compress (notes.txt), there's no need for tar, so you just do gzip notes.txt which will result in notes.txt.gz. There are other types of compression, such as compressbzip2 and xz which work in the same manner as gzip (apart from using different types of compression of course)

Understanding tar command options

Commands for compressing

Using zip, and unzip to compress and put passwords

"rsync" command to transfer your files remotely and locally in Linux based machines