linux process view and kill processes

1. ps -ef | grep Redis

ps: a process will be displayed
-A display all programs. 
-e effect and specify this parameter "A" of the same parameters.
-f display UID , PPIP, C and S the TIME field. 
grep command is to find
the middle | pipeline command refers to the ps command with grep executed simultaneously

The meaning of this command is to display the relevant processes related to redis

2. kill [parameters] [process ID]

   kill -9 4394

It is to kill a process id to send a signal. The default signal is transmitted SIGTERM, the signal is transmitted kill -9 SIGKILL, i.e. exit. exit signal is not blocked by the system, so kill -9 can successfully kill the process. Of course, you can also use kill to send signals to other processes.

Guess you like

Origin www.cnblogs.com/yiyangl/p/11130577.html