Do you want to end one or more processes at a time using a regular expression (r...

@nixCraft@mastodon.social

Do you want to end one or more processes at a time using a regular expression (regex) on your Linux, FreeBSD, macOS or Unix-like system? Try:

pkill regex
pkill pattern
pkill -9 pattern

The regex or pattern will match the process names or command lines that you see using ps or top/htop etc. Pretty useful for CLI users.