rar

The RAR archiver. Supports multi-volume archives that can be optionally self-extracting.

TLDR

Archive 1 or more files

>_ rar a [path/to/archive_name.rar] [path/to/file1] [path/to/file2] [path/to/file3]
copy

Archive a directory

>_ rar a [path/to/archive_name.rar] [path/to/directory]
copy

Split the archive into parts of equal size (50M)

>_ rar a -v[50M] -R [path/to/archive_name.rar] [path/to/file_or_directory]
copy

Password protect the resulting archive

>_ rar a -p[password] [path/to/archive_name.rar] [path/to/file_or_directory]
copy

Encrypt file data and headers with password

>_ rar a -hp[password] [path/to/archive_name.rar] [path/to/file_or_directory]
copy

Use a specific compression level (0-5)

>_ rar a -m[compression_level] [path/to/archive_name.rar] [path/to/file_or_directory]
copy

Copied to clipboard
free 100$ digital ocean credit