Skip to content

Instantly share code, notes, and snippets.

@murilogteixeira
Last active April 15, 2020 03:38
Show Gist options
  • Save murilogteixeira/7f1b3e536bdef67441fcd9e33b689224 to your computer and use it in GitHub Desktop.
Save murilogteixeira/7f1b3e536bdef67441fcd9e33b689224 to your computer and use it in GitHub Desktop.
Compress and split files with rar in terminal
sudo su
apt-get install rar

rar a -m5 -v4000M bkp.rar -R ~/file-name

a - Add files.

-m5 - Compression level. (0-store…3-default…5-maximal).

-vsize - Size of parts.

~/bkp.rar - Destination file.

-R - Specifies directories and subdirectories.

~/file-name - Origin file/folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment