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--
Zip is a widely used compression program, the file will be compressed after the additional ". zip" the compressed file for the extension. Parameters-A adjusts the executable auto-unzip file.-b-C adds a comment to each compressed file.-d deletes the specified file from within the compressed file.The directory name is not established within the-D compressed file.-F The effect of this parameter is similar to specifying the "-u" parameter, but not only up
Command name: zipFunction Description: Compress the file.Syntax:zip [-acddffghjjkllmoqrstuvvwxyz$][-b >][-ll][-n >][-t >][- >][Compressed Files [file ...] [-i >][-x ;] Note:zip is a widely used compression program that compresses files that have a ". zip" extension. Parameters-A adjusts the executable auto-unzip file.-b> Specifies the directory where files are temporarily stored. -C adds a comment to each compressed file.-d deletes the specifie
-O to set the latest change time for all files in the compressed file to the time of compression
-x specifies that you do not process which files in the. zip archive
-I only compress files that match the criteria
-F attempt to repair corrupted compressed file
-D does not establish directory names in compressed files
-A adjust the executable auto-unzip file
-j Delete executable file, leave a normal zip archive
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
System version:[Email protected] ~]# uname-r2.6.32-358.el6.i686[Email protected] ~]# cat/etc/issueCentOS Release 6.4 (Final)Kernel \ r on an \mDownload the Linux generic 32bit mysql package (http://dev.mysql.com/downloads/mysql/).Step Start:1, directly wget download, or download and upload to the server side.2, unzip.3, copy the extracted MySQL directory to/usr/local/mysql and create a new data directory under it.4, new user MySQL and user group MySQL
Tags: top production system component Ubuntu information file system compressed file UbuntRemove directory structure plus--strip-components NSuch as: Compressed file Eg.tar file information is src/src/src/eg.txtRunning TAR-XVF Eg.tar--strip-components 1Results:src/src/eg.txtIf you run TAR-XVF Eg.tar--strip-components 3The results of the decompression are: eg.txtIn the decompression, if you want to specify the decompression directory, you can add the parameter-C target directorySuch as: If we
Compression Decompression Command Introduction. GZ compression to gzip files. bz2 compression to bzip2 file. tar package files, merging multiple files into one directory. tar.gz first into a tar package, then compressed to gzip file. tar.bz2 first into a tar package, then compressed into a bzip2 file. Tar. Z first into a tar package, then compressed to Z file. rarCompress to RAR fileCompressed rar a *.rar fileUnzip Unrar e *.rar. zipCompress to zip fileCompressing zip *.zip filesDecompression
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.