Kill all processes of a certain user with 'slay'

Kill all processes of a certain user with 'slay'

slay is a command line tool written by Chris Ausbrooks to kill all running processes of a specified user. slay is very useful for system administrators to find users who should not be running processes.

s lay has official repositories in most distributions.

Install

Ubuntu and its derivatives

  1. sudo apt - get install slay

Arch Linux and its derivatives

  1. sudo pacman - S slay

Fedora and its derivatives

  1. sudo yum install slay

usage

You should have administrator privileges to use slay.

To kill a specific user's process, you would:

  1. sudo slay <usename>

For example: I want to kill all processes of user amitooo .

  1. ~ sudo slay amitooo
  2. slay : Done .

When slay finishes running, you should see feedback.

Cool, right?!

<<:  How can a designer with no programming knowledge develop an app in 4 months?

>>:  Are you a seventh-stage programmer?

Recommend

"Xuanwu" supports Hebei's "Grassland Sky Road"

Xuanwu is an ancient divine tortoise with 13 hexa...

Traffic is so expensive, but conversion rate is so low?

Traffic is so expensive and conversion is so low!...

Even in the Internet age, mobile phone hardware is still the money maker

Xiaomi, which released its first mobile phone in ...

The forms and methods of Zhihu promotion

Zhihu’s advertising formats are diverse, includin...

Sixth Anniversary Raffia: Real Raffia, Not Raffia nor Grass

In the recent hotly debated 6th anniversary raffi...

How do iQiyi, Youku and Tencent Video monetize advertising?

Most products in the PC era have a clear product ...