Basic Linux Knowledge

Source: Internet
Author: User

1.man

Search some Linux cmd, using the man "command" or command--help.

2.find

Find Path-name "*.txt"//Locate the *.txt file under path.

Nested find: Find ' find. -name Res '-name "*.xml" finds all XML files in the Res directory.

3.grep

Gerp ' string ' filename

Gerp ' activtiy ' Hello.java

4.ls |grep ' team '

Displays the file with the name ' team ' in the current directory

ls | Xargs gerp ' team '

Displays the file containing ' team ' for each file content in the current directory.

5.cat

Print file contents

6.chmod

Linux Rights Management is divided into 3 groups, user,group,others

Drwxrwxr-x:

Bit0:d or-represents a folder or file.

Bit1--bit3:user

Bit4--bit6:group

Bit7--bit9:others

R:read

W:write

X:excute

7.ps & Kill

Ps-a showing all process in Linux

Basic Linux Knowledge

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.