I use the more reliable, also relatively simple, where archiver is very powerful, support ZIP format tar format, only need to provide a path to compress the existing folder.Compression:1 varFS = require (' FS ');2 varArchiver = require (' archiver '));3 4 varOutput = Fs.createwritestream (' Archiver-unzip.zip ');5 varArchive = archiver (' Zip ');6 7Archive.on (' Error ',function(err) {8 Throwerr;9 });Ten One archive.pipe (output); A Archive.bulk
Linux decompression rar file (Unrar installation and use, sub-volume decompression)Windows platform A lot of compressed documents for RAR files, then how to do Linux decompression rar file (Unrar installation and use)?Simple, CENTOS5 installation Unrar can be. Unrar Installation methods are as follows:wget HTTP://DAG.WIEERS.COM/RPM/PACKAGES/UNRAR/UNRAR-3.6.8-1.EL
CEN decompress the. ZIP file and search a lot of methods on the Internet, using System. IO. compression. GZipStream uses the J # library function and the Java-based library function. However, many of them are not very good. In the end, it is still the System function System. shell. folder. copyHere (oItem [, intOptions]) is the best choice. The specific method is as follows:
1. Add the reference Shell32.dll, which can be found in
First, send the unpacking package to the Linux server:1. After downloading the. tar.gz file on the WinDOS, send it to Linux via the SFTP client such as WinSCP2. Direct download via wget command in Linux#wget [Options] []wget Common parameters:-B: Background download (default download to current directory)-O: Save the downloaded file with a custom name. The downloaded fi
Tar: create an archive file [Syntax] tar [option] tarfilefilename [command description] the file name must be followed by the-f parameter and
Tar
[Syntax] tar [option] tarfile filename
[Command description]
The
/DD) will be packaged into the newly created file!–exclude file: Do not package file in the process of compression!Example:Example one: Package all the files in the/etc directory into a/tmp/etc.tar[Root@linux ~]# tar-cvf/tmp/etc.tar/etc[Root@linux ~]# tar-zcvf/tmp/etc.tar.gz
This article lists the tail commands in the linux file creation command to teach you how to use the tail command to create a self-decompressed tar file. The Tail command parameter has a parameter-n, -- linesN, which can be directly output by
This article lists the tail commands in the linux file creation command to tea
Tar
[Syntax] tar [option] tarfile filename
[Command description]
The file name must be followed by the-f parameter and used as the last parameter;
[Parameter description]
-C. Create a new archive file;
-F specifies the file name;
-R: append an object to an archive object;
-X
" Open normally under Windows, while open in Linux will be garbled, its solution for the terminal input:Iconv-f gbk-t UTF8 y05 document. txt > y05 document. Txt.utf8Then open the "y05 document. Txt.utf8" This file, the text see the garbled problem solved.Unzip the win environment packaging RAR file garbled ( due to the encoding, in
Windows and Linux/unix have different ways of handling file system character sets. The Windows file system driver layer itself has the character set conversion, processing module, no matter what character set from the operating system, the final to unified conversion to the different
Tags: color span str Decompression compiled kernel strong compressed file col tarToday try to compile the kernel, downloaded to a tar.xz end of the compressed file, online solution is less, but still found, as follows:
$XZ-D * * *. Tar.xz
$tar-XVF ***.tar
You can see that this package is also packaged and th
: Newer than the following date (YYYY/MM/DD) will be packaged into the newly created file!--exclude file: Do not package file in the process of compression!Example:Example one: Package all the files in the/etc directory into a/tmp/etc.tar[Root@linux ~]# tar-cvf/tmp/etc.tar/etc[Root@linux ~]#
The compressed zip file cannot be decompressed by 7z, and the format is windows to create it, and it does not press the package in this way under Linux. Here's how to work with this file under Linux:Method One:Cat xx.z01 xx.zip > full. zipunzipfull. zipMethod Two:Zip Xx.zip--out full. zipunzipfull. zipMethod Three:Zip-s 0 Xx.zip--out full.zipUnzip Full.zipReferen
CEN decompress the. ZIP file and search a lot of methods on the Internet, using System. IO. compression. GZipStream uses the J # library function and the Java-based library function. However, many of them are not very good. In the end, it is still the System function System. shell. folder. copyHere (
OItem
[
,
IntOptions. The specific method is as follows:
1. Add the reference Shell32.dll, which can be found in
Under the Linux system, there is no command to RAR file operation, if need file operation to RAR format, we need to install third party software RAR and Unrar.1, linux rar management software Download the official address is:http://www.rarlab.com/2, we can download and install according to the following command, here i download linux_x64 latest version of RAR software---rar 5.21 Beta 1 for Linux x64[Email p
1. Unzip:The software package with the tar.gz extension under Linux is a package that is packaged with a tar program and compressed with the GZIP program. To install this package, the package needs to be decompressed, the package can be decompressed using "TAR-ZXFV filename.tar.gz" , and the extracted files are in a directory named filename. Into the directory, you can see the extracted files.2. Installatio
backup file if the file you want to update cannot be found in the backup file. -X frees the file from the profile. 3.2 Accessibility Options: -B This option is set for the tape drive followed by a number that indicates the size of the block and the system preset is 20x512 bytes. -F uses an archive
files, important parameters-P: (uppercase P) retains absolute path, allowing the backup data to contain the root directory exists--exclude=file: During compression, do not package FILETip: How to extract a single file within a packageTar-jtv-f directory/file name. tar.bz2 | grep ' Find the string 'grep is the ability to search for keywords after locating the tar
Compression:
Tar czvf/data/backup/test.tar.gz/data/a/b/directoryExtract:
Cd/data/testTar xzvf/data/backup/test.tar.gz
The problem is, the unpacked file, inside the/data/test/data/a/b/directory
To unzip in the current directory path.
That's going to work out.
Tar czvf/data/backup/test.tar.gz/data/a/b/directoryChan
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.