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