python get all ubuntu processes from a given user and kill the process code example Example: kill all python processes ubuntu sudo pkill python sudo pgrep python