Instance
tar-zcvf/home/ecshopa/public_html/uggbootf20101214.tar.gz * Enter directory to compress all files under current directoryTar-zxvf/home/uggbootf/public_html/uggbootf20101214.tar.gz into directory to extract to current directory
Command
LinuxCommon compression and decompression commands are shown in Table 2-5.
Table 2-5 common Linux compression and decompression commands
Common commands
Brief Chinese description
Program directory
Gzip
You can use the-d
compression command: Compress gzip bzip2 zipCompress (the command is obsolete):
compress-v xxx (-V: Show progress), after compression xxx files will disappear and be replaced with XXX.Z
Compress-c-V xxx > xxx.z (-C: Source files are
Compression command: Compress gzip bzip2 XZ etcDecompression command: uncompress gunzip bunzip2 UNXZ, etc.Package (Archive) command: Tar cpioWhere compress, gzip, bzip2, and XZ can only be used for a single compressed file and cannot be used to
TARCommand nameThe GNU version of the tar-tar file management program. The following sections describe their meanings one by one.OverviewTar [-] A -- catenate -- concatenate | c -- create | d -- diff -- compare | r -- append | t -- list | u --
Tar
Archive tools under linux. Is to archive the file or directory into a file, but it is not compressed.Syntax formatTar [main options + auxiliary options] file or directory list
Primary Option-C. Create a new archive file-R: append the file to be
At the end of lifecycle. After the tar package is generated, you can use other programs to compress it. So let's first talk about the basic usage of the tar command:There are many options for the tar command (which can be viewed using man TAR), but
Recently, zeroc officially released the latest version of ice 3.3.1. I have also compiled it completely, including the compilation of the third-party libraries IT uses. Now, the compilation process is recorded here.
Compilation environment and code
Linux system (I) file system, compression, packaging operation summary, linux PackagingPreface
The current situation is that. Net is already open-source, and. Net Core is cross-platform. It can be seen that Microsoft is working hard, changing,
Linux compression and packaging
Compression Technology is generally divided into two types: lossy compression and lossless compression. In linux, data loss is generally not allowed, so they are all lossless compression.
In linux, compression
In liunx, extracting the current file is very simple. You can use the simplest tar command and unzip to implement it, but I will give you a variety of file extraction passwords in
▲linux Common zip file suffixes*. Z???????? Compress Program Compressed files*.bz2???????? BZIP2 Program Compressed Files*.gz???????? Files that are compressed by the GZIP program*.tar???????? Tar program packaged data, no compression*.tar.gz or tgz?
1) Zip and unzip commandZip-r Myfile.zip./* Compresses all files and folders in the current directory into Myfile.zip files, and-r means all files in the recursive compressed subdirectory.Unzip-o-d/home/sunny myfile.zip Unzip the Myfile.zip file
tar command[[Email protected] ~]# tar [-cxtzjvfppn] files and directories ....Parameters:-C: Create a compressed file parameter directive (the meaning of Create);-x: Unlock the parameter instructions for a compressed file!-T: View the files inside
zip Usage: Zip [options] files or directories that need to be compressed after the file name is compressed Common options: -q do not show compression procedure -r Recursive processing, processing all files and subdirectories
File and directory management and the use of the VI editorFile and directory management, just beginning to learn this piece of feeling a lot of content is miscellaneous, but after the completion of the summary, found in fact very organized and no
Linux Common Commands Daquan 1I. Commands for managing files and directoriesLinux commands for managing files and directories
Command
Function
Command
Function
Pwd
Show current directory
Ls
Common ZIP file extensions for Linux*. Z Compress program compressed files;*.gz gzip files compressed by the program;*.bz2 bzip2 files compressed by the program;*.tar The TAR program is packed with data that has not been compressed;*.tar.gz Tar
Linuxreading of compressed files· *. Z Compress program compressed files;· *.bz2 bzip2 Program compressed files;· *.gz gzip Program compressed files;· *.tar The tar program to package the data, and has not been compressed;· *.tar.gz tar program
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.