kill by user process in bash code example Example: linux kill process by user pkill -9 -u `id -u username`