Linux Learning Notes < command introduction >

Source: Internet
Author: User

    • Command prompt

  [Email protected] ~]#

  which

Root: currently logged in user

HGS: Host Name

~: Current directory (home directory), for the root user, home directory:/root , for ordinary users, home directory:/home/{username}

     #: Super user prompt, normal user prompt:$

    • directory where you switch: CD

English original meaning:change Directory

      • Simplified operation:
        • CD ~ Enter the current user home directory
        • CD-Go to last directory
        • Cd.. Go to the top level directory
    • Query user's current directory: PWD

English original: p ring Span style= "color: #ff0000;" >w orking D irectory

  • query contents in directory: LS
    • ls [options] [file or directory]
    • options:
      • -a   displays all files, including hidden files ("."). Beginning of file)
      • -l    display details
      • -d   View Directory Properties
      • strong>-h   humanized display file size
      • -I display inode

For example, execution: Ls-lh gets the following result:

  

      • -rw-r--r--(R read W write x executable)
        • -File type (-file d directory l soft link file)
        • Rw-u owner
        • r--G-affiliated groups
        • r--O Other People
    • Build directory: mkdir
      • mkdir-p [directory Name]
        • -P Recursive creation

Linux Learning Notes < command introduction >

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.