During field work, large files (larger than 8 GB) in the Solaris system cannot be tar, especially when the cold backup of the database is larger than 8 GB of data files, the database backup fails.
First, for example, to back up a data file larger than 8 GB to a tape, you must change tar CVF/dev/RMT/0 to tar cvfe/dev
[Gzip/gunzip] gzip is the compression command, and the corresponding gunzip is the decompression command, which is very simple to use, as follows: gzipfile1 is compressed, the compressed file name is file1.gzgunzipfile1.gz, and the decompressed file name is file1. note: gzip
3. Accumulated Linux/UNIX operation commands (gzip, jar, tar, find, crontab) and gzipcrontab
In Linux/UNIX, users often use text interfaces to set up systems or operating systems. The author is constantly working on these commands, therefore, this article has been specially developed, prepared, and started. This article mainly records some of the operating commands you encounter in Linux/UNIX at ordinary ti
Common Linux Compressed file extensions*. Z Compress compressed files (has been replaced by gzip)*.gz gzip Program Compressed files*.BZ2 BZIP2 Program Compressed files (better than gzip, but only for one file to compress)*.tar Tar program packaged data, no compression (using
protected] databackup]# du-sh src.tar.gz 607msrc.tar.gz[[email protected] databackup]# TAR-ZTVF src.tar.gz |lessBZIP2:Bzip2 for compressing files, bunzip2 for extracting filesBut we look at the link file, will find that, in fact, BUNZIP2 is actually a link to bzip2[[emailprotected]~]#ls-l/usr/bin/bunzip2lrwxrwxrwx.1root Root57 Month 523:42/usr/bin/bunzip2->bzip2[[email protected]~]#bzip2install.log[[emailprotected]~]#lsanaconda-ks.cfg index.html inst
file.Example 02Command: Gzip–r Testfile.tarInput:[Email protected] root]# gzip–r Testfile.tar[[email protected] root]# ls[Email protected] root]#DescriptionCompress a tar backup file with a. tar.gz file name extension.-R or--recursive recursively handles all files and subdirectories under the specified directory.010Linux jar Command1
Refer to "Linux Shell Script Introduction Second Edition"The-C in the TAR command stands for "Create file"The-F in the tar command represents "specify filename". (the file name must be immediately after-F, and-F should be the last one in the option)1. Archive Files with tar:
Packaging and compression. Packaging refers to a large number of files or directories into a total file, compression is a large file through some compression algorithm into a small file.This is due to the many compression programs in Linux that can only be compressed for one file, so that when you want to compress a lot of files, you have to first make the whole heap of files into a package (tar command), a
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
follows:
-C writes the output to the standard output and keeps the original file.-D. decompress the compressed file.-L the following fields are displayed for each compressed file:Size of the compressed file; size of the uncompressed file; compression ratio; Name of the uncompressed File-R recursively searches for the specified directory and compresses all the files or decompress the files.-T test to check whether the compressed file is complete.-V displays the file name and compression ratio f
Linux Command tar, linux Command tar
The tar command is a reliable method for backing up files in Unix/Linux systems. It can work in almost any environment and has the permission of all users.
Syntax:
Packaging Example: package files in the /usr/local/src/zlib-1.2.5 directory into zlib-1.2.5.tar.gzCD/USR/LOCAL/SRCTAR-CZVF./zlib-1.2.5.tar.gz/zlib-1.2.5/*# compressed into the development directory (for example:/root/2/) tar-czvf/root/2/ zlib-1.2.5.tar.gz./zlib-1.2.5/*
#压缩
TAR-CZVF ***.tar.gz
TAR-CJVF ***.tar.bz2
#解压缩
originally used to create files on tape. now, you can create files on any device. Using the tar command, you can package a large number of files and directories into one file, which is very useful for backing up files or combining several files into one file for network transmission. Www.2cto.com has two concepts: Packaging and compression. Packaging refers to converting a large number of files or director
command, you can package a large number of files and directories into one file, which is very useful for backing up files or combining several files into one file for network transmission. Www.2cto.com has two concepts: Packaging and compression. Packaging refers to converting a large number of files or directories into a total file. Compression refers to converting a large file into a small file through some compression algorithms. Why do we need to
a single file, so that when you want to compress a bunch of files, you have to first punch a stack of files into a package (the tar command), and then compress it (gzip bzip2 command).The most common packaging program under Linux is tar, and the packages we use in the
only be compressed for one file, so that when you want to compress a lot of files, you have to first make a package (Tar command) of the whole bunch of files, and then compress the program (gzip bzip2 command).The most common packaging program under Linux is tar, which is o
two concepts? This is due to the many compression programs in Linux that can only be compressed for one file, so that when you want to compress a lot of files, you have to first make a package (Tar command) of the whole bunch of files, and then compress the program (gzip bzip2 command).The most common packaging progra
The TAR command creates archives for Linux files and directories. With tar, you can create files (backup files) for a specific file, or you can change files in the file or add new files to the file. Tar was originally used to create archives on tape, and now users can create files on any device. With the
only be compressed for one file, so that when you want to compress a lot of files, you have to first make a package (Tar command) of the whole bunch of files, and then compress the program (gzip bzip2 command).The most common packaging program under Linux is tar, which is o
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.