Linux entry-level common commands

Source: Internet
Author: User
Tags clear screen

1) Shut down the Linux system command: Init 0
2) Linux terminal: Linux terminal is also called Virtual Console. The Linux terminal uses the character command line method to work, the user through the keyboard input command, through the Linux terminal to control the system.
3) Switch the virtual Terminal method: Ctrl+alt+f[1~6], if you want to switch to the second virtual terminal, you also press CTRL+ALT+F2
4) Normal User login After the system prompt: $
5) root User login after system prompt: #
6) Exit Command: Exit
7) Useradd: Add user, passwd: Set password for user.

8) LS: View command-L show Details-a show all files including hidden files.

9) WhoAmI: View the user logged on by the current user

mkdir: New Folder-P is a multi-tier directory new

ONE) CP: Copy command,-r recursively copy multi-level directory.

RM: Delete command-R recursive-f force Delete, no hint

MV: Move command, two files in the same directory can be renamed.

SU: Switch User

Man: Helper Commands like help

+) Touch: New File

) Cat: View File

More, less view files, can be viewed by carriage return space, to achieve page display, press Q exit

Tail: View log files dynamically. Add a number to view the last number of rows.

Head: View the first 10 lines of the file.

Clear: Clear Screen

Linux entry-level common commands

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.