The way linux uses the grep command to view the process
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.