compression ratio, the default is 6, the smaller the number, the lower the compression ratio, the faster the speed Conversely, the larger the number, the greater the compression ratio, the slower the speed.
Zip Oracle
-r 压缩包名 源文件…… unzip 压缩包名 cat /var/log/messages | zip messages - unzip -p message > message
Tar * * * -可以不要 -c 创建包 -v 详细过程 -f 指定生成后的文件名 源文件…… tar -tvf mage.tar 预览归档文件 tar -r /etc/fstab -f m
Compression and decompression:Compression format: gz,bz2,xz,zip,zCompression algorithm: Compression algorithm is different, compression ratio will be different, the compression algorithm is not discussed hereCompression and decompression of filesGzip: *.gzGzip/path/file_name: The original file is deleted when the compression is complete-D: Unzip-#: Compression ratio (1-9), default = 6Gunzip: ==> gzip-dgunzip/path/file_name.gz: Delete original file after decompressionZcat/path/file_name.gz: View
archive and compress the toolZipfilename.zip file1 file2Unzip : UnzipArchive : Archive, the archive itself does not mean compressionTar : Archive tool, only archive not compressed- C : Creating an archive file- F File.tar : Archived files for Operations- x : Expand Archive File--xattrs : Preserves extended attribute information while archiving- T : Do not expand the archive to see which files are archived within the archive-ZCF : Archive and compress
There are several points to note when Swift implements object archiving
To inherit nscoding, implement two methods
Extension is a classification, the classification does not allow storage capacity, so the protocol method can not be written in the classification
The init (coder Decoder:nscoder) function in the protocol overrides the original constructor, so there is at least another Init method in the class
If you do not specify a
and unzip.
2. Archiving Files at the Shell PromptA tar file is a collection of several files and/or directories in one file. This is a good the to create backups and archives.Some of tar' s options include:
- C -create a new archive
- f -when used with the- C option, use the filename specified for the creation of the tar file; When used with the- x option, unarchive the specified file
- t -show the list of files in the tar
IOS Application Data storage mode (archive)
One, simple explanation
In the use of plist data storage and reading, only applicable to the system with some of the common types to use, and must first obtain the path relative trouble;Preferences (keep everything under the same folder, and primarily to store settings for the application)Archiving: Because the first two have a fatal flaw, you can only store commonly used types.
Tags: IKE process close file BSP Net Gap selected ARC archive logThis document study, DG Standby Library, real-time application How to judge, Mr Process, and MRP application archiving, three cases of query and verification 1. Canceling the MRP process Standby Library Query process statusSelect Process,client_process,sequence#,status,block#,blocks from V$managed_standby;PROCESS client_p sequence# STATUS block# BLOCKS--------- -------- ---------- -----
"alt=" 1 "src=" http://s3.51cto.com/wyfs02/M01/9D/F2/ Wkiom1mjmrkaeoxdaaasfhzp4tc364.jpg "height=" 107 "/>Log_mode shown as Archivelog for archive mode, noarchivelog as non-archive modeSecond, open the archive mode1. You need to close the database before enabling the archive mode650) this.width=650; "title=" 2 "alt=" 2 "src=" http://s3.51cto.com/wyfs02/M01/9D/F2/ Wkiol1mjmrprpvzoaaaualplktc339.jpg "height=" 113 "/>2. After shutting down, start the database for easy loading: start with Mount for
encodeobject:name Forkey:@"_name"]; [Acoder encodeobject:child Forkey:@"_child"];}//Implement the solution file method in the protocol.- (ID) Initwithcoder: (Nscoder *) adecoder{if(self =[Super Init]) {Self.age= [Adecoder Decodeintforkey:@"_age"]; Self.name= [Adecoder Decodeobjectforkey:@"_name"]; Self.child= [Adecoder Decodeobjectforkey:@"_child"]; } returnSelf ;}@endInitialize the object and parameters to be archived in the main function.#import#import "Human.h"intMainintargcConst Char*arg
This method is based on the last one of the methods made some changes, more convenient.Since the code inside the new class has not changed, it is no longer written here.Optimization Benefits: At the beginning of the definition of a macro, the path is placed directly in the macro here, if you want to change the address later, directly change the macro definition of OK.#import#import "Human.h"#definePATH @ "/users/cain/desktop/objective-c/Experiment code/File operation/Archive/human/human.txt"intM
Common compression tool after compressing file suffixCompress/uncompress: . ZGzip/gunzip: . GZBZIP2/BUNZIP2: . bz2XZ/UNXZ: . XZ1, gzip/gunzip. GZgzip [OPTION] ... FILE ...-D: Uncompressed, equivalent to Gunzip-C: Outputs the result to standard output;-#:1-9, specify the compression ratio;Zcat: View text file contents without explicit expansion;2, bzip2/bunzip2. bz2bzip2 [OPTION] ... FILE ...-k:keep, keep the original documents;-D: Unzip-#:1-9, compression ratio, default is 6;Bzcat: View text fil
Fundamentals of the ten-year OPS series-LinuxZeng LinContact: [Email protected]Website: www.jplatformx.comCopyright: Please do not reprint the article without permission
First, IntroductionMaintaining the system data security is one of the basic tasks of the computer System Manager, and it is a common method to maintain the system data security in time to create the backup file of the system files. Even for non-system administrators, it is often useful to create backup files frequently or move
Implementation features:Back up the E:\123 file to the E:\backup folder, holding the backed up file as a subdirectory on the current date1 #! /usr/bin/python 2 #Filename:backup.py 3 #功能说明:备份文件,以当前日期为子目录存放备份后的文件 4 5 import os 6 import time 7 #要备份的目录,可在此列表中增加 8 source = [r‘E:\123‘] 9 10 #备份文件存放的目录11 target_dir = ‘E:\\backup\\‘12 13 #取当前时间为备份子目录名14 today = target_dir + time.strftime(‘%Y%m%d‘)15 now = time.strftime(‘%H%M%S‘)16 17 #在备份文件名中加入注释18 comment = input(‘Enter a comment:‘)19 if len(comment)
Preparatory work
Dungeon Hunter 5 Unlimited Diamond/gold coin archive Download Address: http://pan.baidu.com/s/1lkK6i
Baidu Search Download iTools3.1.8.0 Chinese version installed on the computer
Archiving Import Failure resolution
1, first and install the game;
2, run the game to the main menu interface, we are now not to play the game but to quit and back in the background of the mobile phone;
3, now we put Iphone/ios equipment and computer co
Using XML plus Ngui to implement role information storage or archiving, okay, no more talking about first, we start to do the preparatory work, this tutorial uses NGUI3.0.6.
The first step: first import Ngui, then create a new 3 folder scene, script, prefabs respectively for the scene, scripts, presets, and then use Ngui creating a 2DUI diagram:
The second step: we start to write the first script, as the XML file stored data structure, a new C # scri
Use the next method of the Fmresultset object to traverse the queried data
Fmresultset ways to get different data formats
Intforcolumn:
Longforcolumn:
Longlongintforcolumn:
Boolforcolumn:
Doubleforcolumn:
Stringforcolumn:
Dataforcolumn:
Datanocopyforcolumn:
Utf8stringforcolumnindex:
Objectforcolumn:
2. Using the examplefmresultset *resultset = [self.db Execute query:@ "select * from T_student;"];//Search by CriteriaFmresultset *resultse
) Create a new partition scheme where archived data is saved to the TestDB_Part2 partition file CREATE Partition Scheme testdb_archivepatitionscheme as Partition testdb_archivepartitionrange to ([PRIMARY], testdb_part2); Create a test data table, bind a partition scheme CREATE TABLE testarchivetable (archived Bit not NULL, Date DATETIME) On testdb_archivepatitionscheme (archived) Insert some new data, ready for testing INSERTIntoTestarchivetable (archived
/archarchive_1_7_947091054.log 3 948044324 1 8 /home/oracle/u01/app/oracle/product/11.2.0/dbhome_1/dbs/arch_1_8_947091054.log9. Adding and deleting log file groupsalter database add logfile group 1 (‘/home1/oracle/oradata/ora8i/log1a.log‘),‘/home2/oracle/oradata/ora8i/log1b.log‘) size 100M;alter database drop logfile group 1;10. Adding and deleting log membersalter database add logfile member ‘/home1/oracle/oradata/ora8i/log1a.log‘ to group 1,‘/home1/oracle/oradata/ora8i/log2
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.