How to check process names in CentOS 7?

  1. Check the process names using the ps command.
ps -ef | grep -i "进程关键词"

For example, to view all processes containing the keyword “nginx”:

ps -ef | grep -i "nginx"
  1. Use the pgrep command to view the process names:
pgrep -l "进程关键词"

For example, to view all processes containing the keyword “nginx”:

pgrep -l "nginx"
  1. Check process names using the top command.
top

In the interface of the top command, you can see the process list of the current system, including information such as process names and process IDs. Press “q” to exit the top command.

Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds