Linux Operations Command Some commands that developers need to master

Source: Internet
Author: User
Tags create directory

1, man view Help

2, command--help simple Help

3. Help CD view some of the built-in commands for the Linux command line

4. CP Paste Copy command EG:CP yum.log/root/

5, Find/-name "Yum.log" Find the location of the file

6. Touch File name creation file

7. mkdir Create Directory

8, MV yum.log/usr/local/cut (move) file Yum.log to/usr/local/directory

9, RM yum.log Delete command (less)

You can create a file that uses the MV command to recycle files specifically

10, > file Empty file

11. ps-ef|grep DD Viewing process

12, kill-9 26833 kill process 26833

13. Cat FileName View File contents

14, grep (-N) text file name in xx file find xx text-n means how many lines

15, Vim filename-n Edit the file nth line

16, Tar ZCVF demo.tar.gz package the file into demo.tar.gz if you package all the files in the current directory.

17, free-m view memory server remaining memory is the last value of the second row

18, top shows which program in the current server consumes more CPU or memory

19, IP A view the current IP address

20, Chown User (group) belong (main) group

Useradd Boy

Chown Boy.boy boyedu

Rwxr-xr-x

RWX r-x R-x

User User Group Other

7 5 5

4+2+1 4+1 4+1

R Read 4

W Write 2

x Excute Execution 1

-0

777

Rwxrwxrw

Root root Other

Linux Operations Command Some commands that developers need to master

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.