" 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
objTarget.Items.Count > 0
End Sub
To extract the code:
Copy Code code as follows:
UnZip "D:\test.iso", "D:\test.zip"
Msgbox "OK"
Sub CopyFolder (ByVal mysourcedir, ByVal mytargetdir)
Set fso = CreateObject ("Scripting.FileSystemObject")
If not FSO. FolderExists (Mysourcedir) Then
Exit Sub
ElseIf not FSO. FolderExists (Mytargetdir) Then
Fso. CreateFolder (Mytargetdir)
End If
Set Objshell = CreateObject ("Shel
Mysql-5.7.12-winx64.zip Decompression Installation Method1. Unzip the file to the location you want to install.I am directly extracted to the e-drive.2, configure the environment variable, put in path: E:\mysql-5.7.12-winx64\bin;3, in the E:\mysql-5.7.12-winx64, the new My.ini, MySQL configuration.The configuration content can be:---------------------------------------------------------------------------------------------------------[Client]port=3306D
/b.txtstudy/a/study/a/a/study/a/d/[[emailprotected] ~]$ lskernel linux study 2. Package and use gzip compression[[emailprotected] ~]$ lskernel linux study study.tar[[emailprotected] ~]$ tar -zcvf study.tar.gz study/ 使用 gzip 压缩study/study/a.cstudy/b.txtstudy/a/study/a/a/study/a/d/[[emailprotected] ~]$ lskernel linux study study.tar 3. Package and use BZIP2 compressiontar -jcvf study.tar.bz2 study/4. View a list of compressed files[[emailprotected] ~]$ lskernel linux study study.tar
1, Tar-cvf/data/sc2.tar/data (package only, do not compress)Pack the files under the/data into Sc.tar. All two of them are absolute paths.tar-zcvf/data/sc2.tar.gz/data2. Unzip the/tmp/etc.tar.gz file under/USR/LOCAL/SRC[Email protected] ~]# CD/USR/LOCAL/SRC[Email protected] src]# tar-zxvf/tmp/etc.tar.gz---------------------3, go to a directory, and then extract the other absolute path of the compressed files into this folderExampleCd/data/sc5Tar-zxvf/
Compressed Stream class:Gzipoutputstream and Zipoutputstream can compress data into gzip format and zip format respectivelyGzipinputstream and Zipinputstream can be compressed into gzip format or zip data extracted to restore the originalGzip is multiple files compressed into one file, Zip is a single file compression;D Multiple files compressed sequentially, Out.putnextentry is to compress the file's entry information into the compressed file, getnextentry to determine whether there is the next
Import Os,os.pathimport ZipFile def zip_dir (dirname,zipfilename): FileList = [] if Os.path.isfile (dirname): F Ilelist.append (dirname) else:for root, dirs, files in Os.walk (dirname): For name in Files: Filelist.append (Os.path.join (root, name)) ZF = ZipFile. ZipFile (Zipfilename, "w", Zipfile.zlib.DEFLATED) for tar in filelist:arcname = Tar[len (dirname):] #print Arcname zf.write (Tar,arcname) zf.close () def unzip_file (Zipfilename, Unziptodir): If not os.path.exists (Unz Ip
First go to FolderCd/home/ftp2/1520/webCompress method One : Compress 888.com website under WebZip-r 888.com.zip888.comcompression Method Two : All files and folders under the current directory are compressed into a myfile.zip file,-r indicates that all files under the recursive compression sub-directory.Zip-r myfile.zip./*ExtractUnzip-o-d/home/sunny Myfile.zipUnzip the Myfile.zip file to/home/sunny/-O: Overwrite the file without prompting;-d:-d/home/sunny indicates that the file is extracted to
Tags: packaging tar bulk packagingPackagedThe list of files to be packaged is put into c_list.txt, and if it is a database file, you can use show tables; commands to list the table names.#!/bin/bash# Bulk Package for I in ' cat c_list.txt ' do tar-jcvf $i. tar.bz2 $i. frm $i. MYD $i. MYI DoneBatch decompression:#!/bin/bash for i in ' ls./*.tar.gz ' does tar-zxvf $i >/dev/null doneReference article:http://blog.csdn.net/zgf19930504/article/details/51912150This article is from the "Enlightened Groc
RM-RF * Delete all files under the current directory, including directories and subdirectoriesCP/ETC/SERVICES/TMP Copy the Services file under the ETC directory to the TMP directoryLs-lhZip services.zip Services Compression services files, generating services.zip filesLs-lhMkdir-p shijiazhuang/changanqu shijiazhuang/yuhuaqu shijiazhuang/-R shijiazhuang.zip Shijiazhuang Compress Shijiazhuang directory, generate Shijiazhuang.rar file lsLsunzip shijiazhuang.zip Extract directory file Shijiazhuang.
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. Installation:After the extract command is executed, there is a "Install" file in the file that is usu
First, downloadwget http://mirrors.hust.edu.cn/apache/lucene/solr/6.0.0/solr-6.0.0-src.tgzSecond, decompressionTAR-ZXVF solr-6.0.0-src.tgzNote:1. The. tgz file and the. tar.gz file are the same. Packed files that are compressed. tar package the file, and do not compress;. GZ does compression processing2. tar.gz (. tgz) file Decompression ideas:(1) TAR-ZXVF solr-6.0.0-src.tgz Direct decompression, unpacking(2) gunzip solr-6.0.0-src.tgz for decompressionTAR-XVF Solr-6.0.0-src.tar3, reverse operati
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.