Original author: Cold mo
In fact, want to achieve this function is very simple, first of all to upload a RAR decompression program, is RAR own decompression program, only need its coreProgram RAR.EXE this file is OK. Then you will upload a program that executes RAR.EXE CMD.
People in the previous Windows system will have a lot of RAR and zip format of compressed files, Ubuntu system by default, the support of these files is not very good, if you directly open with the "Archive Manager" will prompt the error, So today to share with you how to extract these two formats in Ubuntu compressed files
ZhangchangchangIn order to obtain a compressed package of files, and the package may contain compressed packets, folders, folders containing compressed packets, files and other nested cases, the use of breadth-first traversal and depth-first traversal method to solve the problem.public static list{String destpath = zippath.substring (0,zippath.lastindexof (".")) + "/";Unzip the compressed file firstif (Zipp
It is too difficult to find the relevant information on the Internet because it seems to be difficult to find rar.txt. In the hope of simplicity, the results may be difficult to find (there are so many websites #% % #@), come back and honestly read the instructions...
Generally, we use the RAR command line directly.Program1. No path (Folder compression file to the specified compressed file)Rar a-ep d: \
Split splitting large filesSystem defaults to self-containing# split-b 2048m AA Aa_-B N[BKM] B. Behalf of 512B,K representative 1kb,m representative of 1MThe following AA indicates the specified file prefixThe result: Aa_aa Aa_abMerge split files:# cat Aa_aa aa_ab > AARAR Splitting large files# apt-get Install rar# rar
Linux platform is not supported by default RAR file decompression, need to install the Linux version of RAR compression software, for: http://www.rarlab.com/download.htmAfter the download, unzip, go to the RAR directory, run the make command to install:[Plain]View PlainCopy
[[email protected] rar]# ls
Ack
If we are using a managed server it is usually necessary to implement file upload download (instead of FTP function for remote file management) has improved the efficiency of file processing the following program code enables automatic decompression of files
The //////uncompress the specified RAR file. //////////// public void Decompressrar (string rarfiletod
Are you still bothered by the decompression wait? Are you still struggling with the growing use of memory? Then come to know Winmount, it will lift your troubles, will bring you surprises, until you fall in love with it! Let rar, zip compressed files, the same can be mounted!
Winmount can not only quickly open the compressed file, but also the image file virtual into the optical drive. It loads these
1, install a compression software, there are many online. WinRAR, 360 compression, good pressure can be;
2, we take bandizip compression software for example, after installation, click RAR file will be prompted with what program open, choose Bandizip on it;
3, installed the icon becomes normal, the file icon is not related to the problem, the installation has let you select the file associated, you downlo
TAR-XVF rarlinux-3.9.3.tar.gzCD rarMakeSee the following message that the installation was successful.Mkdir-p/usr/local/binMkdir-p/usr/local/libCP rar Unrar/usr/local/binCP Rarfiles.lst/etcCP Default.sfx/usr/local/libThe following issue occurs when you run the command rarRAR:/lib/i686/nosegneg/libc.so.6:version ' glibc_2.7 ' not found (required by RAR)Workaround:CP Rar_static/usr/local/bin/rarRAR x Vpsyou.r
Run the following Python program error couldn ' t find path to Unrar Library solution:#!/usr/bin/python#-*-coding:utf-8-*-from unrar Import rarfilefile = Rarfile. Rarfile ('/root/ssl.rar ') file.extractall ('/tmp ')Note: Rarfile has been installed through PIP3 install Rarfile, but unrar with PIP3 although the prompt is successful but there is a problem, so manually installed under the Unrar package.1. Install dependent packagesYum Install gcc gcc-c++2
Label:Add the following script to the server scheduled task, set to execute daily, the file backup path is the path of the script, you must install the compressed file@echo offREM Calculates a date that precedes a specified number of days and is used to delete data for a specified number of daysSet daysago=7set/a year=1REM assumes that the format of the system date is YYYY-MM-DDCall:D atetodays%date:~0,4%%date:~5,2%%date:~8,2% passdaysset/a passdays-=%daysago%Call:D aystodate%passdays% dstyear d
Today encountered in the Linux server to extract a few RAR files problem, RAR seems to be win exclusive compression format, so the Linux native tool chain does not support RAR decompression tools. After a series of search to determine a foot linuxrar software, but this software is not free, need to purchase a certifica
Sometimes the compressed files downloaded from the Internet may be inexplicably damaged, and an "unpredictable compressed file end" warning will appear during decompression. The solution is to download the software (Advanced RAR repair) and fix it. This software is not small, but powerful. It can be fixed if the compressed package is damaged.
Source: http://hi.baidu.com/outh/blog/item/6ed562fec2da3f235d6
1. Right-click the file to be compressed, select Add to compressed file.
2. Enter the "compressed file name and parameters" of the Operation page, set the "Compressed Files format" and "compressed to volume, size" (General selection of RAR format, compression volume size according to the size of the file to compress and the number of compressed components, such as this example, To compress the file
Under Liunx is originally not support RAR file, need to install Liunx under the WinRAR version, operation as followswget http://www.rarsoft.com/rar/rarlinux-4.0.1.tar.gz-zxvf rarlinux-4.0. 1 . TAR.GZCD rar Make#####################################################See the following message that the installation was successful.Mkdir-p/usr/local/binMkdir-p/usr/local/
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.