Linux Common Command Collation (iv): package Management and Shell basics

Source: Internet
Author: User

Hello everyone, I'm a singing program, ape ~~~~~~.

Recently in the study of Linux, spare time on these basic commands to organize, I hope you can use, the purpose of the finishing is to forget when the turn out to see ^?_?^, before and after a total of five parts:

Linux Basic Command Collation (a): Common commands

Address: http://www.cnblogs.com/devinCat/p/7247824.html

Linux basic commands Collation (ii): Users, user groups, file systems, and networks

Address: http://www.cnblogs.com/devinCat/p/7247847.html

Linux basic commands Collation (iii): Process and Vim

Address: http://www.cnblogs.com/devinCat/p/7247883.html

Linux Common Command Collation (iv): package Management and Shell basics

Address: http://www.cnblogs.com/devinCat/p/7247911.html

Linux Common Command Collation (v): Shell Basics

Address: http://www.cnblogs.com/devinCat/p/7247926.html

Hope to be useful to everyone, welcome comments Exchange

Linux basic Commands (iv)

----Package management and Shell basics

Compression: Refers to the size of the file by the algorithm, the corresponding reduction, without loss of the contents of the file.

Packaging: Refers to merging multiple files or directories into one file for easy delivery or deployment

Gzip: Can unlock compress, zip and gzip software compressed files

-C: Output compressed data to standard output (stdout)

-D: Unzip

-T: can be used to check the consistency of a compressed file to see if the file is error-free

-V: can now display the source file/compression ratio and other information

-(1-9): compression level, 1 the fastest, but the worst compression ratio, 9 slowest, but the best compression, the default is 6

-I: View compressed file compression ratio: Gzip-i *.gz

Example: GZIP-CV anjfd.txt > mygzip.gz--compress the anjfd file and save the source file and rename it to mygzip.gz

Cat: Can read plain text files

Zcat: Can read files compressed by plain text files

Example: Zcat mygzip.gz-head-4 View the first four lines of a compressed file

BZIP2 compression

-C: Output compressed data to standard output (stdout)

-D: decompressed parameters

-K: Preserves source files without deleting original files

-Z: Compressed parameters

-V: can now display the source file/compression ratio and other information

-(1-9): compression level, 1 the fastest, but the worst compression ratio, 9 slowest, but the best compression, the default is 6

For directories, you need to use the TAR command to package and compress

Tar

-C: Create a packaged file

-T: View only what's in the packaged file

-X: Unpack or unzip the function, can be more-C (uppercase) in the specified to the specific file directory to unlock

-J: Compression/Decompression with BZIP2 support: At this point the file is best for *.tar.bz2

-Z: Compression/Decompression with GZIP support: At this point the file is preferably *.tar.gz

-V: The name of the file being processed is displayed during the re-compression and decompression process

-F: (filename) followed by the full name of the file (path + file name + suffix name)

-C: Directory: This option is used for decompression, to specify the extract directory, you can use this command

-P: Retains the original permissions and properties of the backup data. Often used for backup-C important configuration files

--exclide=file: Do not package those files during re-compression

Tar-jpcv-f etc01.tar.bzip2/etc/

RPM Installation Software

The meaning of-i:install

-V: View more detailed installation Information screen

-H: Displays the installation progress in the installation information column

-U: Update the SOFTWARE (if the software on the back side has not been installed, it will download the direct installation, if installed, will be based on the old version and the new

-F: Update the SOFTWARE (if the following software is not installed on the system, then he will not be installed, only the installed software will be upgraded)

Query installed software, options and parameters:

-Q: Query only, followed by the software name is installed

-QA: List all of the software names that are installed on the native Linux system

-qi: List details of the software, including developer, version, and description

-QL: Lists the full file name of all files and directories for the software

-QC: Lists all the configuration files for the software

-QD: Lists all the documentation for the software

-QR: Lists dependent software related to the software

-QF: The file name that is appended to it, find out which software the file belongs to

Query for information contained in a RMP file

Check

-V: followed by the software name, listing the files that were changed after the software was installed

-va: Chuquan files that have been modified in all packages that are currently installed on the RPM system

-VP: The following is the RPM file name, which lists whether the files in the RPM package are installed or modified in the system

-VF: Lists whether a file (directly listing the file name after the package installation) has been altered.

Yum-A-delete software

Yum is through the analysis of the index of the RPM data, based on the relevance of the software to create a property-dependent solution, and then can automatically deal with software dependencies, to solve the software installation, removal, upgrade encountered cumbersome operational problems

Yum query data

Search: Query for a software name or a descriptive keyword

List: Lists all the software names and versions currently managed by Yum, somewhat like Rpm-qa

Info: Ditto, format is not the same

Yum Install, upgrade, uninstall

Install: The name of the software to be installed later

Updata: The name of the software that needs to be upgraded, and upgrade the entire system if you don't add a name

Remove: Delete a software that relies on the software and other software or packages that have been installed on the system, and will be removed (when a package is removed in RPM mode)

Linux Common Command Collation (iv): package Management and Shell basics

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.