« Back to Processes: Frequently Asked Questions

How to stop all processes of a single user

How to stop all processes of a single user?

Use the killall command and specify the user to stop all processes for that particular user.

killall --user USER

To stop all processes of a single user, the kill command can be used. An easier alternative is using killall with the --user option, followed by the user name.

Example:

killall -u michael

This command, with the shortened option, will send by default the SIGTERM signal to the process. By using the --signal option, another process signal can be provided.

Other questions related to Processes

    Related articles

    Like to learn more? Here is a list of articles within the same category or having similar tags.

    Feedback

    Small picture of Michael Boelen

    This article has been written by our Linux security expert Michael Boelen. With focus on creating high-quality articles and relevant examples, he wants to improve the field of Linux security. No more web full of copy-pasted blog posts.

    Discovered outdated information or have a question? Share your thoughts. Thanks for your contribution!

    Mastodon icon