I. COMMAND basic format Linux starter [[email protected] ~]#:root represents the current login, Locahost represents the current user's host, ~ represents the current directory (home directory), #: Super User prompt, The normal user prompt is the root directory of the Superuser home is the first level directory root,/root the home directory of the home is the two level directory user directory displays the current root: pwd command format: command Options [Parameter] Note: The individual commands used do not follow this format, when there are multiple options, you can write together the simplify option with the full option-a equals--all the contents of the query directory: LS (list directory contents) LS [options] [File or directory] option:u -A (--all) Show all files, including hidden files u -L (use a long listing format) Show Details u -D (--- directory) View directory Properties u -H (--human-readable) humanized display file size u -I (--inode) Show Inode (i node) -rw-r-r-(Permissions 10 bit):n -file type (-file D directory l connection file) n rw- r-- r- (each three-bit group, representing the owner of the file, the group that belongs to, the other three identities) U owner G-owning group o other people (the relationship between the user and the file) R Read W Write x execute (user to file on these three basic permissions) "." Represents ACL permissions 1 representative reference count root fileOwner Root belongs to group 1207: File size, in bytes netstat-a or Netstat–an detect port Status command II, file processing command 1, directory Processing command to create a directory command: mkdir–p[directory name] -P Recursive creation Command English Original: Make directories2, switch directory: cdcd[directory] English Original: Change directory simplifies operations:
CD ~ |
Go to the home directory of the current directory |
Cd |
Go to the home directory of the current directory |
cd- |
Go to last Directory |
Cd.. |
Go to the top level directory (there are spaces after the CD) |
Cd. |
Go to current directory |
The TAB key in Linux can not be full directory and command relative path: Refer to the current directory to find such as: [[email protected] ~] #cd. /usr/local/src/absolute Path: specified, first-level recursive lookup. In any directory, can be entered from the root directory specified location such as: [[email protected] ~]# CD/ETC/3, query directory location: PWD Print working directory
Linux Common commands