kill process process ubuntu code example Example 1: kill process ubuntu sudo kill -9 process_id Example 2: how to kill process ubuntu ps -ax | grep application name