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 Windows \ system32.2. Add the method.Static void
Unzip Tomcat 7 and ubuntuat7 in Ubuntu1. Download the compressed package
Here, we use the Ubuntu Wget tool to download the tomcat core package.The wget parameter is the URL address of the compressed package.
wget http://apache.claz.org/tomcat/tomcat-8/v8.0.21/bin/apache-tomcat-7.0.59.tar.gz
After the scripts are executed, an apache-atat-7.0.59.tar.gz compressed package is generated.2. decompress the compressed package
Run the following command in the
Install the unzip tuserver method on a USB flash drive that does not need to be decompressed or written into the image
In this way, you do not need to decompress Or write the downloaded ISO installation image file to a USB flash drive or hard disk. If the U disk is already the latest boot menu of old peach WinPE (which is often used by network administrators to directly restore GHO to install Windows), it does not need to be damaged. This is great.The
Linux/unzip tusudo Elevation of Privilege without entering a passwordPreface The sudo permission is required for zip packaging during the process of writing an automated packaging script, but it is too troublesome to enter the password each time. Therefore, we will introduce the method for sudo to escalate permissions without entering a password.Modify/etc/sudoers. If our current user is "wzy", add the following statement to the/etc/sudoers file:
# N
Install unzip CT on CentOS
CT is created on the basis of tcl, so you need to install tcl before installing CT
Install TCL
: Http://www.tcl.tk/software/tcltk/download.html
[Root @ test ~] # Cd/tools/
[Root @ test tools] # wget http://prdownloads.sourceforge.net/tcl/tcl8.5.19-src.tar.gz
[Root @ test tools] # tar xftcl8.5.19-src.tar.gz
[Root @ test tools] # cdtcl8.5.19/unix/
[Root @ test unix] #./configure
[Root @ test unix] # make
[Root @ test unix] # m
Unzip the rar compressed package in Linux
First download winrar for Linux: http://www.rarlab.com/download.htm at this URL
Extract the rar folder and enter the rar folder in the terminal,
Run the make command,
Then you can decompress the package.
Rar e aa.rar decompress the aa.rar compressed file to the current directory, which contains no directories. Rar x aa.rar decompress the aa.rar compressed file to the aa directory, and maintain the dir
Ubuntu installation SVN server step tutorial, unzip tusvn
Apache Subversion (SVN for short) is an open-source version control system. It uses a branch management system relative to the Cross-node Scripting (RCS) and CVS. Its design goal is to replace CVS. More and more control services on the Internet are transferred from CVS to Subversion.
First, download and install the svn server from the image:
[Plain] view plaincopy
Sudo apt-get install subversi
The compressed zip package in Windows is garbled after being decompressed In ubuntu.
1.zip file unzippered with garbled characters:
Step 1 first install 7zip and convmv (if not installed before)Run the following command on the command line:Sudo apt-Get install p7zip-full convmvStep 2. Set the ZIP file name to y05document. Zip. First, enter the directory where the ZIP file is located, and then run the command lineLang = C 7z x y05document. ZipConvmv-F cp936-T utf8-r -- notest *
2. garbled File
My zip file content is a Chinese name, there are passwords, find several solutions on the Internet only one can, so here's a record:The first is to install 7zip to decompress, 7zip solution here, but can't solve my problem, still have garbled problemFinally, the solution is found here.The process is as follows:1,Lsar test.zipAll files are listed (lsar-list archive file contents) and the file names listed are correct, then you can proceed to the next step.2,unar-p my_password test.zipYou can extr
Linux decompression widows compressed files are likely to encounter garbled problems, did not find a good way to temporarily put together a curve to the salvation of the method used.For example, unzip the zip file and use the following command:Unzip-o Character Set Xxxx.zipThe character set can be gb18030,cp936Extracted files If there is garbled, with the configuration of vim to open it, if not garbled, then the modified encoding method is utf-8:: Set
god!Originally I started to use the method, is the decompression under Windows, and then copied into the directory I created, so I lost a connection file (you can check it yourself)Therefore, this error occurs, and if the compressed package is copied first, there will be no loss of the soft connection file.Crossing do not believe, you can try it yourself, in the shared folder, unzip a compressed package and then copy to another directory, and then co
/mysql--datadir=/usr/local/mysql/data--user= Mysql
# Change Root password /usr/local/mysql/bin/mysqladmin-u root-p Password "123456" 3. Configure the Firewall # Configure the firewall to turn on port 3306 Vim/etc/sysconfig/iptables # Add the following rule to port 22 below this rule -A input-m state--state new-m tcp-p TCP--dport 3306-j ACCEPT # Restart Firewall /etc/init.d/iptables Restart # or service iptables restart # start MySQL Service mysqld Start # or/etc/init.d/mysqld start 4. Test if
Php uses exec to execute unzip to decompress the file. Why are the extracted civilized names in Chinese in a format similar to UTF-8 characters? For example, 2064 php uses exec to execute unzip to decompress the file
Why are the extracted civilized names in Chinese in a format similar to UTF-8 characters?
For example
2064-decompress the sub-file .mp4 to 2064-unzip
Many people on the web said to extract the jar package, but the jar command cannot be specified when extracting the directory, it is recommended to use Unzip decompression war package.unzip-d specify directory [[emailprotected] upload]# unzip-oq common.war-d common command name: Unzip function Description: Extract zip file syntax:
This article mainly introduces the use of Zip/unzip Compression decompression command and parameter description, the need for friends can refer to the following1. 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 AB
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 tools on Linux, it's important to look at the commonly used compressed package file format
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.