Introduction to Linux under RAR command __linux

Source: Internet
Author: User
Tags rar switches

1. Introduction

This command is used to compress or decompress files in the RAR format.


2. Grammar

A adds a file to the compressed package
C Add Compression notes
CF Add File Comment
CW writes a compressed note to the file
D removing files from a compressed package
E Extract files under current directory
f refreshing files in a compressed file
i[par]=< str> Find the specified string in the compressed package
K Lock Compressed Package
L[T,B] Lists the contents of the compressed package [T (technical) detailed list, B (bare) simple list]
M[F] Move content to a compressed package [F (Files only) move file only]
P Prints the contents of the file on standard output
R Repair Compressed Package
RC Repair Lost Volume
RN Renaming compressed Files
RR[N] Add Data Recovery records
Rv[n] Create a recovery volume
S[name|-] Converts a compressed package to a self-extracting file or from a self-extracting file into a compressed package
T Test compressed file
U update files in a compressed package
V[T,B] Lists the files in the package (verbose) [T (technical) detailed list, B (bare) simple list]
x extract files in full path
< switches>
-Stop Switches scan
Ad adds a compressed file name after the destination path
Ag[format] Generate a compressed file name with the current date
ap< path> Set the path inside the ZIP package
As synchronous compressed content
AV Set Authorization Authentication (registered edition function)
av-Disable authorization authentication check
C-Barred content display
cfg-do not read settings
CL converts a name to lowercase
CU converts names to uppercase
DF Deletes source files after compression is complete
DH Open Shared File
DS for solid compressed packages, disable name sorting
e< attr> settings file does not contain a property
Ed does not add empty directories
En does not set the ' End of compressed file ' block
EP removes the path from the name
EP1 Remove the basic path in the name
EP2 Expand Full Path
F Refresh File
Hp[password] Encrypts both file data and file headers
IDP Disabled percent display
Ierr sends all the information to the standard error output
Ilog[name] Generate error log file (Registered edition feature)
Inul Disable all information
ISND Enable sound effect
K Lock Compressed Package
KB Keep the torn uncompressed file
m< 0..5> Set Compression rate (0-storage ...) 3-Default ... 5-Max)
mc< par> Set advanced compression parameters
md< size> Size in KB (64,128,256,512,1024,2048,4096 or A-G)
Ms[ext ext] Specifies the type of file that is stored
o+ Overwrite existing file
o does not overwrite existing files
Ol save a symbolic link as a link instead of a file
ow save or restore a file owner/group
P[password] Set Password
P-No Query password
R Directory Content Cycling
R0 a subdirectory content loop for wildcard characters only
RR[N] Add Data Recovery records
Rv[n] Create a recovery volume
s[< n>, V[-],e] Create solid compression package
S-Disable solid compaction
Sfx[name] Create a self-extracting compression pack
Decompression Test after T compression
ta< date> processing files modified after the < date> (YYYYMMDDHHMMSS format) date
tb< date> processing files modified before the < date> (YYYYMMDDHHMMSS format) date
TK retains initial compression time
TL Sets the time for the latest file compression time
tn< time> processing of files modified after < time> time
to< time> processing of files modified before < time> time
ts< m,c,a> [N] Save or recover file time (modify, create, access)
U Update files
V to compress with automatic volume size, or to list all the volumes
v< size> [k,b] < size> *1000 size split volume compression [k-*1024, b-*1]
Ver[n] File version control
VN using old split-volume naming
VP pauses each time before rewinding
w< path> set working directory
x< file> exclude specified file
x@ read the file name to exclude from standard input
x@< list> The file specified in the Exclude list file
Y replies Yes to all questions
z< file> Read the contents of a compressed package from a file

3. Example

1) View the files in the compressed package
$rar L Xxx.rar

2 Extract the contents of the compressed package to the current directory
$rar e Xxx.rar

3 compression of a specified file, such as AAA, to the maximum compression rate
$rar A-M5 Xxx.rar AAA

4 with the path to extract the contents of the document to the current directory
#rar e Test.rar


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.