List and kill processes by username
List the PIDs of the given user.
$ ps aux | awk '$1=="gabor" {print $2}'
$ ps aux | awk '$1=="gabor" {print $2}' | kill -9
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
List the PIDs of the given user.
$ ps aux | awk '$1=="gabor" {print $2}'
$ ps aux | awk '$1=="gabor" {print $2}' | kill -9