Download a rar for linux software online, its suffix is tar.gz which means it is compressed in Unix file format, we can use it in the terminal (you must complete this command in super user state!) Tar -zxvf filename.tar.gz --directory=/opt(opt can also be any folder you want to install) Then we can transfer to the rar for linux installation folder to execute a make command, but in order to Easy to use, we can create two symbolic links in usr/bin [root@walter downloads]# ln -s /opt/rar/rar /usr/bin/rar [root@walter downloads]# ln -s /opt/rar /unrar /usr/bin/unrar
This is installed, there are two programs rar and unrar after installation, rar is the compression program, unrar is the decompression program. They have a lot of parameter options, here is a brief introduction, to illustrate its usage: (There may be problems with missing libraries, see below)
# rar a all *.jpg
This command compresses all .jpg files into a rar package called all.rar, which will automatically append the .rar extension to the package name. # unrar e all.rar This command is to extract all the files in all.rar.
The above method is suitable for installing rarlinux-3.6.tar.gz, but I downloaded rarlinux-3.7.1.tar.gz software, can not be installed successfully
(Runtime prompt is missing. So library file)
Online to find several ways to solve rarlinux
After decompression, you can directly make (but use this method, hint: unrar: error while loading shared libraries: libstdc++ .so.6: can not open shared object file: No such file or directory) Second, according to the above tips, echo $PATH, and then add libstdc++.so.6 to the system directory. Third, there is a rar_static file in the unpacked file. This is a static-linking version, just use this program.
cp rar_static /usr/local/bin/rar
Follow the rar a way to create a compressed file, use rar x to open the file. The third method prompts FATAL: kernel too old
It seems to be upgrading the kernel!
===================================================== ============================================================================================================ Software, using the third method, everything is OK! But using the first method still does not work, or prompts an error.
******************************************** ********************* rar command detailed
rar e arm.rar file1 file2 ... compressed file. . . To arm.rar
rar x arm.rarfull path decompression
rar x arm.rar -ap path Extract to the folder. . .
Usage: rar <command> -<option 1> ….-<option N> <action document> <file…> <@file list…> ; <Decompression path>
The usual rar command consists of a main command plus a number of options (optional). The operation document is a .rar file object applied to the operation. The file or file list is modified for the operation document. Specific file or directory (optional). -------------------------------------------------- ----------------------rar Commonly used commands mainly have a file added to the operation document Example: rar a test.rar file1.txt If the test.rar file does not exist , package the file1.txt file into test.rar Example: rar a test.rar file2.txt If the test.rar file already exists, add the file2.txt file to test.rar (so there are two in test.rar) File) Note, if there is already a copy of a file in the operation document, the a command updates the file, and the directory can also be operated. rar a test.rar dir1
c Add to the operation document Explain the comment rar c test.rar (Reading comment from stdin will appear, then enter one or more lines of comments, ending with ctrl+d) cf add file comments, similar to c above, but this is for compressing each file in the document Make comments
cw Write document comments to the file Example: rar cw test.rar comment.txt
d Delete files from the document Example: rar d test.rar file1.txt
e Extract the file to the current directory. Example: rar e test.rar Note: If you use e to extract, not only the original file1.txt and file2.t Xt is decompressed to the current directory, even all the files in dir1 are decompressed to the current directory, can not maintain the directory structure before compression, if you want to maintain the directory structure before compression, use x to extract
k lock Document example: rar k test.rar After locking the document, the document can not be updated anymore
r Repair document example: rar r test.rar When the rar file has problems, you can try to use this command Fix (Ghost know how much)
s Convert document into self-extracting document Example: rar s test.rar will generate a test.sfx executable file, the effect of running it is equivalent to rar x test. Rar, suitable for transferring files to users without rar
t Detection document example: rar t test.rarTest the integrity of test.rar, generally compress large files ready to transfer before using this command to ensure The correctness of the file
x With the path to extract the contents of the document to the current directory Example: rar x test.rar such decompression, dir1 will maintain the original directory structure
The above is the common rar Command, a rar operation can only have one command, but the option can have multiple .
Fault 1. Local connection is restricted or no connection [Fault phenomenon] Each time you enter the
In recent years, the open source Linux system can be said to be in the limelight, whether it is pers
The network is often dropped. Many technicians think that the router is unstable. The ac
Linux 2.6 device drivers are built on the basis of the device model, therefore, to write device driv
Method of operating a Bluetooth phone in the Linux operating system, the so-called
centOS automatically installs php
Installing Arch Linux in my Defy
Linux prompt No such file or directory solution
How to build Debian apt-get source on redhat
Linux basic command summary --vi editor
Linux directory creation and deletion commands basics
Windows 7 and Fedora dual system installation method
Cygwin supports Chinese configuration
Linux operating system partitioning tool Fdisk tool introduction
Some suggestions for new Windows Vista users
How to close the vertical synchronization effect of Win7 NVIDIA graphics card
Microsoft demonstrates Windows 7 multi-touch technology for the first time
The solution that the mouse can't wake up after vista sleeps
How to do supervisory.exe error after booting win7 system
Steps to modify the IE cache directory under Win10 system
Protocol Statistics and Current TCP/IP Network Connections Displayed under Vista
How does Win10 put my computer on the desktop
Automatic installation of enterprise users Windows 7 deployment strategy