How to check running process in Ubuntu Linux using command line

There are several commands that can be used to check running processes in Ubuntu Linux using the command line.

  1. ps command: The ps command can be used to view information about processes that are currently running on the system. The basic syntax is ps [options]. For example, to view all processes running on the system, you can use the command:
ps aux

This will display a list of all processes, along with their process ID (PID), user, and other information.

  1. top command: The top command can be used to view real-time information about processes that are currently running on the system. The command provides an ongoing look at the processes running on the system, including the process ID (PID), user, and other information.
top
  1. htop command: htop is an interactive process viewer for Linux. It is similar to the top command, but provides a more user-friendly interface and additional features. You can install htop by running apt-get install htop command. Once installed, you can use htop command to view running processes on your system.
htop
  1. pgrep command: The pgrep command can be used to search for processes based on their names. For example, to find the process ID of the Apache web server, you can use the command:
pgrep apache2
  1. pstree command: The pstree command can be used to view a tree-like representation of the processes running on the system. It will show the relationships between parent and child processes.
pstree

All of the above commands provide different ways to check running processes on your Ubuntu Linux system. You can use the one that best suits your needs.

Leave a Comment