From the course: Linux: Shells and Processes

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Manage processes

Manage processes

- It's common to send signals to processes. One of these signals would be the terminate signal if we wanted the process to end. If that doesn't work, we could forcibly kill a process by sending a kill signal. Although we need to know the process ID first for either signal. You can use the PS command to get a process ID, but there are a couple of other tools that are simpler, that also serve this need. In a terminal, type in pidof, space, crond and hit enter. This shows a process ID of crond. Also try pgrab, space, crond, and hit enter. Pgrab is more powerful and allows you to filter on items such as username, command, et cetera. But for the purpose of getting a process ID, either will work fine. Once you have the process ID, you can use the kill command to send it a signal. To get a list of possible signals, type in kill, space, dash l, and hit enter. There are 64 different signals, but it's not common practice to…

Contents