Sobes.tech
Middle

How to view running processes on a server?

sobes.tech AI

Answer from AI

To view running processes on a server, Linux typically uses the ps or top commands.

  • ps aux — displays a list of all processes with detailed information (user, PID, CPU load, memory, etc.).
  • top — an interactive process viewer with real-time updates.
  • htop — an enhanced version of top with a user-friendly interface (if installed).

Example:

ps aux | grep node

will show all processes related to Node.js.

For more detailed analysis, you can use pstree (displays processes in a tree structure) or systemctl status for services.

In Windows, process viewing is done via Task Manager or the tasklist command in the command prompt.