Linux Processes

See what runs, what eats CPU, and how to stop it cleanly.

  • linux ps
  • kill process
  • htop
  • background job
  • nohup

Linux Processes

See what runs, what eats CPU, and how to stop it cleanly.

Commands

CommandWhat it does
`ps auxgrep app`Find your process
top or htopLive CPU and memory view
kill PIDPolite TERM signal
kill -9 PIDLast-resort KILL
jobs and fgShell background jobs

Example

ps aux | grep node | grep -v grep
kill <pid>

FAQ

kill did not stop it - why?

The process ignores TERM or is a zombie whose parent must reap it; escalate to -9 only after TERM plus logs.

How do I survive logout?

Use nohup with output redirect, or better, a systemd service or tmux session.

常见问题

kill did not stop it - why?
The process ignores TERM or is a zombie whose parent must reap it; escalate to -9 only after TERM plus logs.
How do I survive logout?
Use nohup with output redirect, or better, a systemd service or tmux session.

Linux