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
PHP utility Function Manual: Stream_context_create () Analog post/get
Sometimes, we need to simulate post/get on the server side, that is, in the PHP program to implement the simulation, how to do it? Or, in a PHP program, give you an array, how do you post/get this array to another address? Of course, it's easy to use curl, so what if you don't use the Curl library? In fact, there are already related functions implemented in PHP, this functi
Iscriptis a set of scripts written by peterding God on GitHub, consisting of most python scripts and a handful of GM scripts. contains the following scripts:
xiami.py -Download or play high quality shrimp music (xiami.com)
pan.baidu.com.py -Baidu Network disk download, offline download, upload, play, dump, file operation
bt.py -Magnet torrent, and filter sensitive. Words
115.py -115 download and playback of the network disk
yunpan.360.cn.py -360 download of the network disk
musi
own effect is only in the variable or class name add a dashed line, usually look at the code is very uncomfortable, recently decisively for Xcode wrote a syntax highlighting plug-in, but the function is very limited, It's not so easy to use as eclipse, and it doesn't make any difference to the scope of the object. Share it with what you need. Download the attachment, unzip and put in: Your user/library/application Support/developer/shared/xcode/plug-
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
PHP utility Function Manual: Stream_context_create () Analog post/get
Sometimes, we need to simulate post/get on the server side, that is, in the PHP program to implement the simulation, how to do it? Or, in a PHP program, give you an array, how do you post/get this array to another address? Of course, it's easy to use curl, so what if you don't use the Curl library? In fact, there are already related functions implemented in PHP, this functi
---------------------------------------------. 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
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.