Home >Operation and Maintenance >Linux Operation and Maintenance >How to use grep command to view processes under linux
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.
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!