Sobes.tech
Junior — Middle

How can you view the current processes in the Linux operating system?

sobes.tech AI

Answer from AI

In Linux, to view current processes, you can use several commands:

  • ps — displays a list of processes. For example, ps aux shows all processes with detailed information.
  • top — an interactive real-time process monitor.
  • htop — an improved version of top with a user-friendly interface (requires installation).
  • pidof <process_name> — shows the PID of a process by name.

Example usage:

ps aux | grep nginx

This will show all processes related to nginx.