Linux command prompt

Source: Internet
Author: User

Init 0 Restart

Exit exits

LS Displays the current directory contents ls-a All files that contain hidden files under the display list ls-i display file details information, file properties, size, name

WHOAMI Display This user information who displays currently logged in user information

Date Current date Cal view specified date

Clear Clear

Useradd Create user passwd Modify user password

SU Switch User

Man View Linux instructions help get instructions help

mkdir Create a single directory mkdir-p create multiple directories at once touch create a file

RM Delete file rm-i Delete rm-r Delete directory rm-f Force delete

CP Copy file cp-r copy directory Cp-i ask whether to overwrite the original file cp-p with the file attributes copy cp-f Force copy

Bin System Instruction Directory sbin important system directory

PWD Displays the current directory

CD Switch Directory CD: Go back to the previous directory CD-go back to the previous directory CD ~ Go to the user home directory

MV Change Path

Cat View File Contents Head view file at the beginning of the 10 lines of content Head-n view the first n rows of the file

Tail viewing the last 10 rows of a file tail-n viewing the last n rows of a file more browse files

Linux command prompt

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.