Linux Common commands

Source: Internet
Author: User

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

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.