Linux 9 commands

Source: Internet
Author: User

Since the working relationship started using the Linux system, after a year of use, now record 9 commands that are not easy to remember but are important.

1 su Switch User

Su-root/su root is different, Su-also switches the corresponding user's environment variables

2 grep Lookup

Grep-rn "Hello World"

-R recursion

-N Display Line number

3 Netstat Network information

Netstat-al

-A All

-L Monitoring

-T TCP

-U UDP

4 PS Viewing process

Ps-ef

-E All

-F Display UID PPID

5 chmod Modify Permissions

Chmod-r 700

6 Reboot/shutdown-r now shutdown

7 Find

Find/-name "Hello"

8 Yum Download Dependency pack

Yum Install netstat

9 Man Help Info

Mans netstat

PS: Common folders

/etc/init.d/. Some service services

/etc/yum.repos.d/Warehouse

/etc/hosts

Linux 9 commands

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.