Novice first time contact with Linux CentOS

Source: Internet
Author: User
Tags clear screen
  • Shutdown-k does not shut down and warns the user
    -R Immediate Shutdown restart
    -H shutdown does not restart
    -C Cancel a run shutdown
  • Example: Shutdown-h now shutdown does not restart
    Shutdown-r +10 10 minutes after restart

    1. Sudo-i getting permission
    2. Su root convert root user
      4.PWD See which directory is currently in
      5.CD Switch Directory CD: Back to previous level
      6.clear Clear Screen
      7.ls-l View all information
      -A Show hidden information

    Example: ls/tmp/viewing files in the TMP directory

    8.mkdir Creating a Directory
    9.rmdir Delete Empty Directory
    10.rm-f/directory Name/delete directory
    11.RM-RF/directory Name/delete file
    12.CP file name/tmp/copy file to tmp
    13.cp-r/root/./Copy all files to the root directory
    14.MV file name modify file name modify file name
    15.MV filename Directory name move file
    16.touch Creating files
    17.find/-name "file name" Find files in/directory
    18.cat Viewing file contents
    19.VI File name edit file

    CentOS ALT+CTRL+F2 Command mode
    ALT+CTRL+F1 Exit Command mode
    CTRL + C display

    留个小尾巴20180517

    Novice first time contact with Linux CentOS

    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.