kill .py app process in console command code example Example: how to kill all python instancess sudo pkill python or sudo pkill python3