kill background process linux code example Example: how to clear background jobs ps -eaf | grep [w]get kill PID_number