Linux OPS admin option overview and color representation

Source: Internet
Author: User
Tags color representation create directory yum repolist

Admin options and colors for delegates

Basic format of the command line:

Command word "Options" "Parameter 1" "Parameter 2" ...

ls: View all files (under current directory);

-L: Display in long format;

-A: Displays all, containing hidden files that begin with a.

-D: Displays the properties of the directory itself (cannot be used alone, with L);

-H: Provides easy-to-read capacity units (cannot be used alone, with L);

-r: Indicates recursive display;

-----------------------------------------------------------

mkdir: Create directory;

-P: Indicates that the parent directory is created together;

-----------------------------------------------------------

CP: Copy;

-R: Recursive, there must be a secondary option when copying directories;

-P: Maintain the original file permissions, modification time and other file attributes unchanged;

-----------------------------------------------------------

RM: Delete;

-I: Must be asked to delete, default already;

-R: Recursive deletion;

-F: Forced deletion (high priority);

------------------------------------------------------------

Yum Package Management:

Yum repolist: Column warehouse;

Yum list "Software name": : Column software;

Yum Clean all: clear cache;

Yum-y Install software name: installation software;

Yum-y Remove software name: Uninstall software;

-----------------------------------------------------------

RPM Package Software Management:

RPM-Q: Check whether the package is loaded;

RPM-IVH software name. Version information. RPM;: installation of detailed software;

RPM-E software name. : Uninstalling software;

-----------------------------------------------------------

Find: Search for files by criteria;

Format: Find "directory" "Condition 1"-a|-o "" Condition 2 "

-A: meet two conditions;

-O: Satisfies one of the conditions;

Common conditions indicate:

-type type (f,t,b,c )

-name Document Name

-size +|-File Size

-mtime +|-Modification Time

-user User Name

-group Group Name

----------------------------------------------------------

grep: Filter operation;

-V: Reversed, does not contain

-I: Ignore case

Common matching patterns:

-word; contains string word

-^word: Start with string word

-word$: End With string word

' ^$ ': Match blank line

-----------------------------------------------------------

Tar: archive and compress;

-C: Create an archive;

-X: Release the archive;

-F: Specifies the name of the archive;

-z,-j,-j: Call the. gz,.bz2,.xz format tool for processing;

-T: Displays a list of files in the archive;

-P: Keep the absolute path of the file within the archive;

-C: Release the specified position;

-----------------------------------------------------

The representative of the color

Green: Represents an executable program;

Yellow Black Bottom: Device file;

Cyan: Shortcut


This article is from the Linux OPS blog, so be sure to keep this source http://13401400.blog.51cto.com/13391400/1977239

Linux OPS admin option overview and color representation

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.