Linux Common commands

Source: Internet
Author: User
Tags echo command touch command

    • Introduction to basic commands:
    1. CD command to switch directories
    2. PWD command to view the current directory
    3. ls command View all files and directories in the current directory
    4. The PWD command displays the directory that is currently located.
    5. mkdir command to create a directory
    6. rmdir command to delete empty directories
    7. RM command to delete files or directories
    8. CP Command Copy File
    9. MV command to rename or move files or directories
    10. Touch command to create a file
    11. Useradd command to create a user
    12. Userdel command to delete a user
    13. Groupadd command to create a group
    14. Groupdel command to delete a group
    15. Find command to locate a file or directory file or directory
    16. VI command to modify a file
    17. Cat command to view file contents
    18. More commands to view the contents of a file
    19. echo Command echoing
    20. > a greater than symbol that overrides the add
    21. >> two greater than symbol, indicating append
    • Some of the conceptual content used in the command and some of the fixed content
    1. Absolute path: If the path behind the command is/home/user1, then this path is an absolute path, that is, the path is the root directory of the Linux, which is the absolute path.
    2. Relative path: If used in a command such as:.. /home, that path is considered a relative path, that is, the path itself is not started by the root directory, but is referred to as the relative path starting at the current path.
    3. . : Represents the current directory
    4. .. : Represents the previous level of the directory (note: The root directory is the current directory, and the root directory is the boss of the directory system)!! There is no directory on the root directory! )
    5. ~: Indicates the user's home directory
    6. -: Indicates the last directory to switch directories (a little confused!!!) Let's take a look at the following example! This is more clear)
    7. To the previous description: for " conceptual content" and "fixed content", this is purely self-added no detailed view, so ... Good for memory but ... .
    • Detailed description of the use of the Linux command (because the command of the introduction of the space is larger, and why the article's view, so will be introduced in the form of links, of course, the basic command is not possible to write a comprehensive therefore, this article will be perfected in the future! Excuse me! _! )

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.