-jcvf/tmp/etc.tar.bz2/etc # Note that the file name after parameter f is taken by yourself, and we are accustomed to using. Tar as a recognition.# if the z parameter is added, the. tar.gz or. tgz represent the gzip compressed tar file ~# If you add the J parameter, use. tar.bz2 as the
Common commands:Zip:Package: Zip something.zip Something (directory please add-r parameter)Unpacking: Unzip somethingSpecify path:-d parameterTarPackage: TAR-ZCVF Something.tar SomethingUnpacking: TAR-ZXVF Something.tarSpecify path:-C parameterCompression/decompression tools commonly used on Linux,Main explanation Zip,rar,tarBefore you talk about the compression
relevant program, itself and no compression, decompression function, please note!Sex please to: http://sourceforge.net/projects/sex download!After unpacking, copy the sex to the/usr/bin directory (other directories specified by the $PATH environment variable are also available):[[email protected] tmp]# CP sex/usr/bin/linux Common File decompression methods and commandsSystem System 1. A file with an ext
Linux comes with a unzip program can unzip the file, the decompression command is: Unzip Filename.zip also provides a ZIP program compressed zip file, command is zip filename.zip files Files will be compressed to Filename.zip also look at the suffix of your
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
Log in 22 after tar compress/var/log directory output to standard input via pipeline to local 22_log.tar.gz file ssh 192.168.0.22 "Cd/var; Tar-zcvf-log"|cat >22_log.tar.gz re-creates the file in a relative location when extracting the archive file. You can use this method to
package of all.tar. -R indicates adding files. # Tar-uf all.tar logo.gif is a new logo.gif file in tarbao all.tar.tar.-u indicates the file to be updated. # The tar-tf all.tar command is to list all files in the all.tar package.-t indicates to list the files. # The tar-xf a
separately, rather than compressed together . Refer to the TAR directive below.GZIP-DV exp1.gz//Unzip the exp1.gz and display information such as compression ratio.GZIP-CD exp1.gz > EXP.1//The result of exp1.gz decompression is placed in the file Exp.1, and the original compressed file exp1.gz does not disappearPay sp
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
Document directory
Unzip the tar command in Linux
Find-name 'xixi. php' | xargs Perl-pi-E's | Hello | AA | G'
Find-name '*. html' | xargs Perl-pi-E's | AA | Hello | G'
Find-name '*. HTML '| xargs Perl-pi-E's | | G' (Note: It seems that only one row can be matched)
In Linux, this method is used to replace a large number of files with Trojans (JS files.
Search for the ABC. cpp
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
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
Tags: Zip tarOne, zip compressionInstall Zip and unzip firstYum Install-y Zip/unzipzip 1.txt.zip 1.txtCompressed file 1.txt, compressed filename is called 1.txt.zip zip -r 123.zip 123/Compressed folder 123/specified name 123.zip unzip 1.txt.zipThe zip file does not delete the source
Data.zip file has more than 4G, decompression when the problem.
Archive:data.zip
End-of-central-directorysignature not found. Either Thisfile is not
A zipfile, or itconstitutes one disk of a multi-partarchive. In the
latter case the centraldirectory and ZipFile comment would be found on
The last disk (s) of thisarchive.
Unzip:cannot find Zipfiledirectory in one of Bbs.zip or
Data.zip.zip,and cannot find Data.zip.ZIP, p
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
/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
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
: 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 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.