Get the App
SLTechnology News&Howtos  ›  Servers  › 

The way linux uses the grep command to view the process

Shulou Source: shulou.com Published: 2022-06-03 05:05:31 09月21日 Update

In general, if we want to look at some of the processes in Linux, we will naturally use the following command:

Ps-ef | grep xxx

Ps: process show presentation process

Parameters:

1. E displays all programs.

2. F displays UID,PPIP,C and STIME fields

Grep:global search regular _ expression (RE) and print out the line global regular match and output.

The grep command is used to find strings that match the criteria in the file.

Example:

In the current directory, look for the file with the suffix file that contains the test string, and print out the line of the string. At this point, you can use the following command:

Grep test * file

More related content:

What are the ways to see the port number occupied by the Linux process

How to view process status information in Linux

These are the details of how to view the process through the grep command under linux. Please pay attention to other related articles for more information.

Tags: Processes commands characters strings files contents more methods information globals parameters slogans suffixes words that is situations articles conditions rules status Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Shulou Technology Xiaomi Shulou Information MySQL