current position:Home>CentOS installation RAR and usage, basic Linux Network Technology PDF

CentOS installation RAR and usage, basic Linux Network Technology PDF

2022-01-27 02:34:54 Alibaba_ Open Source

rr[N] Add data recovery record

rv[N] Create recovery volumes

s[name|-] Convert archive to or from SFX

t Test archive files

u Update files in archive

v[t,b] Verbosely list archive [technical,bare]

x Extract files with full path

  •         Stop switches scanning
    

@[+] Disable [enable] file lists

ad Append archive name to destination path

ag[format] Generate archive name using the current date

ai Ignore file attributes

[[email protected] rar]#

 Copy code

3、rar Command usage

example 1: Add files or directories to compressed files , Use a command .

For example, file files1 Add to abc.rar in , Use a or m command ,a The command file1 Add files to abc.rar Keep the original in the file file1 The document remains unchanged ,m Command to move file1 File to file1.rar In the file ( After compression, the original... Will be deleted file1 file , Be careful :m The command operates only on files )

[[email protected] ~]# rar a abc.rar file1

explain : If at this time abc.rar The file does not exist , Will create abc.rar Document archives ; If abc.rar The file already exists , Will file1 The file is compressed into abc.rar archives in ; if abc.rar A... Already exists in the file file1 file , It will be updated. file1 file . And the original file1 The file still exists in the current directory , If you want to file1 File move to file1.rar Please use m command , You can also do this for directories .

Be careful : If you just type "rar a file1.rar" command , Without a file name or directory name , All files and folders in the current directory will be compressed into file1.rar In the document . Pay attention to this .

example 2: decompression abc.rar The contents of the file , have access to e or x command , hypothesis abc.rar There is a directory called file1 And a file named test The catalog of ,test There is a directory called file2 The file of ,

[[email protected] ~]# rar e abc.rar  # Not recommended

explain : Use e command , Will abc.rar Medium file1 The document is accompanied by te

《 A big factory Java Analysis of interview questions + Back end development learning notes + The latest architecture explanation video + Practical project source code handout 》

【docs.qq.com/doc/DSmxTbFJ1cmN1R2dB】 Full content open source sharing

st In the catalog file2 Extract the file to the current directory . If you want to keep abc.rar For the directory structure in the directory, please use x command .

[[email protected] ~]# rar x abc.rar # recommend

explain : At this point file1 Document and test Extract the directory to the current folder .

example 3: Add comments to the entire compressed file

[[email protected] ~]# rar c abc.rar

explain : After entering the command , The bottom of the screen will show

Processing archive test.

rarReading comment from stdin

And a cursor is flashing , Enter the comment information from the position where the cursor flashes , After entering, press Ctrl+D End input

example 4: Add comments to a single file in a compressed file , Use cf command . If you want to work for abc.rar In the archives file1 Add comments to the file

[[email protected] ~]# rar ch abc.rar file1

The bottom part of the screen will show

Reading comment for abc.rar : file1 from stdin

Flash out from the cursor and enter the desired value for file1 Added comments ,Ctrl+D End input

example 4: Write the comments of the whole file into a file , Use cw command . Join to add abc.rar Write comments to test.txt In file

[[email protected] ~]# rar cw abc.rar test.txt

say bright : If the current directory does not exist, it is named test.txt The file of , Will create a file named test.txt The file of , And will abc.rar Write comments to text.txt writing In the piece , If there is already a file named in the current directory text.txt The file of , You will be prompted whether to overwrite the existing file , If you choose Yes perhaps All, Then it will be empty test.txt The original content in , And then abc.rar The content of the comment is written to text.txt In file .

example 5: Delete files or directories in compressed files , Use d command . For example, to delete abc.rar In the archives file1 file .

[[email protected] ~]# rar d abc.rar file1

explain : This command removes abc.rar In the archives file1 file , It is also valid for directories .

Unzip command unrar Use :

[[email protected] ~]# unrar --help

usage : unrar -<switch 1> - <files…>

<@listfiles…> <path_to_extract\>

< command >

e             Extract the file to the current directory

l[t,b]        List compressed document information [technical, bare]

p             Print files to standard output

t             Test compression, I am

v[t,b]        List the details of the compressed document [technical,bare]

x             Unzip the file to the full path

unrar Command and rar Have the same effect , It can be seen that unrar It only includes rar Just part of the order , Therefore use rar You can do everything .

The parameters are as follows :

< command >

 Copy code

a Add files to the archive

c Add compressed file comments ( The maximum size of a comment cannot exceed 62000 byte )

cf Add file comments ( When using ’v’ Display file comments when setting parameters , Maximum not exceeding 32767 byte )

ch Change compressed file parameters

cw Write file comments to the specified file

d Delete file from archive

e Unzip the file to the current directory ( Do not create any subdirectories )

f Refresh the file in the file ( Update the changes of these files since they were packaged , Do not add new to the compressed file )

i[par]=<str> Find specific characters in the file

k Lock the file ( Any command that tries to change the contents of the compressed file will be ignored )

l[t,b] List files [technical, bare]

m[f] Move to compressed file [ Only for files ]

p Print files to standard output

r Fix compressed files

rc Rebuild the lost volume

rn Rename the file in the compressed file

rr[N] Add data recovery records

rv[N] Create a recovery volume

s[name|-] Compressed files and SFX( Self extracting documents ) Conversion between

t Test compressed archive

u Update files in compressed files

v[t,b] List the details of the compressed file [technical,bare]

x Extract to full path

< Options >

  •          Stop scanning options 
    

ad Append the file name to the target path

ag[format] Generate a compressed file name using the current data

ap<path> Set the path inside the file

as Synchronize the directory in the file

av Set up authentication detection ( Only the registered version provides this function )

av- Turn off authentication detection

c- Turn off the note display

cfg- Turn off read settings

cl Convert names to lowercase letters

cu Convert names to uppercase letters

df Delete the original file after compression

dh Open shared file

ds Close the sorting of names for stable files

dw Erase files after compression

e[+]<attr> Set file exclusion and inclusion properties

ed Do not add an empty directory

en Do not set file end block

ep The name does not contain the path

ep1 The name does not contain the base file directory

ep3 Expand the path to the fully contained drive name

f Refresh the file

hp[password] Encrypt file data and file headers

id[c,d,p,q] Close the message

ierr Send all messages to standard error output

ilog[name] Log errors to a file ( Only the registered version provides this function )

inul Close all messages

isnd Turn on the sound

k Lock compressed files

kb Keep the decompressed corrupted files

m<0…5> Set the compression level (0- Storage …3- Default …5- Maximum )

mc<par> Set advanced compression parameters

md<size> Dictionary size in KB (64,128,256,512,1024,2048,4096 or A-G)

ms[ext;ext] Stores the specified file type

n<file> Contains only the specified files

[email protected] Read the file name from standard input into the included content

[email protected]<list> Include the file... In the specified list file

o[+|-] Set override mode

ol Save symbolic connections for files as connections

or Automatically rename files

ow Save the owner and group of live storage files

p[password] Set the password

p- Don't ask for a password

r Perform recursive operations on subdirectories

r0 Only use wildcard names to recursively operate on subdirectories

rr[N] Add data recovery records

rv[N] Create recovery

s[<N>,v[-],e] Create a solid file compression

s- Close solid file compression

sc<chr>[obj] Sets the specified string

sfx[name] establish SFX archives

si[name] Read data from standard input

sl<size> The size of the processing file is less than the specified value

sm<size> The size of the processing file is larger than the specified value

t Compressed test file

ta<date> Process files whose modification date is after the specified date ,<date> Format : YYYYMMDDHHMMSS

tb<date> Process files whose modification date is before the specified date ,<date> Format : YYYYMMDDHHMMSS

tk Keep the file for the first time

tl Set the file time to the latest file time

tn<time> Process files newer than the specified time

to<time> Process files older than the specified time

ts<m,c,a>[N] Save or store files for ( modify , establish , visit )

u Update file

v Create automatically sized volumes or list all volumes

v<size>[k,b] Create a volume of the specified size size=<size>*1000 [*1024, *1]

tb<date> Process files whose modification date is before the specified date ,<date> Format : YYYYMMDDHHMMSS

tk Keep the file for the first time

tl Set the file time to the latest file time

tn<time> Process files newer than the specified time

to<time> Process files older than the specified time

ts<m,c,a>[N] Save or store files for ( modify , establish , visit )

u Update file

v Create automatically sized volumes or list all volumes

v<size>[k,b] Create a volume of the specified size size=<size>*1000 [*1024, *1]

copyright notice
author[Alibaba_ Open Source],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270234526002.html

Random recommended