From d290603c442233340c0f108ec02155c12edaece9 Mon Sep 17 00:00:00 2001 From: Ali Malek Date: Thu, 17 Oct 2019 16:03:11 +0330 Subject: [PATCH] rar: add page (#3414) --- pages/common/rar.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/common/rar.md diff --git a/pages/common/rar.md b/pages/common/rar.md new file mode 100644 index 000000000..f4b7b23b0 --- /dev/null +++ b/pages/common/rar.md @@ -0,0 +1,27 @@ +# rar + +> The RAR archiver. Supports multi-volume archives that can be optionally self-extracting. + +- 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/directory}}` + +- Split the archive into parts of equal size (50M): + +`rar a -v50M -R {{path/to/archive_name.rar}} {{path/to/file_or_directory}}` + +- Password protect the resulting archive: + +`rar a -p{{password}} {{path/to/archive_name.rar}} {{path/to/file_or_directory}}` + +- Encrypt file data and headers with password: + +`rar a -hp{{password}} {{path/to/archive_name.rar}} {{path/to/file_or_directory}}` + +- Use a specific compression level (0-5): + +`rar a -m{{compression_level}} {{path/to/archive_name.rar}} {{path/to/file_or_directory}}`