RAR mit der Shell

2. März 2016 / Bash / Mac / Ubuntu

×Info: This post is older than 2 years! Displayed information may be outdated!

Rar-Files mit Passwort schützen auf der Konsole (inkl. Verschlüsselung der Dateiliste).

# recursive with best compression
rar a -hp archive.rar -r -m5 folder_to_be_rared/

# flags explained
# -p  : enter password in cli (not shown in bash)
# -h  : encrypt file list
# -m5 : best compression level
# -m0 : store (no compression)

# unrar
unrar e archive.rar