rar
all
The RAR archiver. Supports multi-volume archives that can be optionally self-extracting.
More info →Examples (6)
Archive 1 or more files
rar a path/to/archive_name.rar path/to/file1 path/to/file2 path/to/file3 ...Archive a directory
rar a path/to/archive_name.rar path/to/directorySplit the archive into parts of equal size (50M)
rar a -v50M -R path/to/archive_name.rar path/to/file_or_directoryPassword protect the resulting archive
rar a -ppassword path/to/archive_name.rar path/to/file_or_directoryEncrypt file data and headers with password
rar a -hppassword path/to/archive_name.rar path/to/file_or_directoryUse a specific compression level (0-5)
rar a -mcompression_level path/to/archive_name.rar path/to/file_or_directorymade by @shridhargupta | data from tldr-pages