Linux commands Daquan 20180614

Source: Internet
Author: User

PS command to display a process

The grep command is to find

The Middle | is a pipeline command that refers to the PS command executing concurrently with grep

PS is the most common and very powerful process view command under Linux.

The grep command is a lookup, a powerful text-search tool that can use regular expressions to search for text and print matching lines.

The following command checks whether the Java process exists: Ps-ef |grep java

The field has the following meanings:
UID PID PPID C stime TTY time CMD

ZZW 14124 13991 0 00:38 pts/0 00:00:00 grep--color=auto Dae

UID: The program is owned by the UID

PID: Is the ID of this program

PPID: Is the ID of its ancestor parent program

Percentage of resources used by C:CPU

Stime: System Boot time

TTY: The terminal location of the logged-in person

Time: Used off of the CPU.

CMD: What instructions are being issued

=======================================================================================================

Linux netstat viewing services and listening ports

[Email protected] ~]# NETSTAT-NLP

[[email protected] ~]# Netstat-nlp|grep LISTEN//View all current listening ports

[[email protected] ~]# Netstat-nlp|grep 80//View all 80 port usage

[[email protected] ~]# Netstat-nlp|grep 3306//View all 3306 port usage

Linux commands Daquan 20180614

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.