Basic commands common to Linux

Source: Internet
Author: User

cat-n filename //View the contents of the filename file. - n displays the corresponding line number.

Yum Install softname //installation software, remember to use root permissions.

Service//view services. For example service mysqld start. Start the database service or you cannot connect to the database. Service mysqld Stop. Stop Service

ls or ll //view all files in the current directory

SSH @root IP address remote link destination host

histpryNumber//view recent number bar history

shutdown - H now//shutdown

cd+path //Switch to Path

pwd //View the current active path

touch filename //create filename File

mkdir name //Create name folder

Locate or Whereis + name//View the path where name is located

su or sudo + username //Switch User

chmod+r+000 name//forcibly modify the name's permissions

PS //View the currently active process

grep+name //Filter Name

CP name path //Copy to path path

MV Name path //move to Path

RM-RF name //FORCE Delete name

WhoAmI //View the currently logged in user name

Basic commands common to Linux

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.