Article turned from: http://www.jb51.net/LINUXjishu/105916.html1. Compress the MyData directory below the/home directory to Mydata.zipZip-r Mydata.zip MyData #压缩mydata目录2. Unzip the mydata.zip under the/home directory into the Mydatabak directoryUnzip mydata.zip-d Mydatabak3, the home/home directory below the ABC folder and 123.txt compression becomes abc123.zipZip-r abc123.zip ABC 123.txt4. Extract the Wwwroot.zip from the/home directory directly int
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 file is named by default with the string following the "last"/"symbol", and we can rename it using "-O New file name".-limit-rate:
Tags: content folder use check gid JPG results user parameters1. Compress the MyData directory below the/home directory to Mydata.zipZip-r Mydata.zip MyData #压缩mydata目录2. Unzip the mydata.zip under the/home directory into the Mydatabak directoryUnzip mydata.zip-d Mydatabak3, the home/home directory below the ABC folder and 123.txt compression becomes abc123.zipZip-r abc123.zip ABC 123.txt4, the Home/home directory below the Wwwroot.zip directly extrac
Recently, the company newly configured a 64-bit cloud server, to deploy the time found that there is no installation of Zip/unzip compression decompression software.So I have to install the two software, Linux is best used or yum. Two instructions are installed.First list the Software installation package:#yum List |grep Zip/unzipA bunch of installation package names will appear. Then it is installed directly.#yum Install Zip# Yum Install unzipOK, now
Generally speaking, zip is more general, whether under Windows or Linux, zip can be easily compressed and decompression.Here are two more commonly used compression commands and decompression commands.Compress
Zip Mypackge.zip-r/var/test/
Compresses all files in the/var/test/directory, including subfolders and files, into Mypackge.zip
-R represents a recursive subdirectory
Decompression
Unzip mypackge.zip-d/var/test2/
Extract the Mypackge.zip int
---------------------------------------------. tgzDecompression: Tar zxvf filename.tgzCompression: Unknown. tar.tgzDecompression: Tar zxvf FileName.tar.tgzCompression: Tar zcvf FileName.tar.tgz FileName---------------------------------------------. zipDecompression: Unzip Filename.zipCompression: Zip Filename.zip DirName---------------------------------------------. rarDecompression: rar a Filename.rarCompression: R ar e filename.rarRAR please to: htt
. junit.testpublic void Testgzip () throws IOException {byte[] bytes = " Alex Everyone Karma card crash of a AH the card of the death of the crash of the feeling open on the AO trench Assad gas The song of the third tick tick tick tick ticking ". GetBytes ();//bytes Compression// Verify the compression effect comparison System.out.println ("before compression:"); System.out.println (bytes.length); for (byte b:bytes) {System.out.print (b + "");} System.out.println (); SYSTEM.OUT.PRINTLN ("compres
Linux unzip command . tar unpacking: tar xvf test.tar pack: tar CVF Test.tar DirName (note: Tar is packaging, not compression! . gzdecompression 1:gunzip filename.gzDecompression 2:gzip-d filename.gzcompression:gzip FileName. tar.gz and . tgzdecompression:tar zxvf FileName.tar.gzcompression:tar zcvf FileName.tar.gz DirName. bz2decompression 1:bzip2-d filename.bz2Decompression 2:bunzip2 filename.bz2compression: bzip2-z FileName. tar.
file content can be seen, actually useful only 4 filesThe rar and Unrar Two executables are moved to the/usr/local/bin directory, the rarfiles.lst configuration files are moved, and the default.sfx File to the appropriate directory.4, when we installed RAR, now to do is the RAR file compression and decompression. The common operations commands are as follows:[[email protected]52013515201351. rar // view action V[t[a],b] verbosely list Archive contents [Technical[all],bare] [Email
" 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 packaging of the Chinese file, after extracting garbled, prompt for invalid encoding format, because Windows is GBK encoding format, and Ubuntu under the def
This article mainly introduced the Zip/unzip Compression decompression command's use method and the parameter explanation, needs the friend may refer to under
1, the/home directory under the MyData directory compression to Mydata.zipZip-r Mydata.zip MyData #压缩mydata目录2, the/home directory below the mydata.zip extract into the Mydatabak directory insideUnzip mydata.zip-d Mydatabak3, the/home directory under the ABC folder and 123.txt compression into
Tar zxvf phddns_raspberry.tgzTar default unzip to current directoryParameters:At least one of the following parameters must be run when you run tar-A,--catenate,--concatenateMerging an archive with an existing archive-C,--createCreate a new archive-D,--diff,--compareCompare the differences between the archive and the current file--deleteRemove from archive-R,--appendAppend to end of archive-T,--listLists the directories of files in the archive-U,--upd
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.