Home>Article>Operation and Maintenance> How to use grep command to view processes under linux

How to use grep command to view processes under linux

王林
王林 Original
2020-10-28 11:36:24 6153browse

How to use the grep command to view the process under Linux: execute the [ps -ef | grep xxx] command to view the process. The ps command is used to display the process, and the grep command is used to match and output global regular patterns.

How to use grep command to view processes under linux

View process command:

(Video tutorial sharing:linux video tutorial)

ps -ef | grep xxx

ps: process show displays the process

Parameters:

e displays all programs.

f Display UID, PPIP, C and STIME fields

grep:global search regular expression(RE) and print out the line Global regular expression(RE) and print out the line

Related recommendations :linux tutorial

The above is the detailed content of How to use grep command to view processes under linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn