mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-10 04:58:11 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
33
tldr/rar
Normal file
33
tldr/rar
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rar
|
||||
|
||||
> The RAR archiver. Supports multi-volume archives that can be optionally self-extracting.
|
||||
> More information: <https://manned.org/rar>.
|
||||
|
||||
- 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 -v{{50M}} -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}}`
|
||||
Reference in New Issue
Block a user