Linux command
unrar 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Extract archive
unrar x [archive.rar]
Extract to directory
unrar x [archive.rar] [destination/]
Extract without paths
unrar e [archive.rar]
List contents
unrar l [archive.rar]
Test archive
unrar t [archive.rar]
Extract with password
unrar x -p[password] [archive.rar]
Extract and overwrite
unrar x -o+ [archive.rar]
说明
unrar extracts RAR archives. It supports all RAR versions including RAR5 with its improved compression. Extract with paths (x) recreates the directory structure. Extract without paths (e) puts all files in the destination. Multi-volume archives are handled automatically. Provide the first volume and subsequent parts are found. Password protection on both files and headers is supported. Without correct password, even filenames may be hidden. Testing verifies archive integrity without extracting. This confirms the archive isn't corrupted. The tool handles recovery records. Slightly damaged archives may still extract if recovery data exists.
参数
- -p _PASSWORD_
- Password.
- -o+
- Overwrite existing.
- -o-
- Skip existing.
- -or
- Rename existing.
- -y
- Yes to all queries.
- -x _PATTERN_
- Exclude files.
- -n _PATTERN_
- Include only files.
- -v
- List verbosely.
- -c-
- Disable comments.
- -id
- Disable messages.
- -kb
- Keep broken files.
FAQ
What is the unrar command used for?
unrar extracts RAR archives. It supports all RAR versions including RAR5 with its improved compression. Extract with paths (x) recreates the directory structure. Extract without paths (e) puts all files in the destination. Multi-volume archives are handled automatically. Provide the first volume and subsequent parts are found. Password protection on both files and headers is supported. Without correct password, even filenames may be hidden. Testing verifies archive integrity without extracting. This confirms the archive isn't corrupted. The tool handles recovery records. Slightly damaged archives may still extract if recovery data exists.
How do I run a basic unrar example?
Run `unrar x [archive.rar]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p _PASSWORD_ do in unrar?
Password.