RAR command
Function descriptionRAR is a common compression format in Windows systems, and this type of compressed file is mainly exchanged with Windows systems instead of compressing or archiving files. Use the following:
rar [Options] ZIP file name
Common parameters
Options
Description
E
Unzip the file to the current directory
L[T,B]
List Compressed Document in
On Windows Zip package, RZ upload to Linux, found garbled. Record the resolution process:1. Determine the default character set on WindowsUnder Windows platform, directly on the command line, enter: CHCPIn the results shown, a number appears, regardless of the character set that the number represents. Record this number.2.locale viewing the character set of a Linux environmentIf Lang=zh_cn. UTF-8 display is not ZH_CN. UTF-8, it is modified to ZH_CN first. UTF-8.Export LANG=ZH_CN. UTF-83.rz uploa
Tags: using the win default install compression garbled ubunt command zipBecause the win is using GBK encoding, the zip files packaged in win under the use of unzip uncompressed in Ubuntu will appear garbled problem.Solution:Change software, without unzip, use Unar18.04 is installed by default and can be used if there is no default installationsudo Install UnarThis command installs.1. List the contents of t
Tags: Ota win and 3.1 htm str RAC OSI multiple
Original: Linux unzip multiple. gz or. tar.gz files at once
Unzip multiple compressed packagesFor extracting multiple .gz files, use this command:for gz in *.gz; do gunzip $gz; doneFor extracting multiple .tar.gz files, use the following command:for tar in *.tar.gz; do tar xvf $tar; doneExtension: Tar commandTar [-] A--catenate--concatenate | C--
NOTE: * Compress into limited. zip format filesCommon decompression:[Email protected] test]# Unzip-o test.zip-d tmp/Unzip the compressed file Test.zip under the specified directory TMP , and require the unzip command to overwrite the original file if the same file exists.Common compression:[Email protected] test]# zip-r test.zip./*All files and folders under the
Mysql5.7.18 unzip the version to start the mysql service, mysql5.7.18mysql
Mysql5.7.18 unzip the version to start the mysql service. The specific content is as follows:
1. Download mysql Community Edition
2. decompress the package to D: \ Program Files.
3. In D: \ Program Files \ mysql-5.7.18-winx64 \ bin, create the file my. ini with the following content:
[client] port=3306 default-character-set=utf8 [m
Python's Tarfile module makes it easy to read tar archive files, and Cow B is able to handle compressed archive files using gzip and bz2 tar.gz and tar.bz2.
Corresponding to the Tarfile is the ZipFile module, ZipFile is the processing of zip compression. Note: Os.system (cmd) allows the Python script to execute commands, of course including: Tar-czf *.tar.gz *,tar-xzf *.tar.gz,unzip and so on, when I think this can solve the problem, but I feel very a
Unzip MySQL in Ubuntu and install Ubuntu
1. unzip the package to/usr/local/mysql in Ubuntu.Groupadd mysqlUseradd-g mysqlCd/usr/local/mysqlChown-R mysql.Chgrp-R mysql.Chown-R root.Chown-R mysql dataCp/usr/local/mysql/support-files/mysql. server/etc/init. d/mysqldCp/usr/local/mysql/support-files/my-huge.cnf/etc/my. cnf
2. modify my. cnfNano/etc/my. cnfAddBasedir =/usr/local/mysqlDatadir =/home/mysql
3. i
compressed packages //////////////////////////// /*common methods in the Ziparchive class*/ $zip->addemptydir (' CSS ');//Create an empty folder in the Zip archive, return TRUE on success, or return FALSE on Failure $zip->addfile (' index.html ', ' in.html ');//add a file to the zip directory, and name it in.html, the second argument can be omitted $zip->addfromstring (' in.html ', ' Hello World ');//add content to a file in Zip $zip->extractto ('/tmp/zip/');//
(Fi_d)ElseGlobal FileCountGlobal ZipdirFileCount = FileCount + 1# Print FileCountFileName = Os.path.join (filepath,fi_d)Filenamenoext = Getfilenameandext (FileName) [0]Fileext = Getfilenameandext (FileName) [1]# If you want to save to the same folder, set the file name to emptyFilenamenoext = ""Zipdirdest = Zipdir + "/" + Filenamenoext + "/"If fileext in ['. zip ', '. rar ']:If not Os.path.isdir (zipdirdest):Os.mkdir (Zipdirdest)if Fileext = = ". Zip": #Print str (filecount) + "--" + fileName#
ArUnpacking: Tar xvf Filename.tarPackage: Tar cvf filename.tar DirName(Note: Tar is packaged, not compressed!) )---------------------------------------------. 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 F
A detailed example of compression decompression commands under LinuxExample: compressing the contents of the current directory on the server as a xxx.zip fileZip-r xxx.zip./*Unzip the zip file to the current directoryUnzip Filename.zip============================Another: Some servers do not install the ZIP package does not execute the zip command, but basically can be used with the tar command, the example is as follows:tar-zcvf/home/zdzlibs.tar.gz/ho
ratioThe compression ratio of compressed files can be verified by using the '-l ' option.Gzip-l archieve.gzCheck the compression ratec) Unzip the fileGunzip is used to extract files, where the original (compressed) files are also deleted after being decompressed. Use the-C option to preserve the original file.Gunzip-c archieve.gzUnzip the fileGzip plus the '-d ' option and gunzip have the same effect on compressed files.More details are available fro
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.