Method of extracting RAR and zip files in Ubuntu system
In the previous Windows system, there will be many RAR and zip format of compressed files, Ubuntu system by default, these files are not very good support, if you open the "Archive Manager" will prompt errors, So today to share with you how to extract the two formats in Ubuntu compressed files;
We need to install two software: 1, 7zip;2, Ark, these
FileName
.Tar.bz2
Unlock: tar jxvf FileName.bz2
Production: tar jcvf FileName.bz2 DirName
---------------------------------------------
. Bz
Undo: bzip-d FileName. bz
Production: Unknown
. Tar. bz
Unlock: Unknown
Production: Unknown
---------------------------------------------
. Z
Uncompress FileName. Z
Production: compress FileName
. Tar. Z
Undo: tar Zxvf FileName.tar. Z
Production: tar Zcvf FileName.tar. Z DirName
---------------------------------
the main implementation of this example: 1. compressing folders and their files 2. compressing files in a folder 3. the compressed folder and its files are RAR or zip 4. decompress 5. ----------- example Code : protected void button#click (Object sender, eventargs e) { string strzippath = "C: \ freezip \ free.zip "; system. diagnostics. process process1 = new system. diagnostics. process (); process1.startinfo. filename = "winrar.exe"; pro
. SQLBackup (svr );
Return true;}Catch (Exception err){Throw (new Exception ("failed to back up the database" + err. Message ));}Finally{Svr. DisConnect ();}}
/// /// Compress the specified file to the specified folder/// /// /// /// Public bool rar (string path, string rarPath){Bool flag = false;System. Diagnostics. Process Pc1 = new System. Diagnostics. Process ();Pc1.StartInfo. FileName = "Winrar.exe ";P
Filename.zipCompression: Zip Filename.zip DirName---------------------------------------------. rarDecompression: rar x Filename.rarCompression: rar a Filename.rar DirNameRAR please to: http://www.rarsoft.com/download.htm download!After extracting, copy the rar_static to the/usr/bin directory (other directories specified by the $PATH environment variable are also available):[email protected] tmp]# CP Rar_s
' Process the files in each directory.
Sub Handle_files (foldername)
' Create a File object.
Set fs = CreateObject ("Scripting.FileSystemObject")
Set f = fs. GetFolder (FolderName)
Set FC = F.files
' Create the shell.
Set ws = CreateObject ("Wscript.Shell")
' Traverses the file object.
For each FL in FC
if (InStr (fl. Name, "vbs") = 0) and (InStr (FL). Name, "rar") = 0) Then
' To compress.
s =
Tags: HTML ret bash create local bad connect slash desktopReferenceHttp://blog.chinaunix.net/uid-26719405-id-3450447.htmlRe-create a soft connection if there are RAR deletions in/user/binIf the "-bash:/usr/local/bin/rar:/lib/ld-linux.so.2:bad ELF Interpreter: There is no file or directory" error occurs because the correct version is not installedRAR Extract to current directoryRAR x Filename.rarRAR Extract
Reprint please indicate the source:Http://www.cnblogs.com/why168888/p/5975559.htmlThis article is from:"Edwin Blog Garden"rar File Download: http://www.rarlab.com/download.htmNrar5.40Freeware Copyright (c)1993- .Alexander Roshalusage:unrarSwitch 1>-SwitchN> e Extract files without archived paths L[t[a],b] List archive contents [Technical[all], bare] p Print file to stdout T Test archive files v[t[a],b] verbosely List Archive contents [Technical [All],
CodeIgniter restrictions on formatting when uploading files are defined in the mimes.php file in the Application Folder config. The file does not contain RAR by default, and the zip definition does not upload a compressed package. In the class, we can solve this problem by adding the following code:
Copy Code code as follows:
"Zip" => Array ("Application/x-zip", "Application/zip", "application/x-zip-compressed", "Application/octet-stream "),//
Winmount is the development of a new concept of "virtual optical drive" tool, it can be a zip, RAR, ISO, BIN file mount for a new letter, like a virtual CD-ROM, you can directly double-click the file inside, and do not need to expand, decompression and so on. A friend who has used or is familiar with the Linux operating system will know that you must perform a Mount command on the Linux system to identify the USB disk, and then specify a mount locatio
If your computer has very limited hard disk space, this article should be useful for you. In this article, we'll discuss how to enable file compression for files or folders. and zip file compression or RAR file compression, in this way, you do not have to create an archive file, compressed files will be as accessible as before compression.Before you begin, you need to know that this compression method is only valid for disk partitions that are formatt
. bz
Compression: Unknown
---------------------------------------------
. Z
Decompress: uncompress FileName. Z
Compression: compress FileName
. Tar. Z
Decompress: tar Zxvf FileName.tar. Z
Compression: tar Zcvf FileName.tar. Z DirName
---------------------------------------------
. Tgz
Decompress: tar zxvf FileName. tgz
Compression: Unknown
. Tar. tgz
Decompress: tar zxvf FileName.tar. tgz
Compression: tar zcvf FileName.ta
Believe that the vast majority of life Win7 system users often encounter compression or decompression files, compressed files can make our data occupy a smaller memory space. But sometimes we win7 the flagship version of the 32-bit system to extract the file, but encountered the problem of the RAR compressed file has been corrupted. So how can we solve such a problem?
The method is as follows:
1, first to enter the WinRAR software, and then we choos
Dim Ylj,ywj,mlpath,shell,rarcomm,retcode,cmd,comm,fso
Mlpath= "E:\page\mian\" to store RAR.EXE and CMD.EXE paths
Ylj=server.mappath ("Mian") "\" The path after extracting the file
Ywj=server.mappath ("Mian\apathy.rar") ' RAR file to extract
Set Shell = Server.CreateObject ("Wscript.Shell")
Rarcomm= "e:\page\mian\cmd.exe/c" Mlpath "Rar.exe x-t-o+-p-"
cmd=rarcommywj "" ylj
RetCode = Shell.run (cmd,1, True)
%>
is to use Server.CreateObject ("Ws
? ")" Button to start the software-provided DVD burning tool. After inserting the DVD tray, click "Write DVD (Write to DVD)" to burn.
Research and Production of compressed DVDs
The compressed DVD is very popular, attracting me to study it carefully. After repeated tests and scrutiny, we found that the rules are as follows:
1. Video setting standard: 1150 Kbps, 25.0 fps, resolution: 352*288 (or), MPG2 = MPEG 2 (SVCD/DVD ).
2. audio setting standard: 224 Kbps, 48000Hz, 2 channels, Mpeg-1 audio Lay
7-Zip Introduction
7-Zip is a compression software that claims to have the highest compression ratio today. It not only supports the unique 7z file format, but also supports a variety of other compression file formats, including ZIP, RAR, CAB, GZIP, BZIP2, TAR, etc. The compression ratio of this software is 30-50% higher than that of common ZIP files. Therefore, it can compress Zip files by 2-10%.7-Zip Ma
Php calls system commands plus compression. how can we use php to call system commands to decompress uploaded compressed files? at least, zip files can be decompressed, other items like rar or gz can be used. ------ solution ------------------ 1. tar or gzip command line tool must be installed: pack all. txt files under the current directory and compress them to the file exp.tar.gztarczvfexp.tar.gz. *. t ph
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.