Source: http://blog.csdn.net/cqq/
Add file comments to compressed files under rar command line
There are a lot of rar compressed files in the past two days,
Add comments.
I checked the help of rar and found that it is very convenient to do this under the command line.
Rar provides a considerable number of paramete
Normal RAR is a compressed file under Windows, Linux is not supported. However, you can use the RAR command to extract RAR files by installing Rarlinux.First download Rarlinux[Email protected] ~]# wget http: //rarsoft.com/rar/rarlinux-4.0.1.tar.gz --2015-07-17 22:59:37--http://rarsoft.com/
Under Windows WinRAR almost unified compression software market share, WinRAR is only a RAR in the Windows environment of the graphical interface, the core function or RAR, then how to install RAR in Linux?
1. Download rar
Download Address: http://www.rarsoft.com/download.htm, currently the latest version of 5.1.1.
For the zip file on the web, a lot of examples, RAR file decompression PHP does not have direct support, you can use PECL to Http://pecl.php.net/package/rar download the corresponding version of the non-thread-safe DLL and then throw to the PHP ext directory.
Open php.ini.
Add one line
Extension=php_rar.dll
Restart the Web server and PHP
Copy Code code as follows:
Public function _unzip
After the installation of Ubuntu, the default is not support RAR documents, when you double-click a RAR document with the mouse will give us the above tips!If you want to open the RAR document will need to install a RAR parsing, by opening the terminal, enter:Copy the code code as follows:sudo apt-get install rarDownlo
The P7zip-full and P7zip-rar two software are automatically installed via the sudo apt-get install P7zip-rar.After that, you can extract the compressed files directly from the right mouse button selection.[Email protected]:~$ sudo apt-get install P7zip-rar[sudo] password for Deng: Reading package list ... Completing the dependency tree that is analyzing the package is reading state information ... Com
Yesterday, my colleague gave me a copy of a file, upload to my Linux server ready for decompression use, knocked a half-day tar command, prompted what can not decompress, this gives me gas Ah! The use of compression software in Windows can easily solve this problem, but under Linux I was helpless, so fart to ask a little niang.: http://www.rarlab.com/download.htm (Latest version 5.21)1, using TAR-XZPVF decompression out a RAR folder;2, use the CD comm
1.centos 6.2 Install RAR compression command after error/lib/ld-linux.so.2:bad ELF interpreter:no such file or directory addressLibstdc++so.6:cannot open Shared object file:no such file or Directroy when compressed again with Yum install ld-linux.so.2And then execute the CP-RF rar/rar_static/usr/local/bin/rar and then sort it out for/usr/local/lsws/bin/lswsctrl s
Common parameters and examples of 1,TAR commands:Required Parameters: (3 parameters cannot coexist)-C: Creates a compressed file that represents create.-X: Unzip the file-T: View the files inside the package!Auxiliary parameters:-Z: Compressed/uncompressed with gzip-J: Compressed/uncompressed with bzip2-V: Show the compression/decompression progress bar-F: Use the file name (note: F do not answer the parameters, that is,-ZXFV is wrong, to write-ZXVF)Instance:Unzip a file:TAR-ZXVF abc.tar.bz2(Dec
commentD remove file from compressed file E Extract compression from compressed file, ignore pathF Refresh files in compressed file I find a string in a compressed fileK Lock compressed file m move files and folders to compressed filesR repair damaged compressed files RC Rebuild lost volumesRN Rename compressed file Rr[n] Add data recovery recordRv[n] Create a recovery volume S[name] Convert a compressed file into a self-extracting file typeS-delete self-extracting module T test compressed file
Tags: tin finish style hat COM record round etc andRequirements Description :Today a colleague sent over a compressed file, sent to the Linux server, passed up, found to be RAR formatBefore the decompression, we found some decompression methods, in this record.Operation Process :1. Download RAR installation package in Linux environment: https://www.rarlab.com/rar
By default, Fedora does not support rarfiles. To open the rarfile, you must install the relevant software. Download the RAR3.71forLinux file, which is 759 kb in size, decompress the file, MB in size, and then: [root @ localhostrar] # cd ~ /Rar [root @ localhostrar] # makemkdir-p/usr/local/binmkdir-p/usr/local/libcp
By default, Fedora does not support rarfiles. To open the rarfile, you must install the relevant software.
Download the
I was very depressed when I installed Ubuntu7.10. I always found that the basic conditions for solving a problem were not met. For example, when I first installed the Ubuntu7.10 system, I wanted to go online to search for the data debugging system, but found that there was no Chinese Input Method. Today I want to change the default font of the system and downloaded the Microsoft RAR compressed package, but found that the system does not support
Compressing extended PHP Array objects
Recently there is a requirement: The file name inside the RAR archive, the size to get out, parse into JSON output;Read the countless information, learned to add php_rar.dll (if it is zip, add php_zip.dll extension), and finally through the program to get the relevant content of RAR, but the content of the contents of the format does not know how to parse into JSON, a
In the past two days, a friend forgot his RAR password.
I said: you go online to find softwareHe replied: none of them match the latest version.I said: write it yourself.ProgramCall the command line provided by RAR to judge the information returned by RAR. Ext.He replied: It seems very difficult for me to be in a hurry.I said: I will test it and write several
extracted filesN[Email protected] Read additional filter Masks from stdin[Email protected]o[+|-] Set the overwrite modeOl[a] Process Symbolic Links as the link [absolute paths]or Rename files automaticallyow Save or restore file owner and groupP[password] Set PasswordP-do not query passwordR Recurse SubdirectoriesScSlsmtatbtnToTsU Update FilesV List all volumesVer[n] File version controlVP Pause before each volumex[Email protected] Read file names to exclude from stdin[Email protected]Y assume
Rar and 7z are both from Uindows compression formats. Currently, they cannot be decompressed by default in Ubuntu. How can we enable the system to support them in Ubuntu12.10? Install 7zip: sudoapt-getinstallp7zip installation rar: sudoapt-getinstallrar this way, after installation is complete, your Ubuntu12.10 can support RAR and 7Z format files!
Generally through the default installation of Ubuntu can not extract RAR files, only after the installation of RAR decompression tool, can be decompressed. In fact, the installation of RAR decompression tool under Ubuntu is very simple, only need two steps can be quickly done.Ubuntu under RAR Decompression Tool install
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.