The differences are as follows:
RAR: is a patented file format used for data compression and archiving packaging.
TAR: A compression and packaging tool on Unix and Unix-like systems that can merge multiple files into one file, and the packaged file suffix is ??also "tar".
tar is uncompressed and is more efficient than compression. The algorithm of gz is the most primitive, so it is lower, followed by zip, then rar, and 7z. The two main algorithms are basically slightly better than rar, and are basically the same.
In Linux, tar is generally used in conjunction with other compression algorithm files without file management. Tar is used to package the entire file directory structure into a file, and then compressed once using compression algorithms such as gz and bzip. It is also a common method of compressing archives in Linux.
zip is relatively old and has well-known format specifications, so it has accumulated various compression and decompression implementations and has good compatibility. However, the existing file formats are relatively backward, and the file names may be garbled. problem (because the filename is in a non-Unicode encoding).
RAR file characteristics:
RAR usually has a higher compression ratio than ZIP, but the compression/decompression speed is slower.
Volume compression: Split into multiple files after compression.
Solid compression: treat the files to be compressed as the same file to increase the compression ratio, at the cost of decompressing the entire compressed package to access any file in the package.
Recovery record: Add redundant data for repair. When the compressed package itself is damaged but there are enough recovery records, the damaged compressed package can be restored.
Encryption: RAR 2.0 uses AES-128-cbc, (rar5.0 and later are AES-256CBC). The encryption algorithm of RAR was previously private. So far, none of them have been directly broken (at least not publicly), and there is only brute force cracking when there is no password.