Learn how to use Linux commands (very suitable for beginners)

Source: Internet
Author: User

After sorting out the commands that have been used, I am also a beginner, so I hope there are not so many complicated commands, so we will soon learn shell, which will certainly be helpful to beginners!

 

Ls-A/-L to view all files, including hidden .~ Executable file.-L indicates viewing the attributes of the file in the current directory.
PWD Current Directory
Go:
CD .. return to the upper-level directory
CD-last time
Cd ~ /CD current user host
Cd ~ User name: Host

Create and delete:
Mkdir create directory
Rmdir Delete empty directory
Rm delete file
Rm-RF: Delete the directory. If the directory contains files

View:
CAT one screen viewing
More page view
Head + quantity security check

Pstree Tree View Process

Control:
Less controllable
Grep character file name: Find part of the file that matches the current character
MV mobile plus-V viewing Process
CP Copy command
Find SEARCH Command

Connection:
Ln Source File Link name (hard link)
Ln-s a B Symbolic Link (soft link)

Installation:
Sudo apt-Get install installation command (also including Yum installation command and RPM installation command)

Touch creates a file. You can create two files at the same time.

Permission:
Special permissions of the chmod u + s file owner
Chmod g + R file primary user with read permission
Chmod o-w file Other Write Permission
Chmod A-X file to execute permissions

Chown root/Home: Change the home attribute to the root user.

Others
Extract from tar-jxzf
Kill send signal
Useradd Add User
PS view processes by time slice
Top real-time process viewing
Make Compilation
Make install the compiled source code package

 

 

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.