How to use grep command to view processes under linux

王林
Release: 2020-10-30 16:58:07
Original
6156 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!