How to check the currently running programs in CentOS?
To view the running programs, you can use one of the following commands:
- By using the top command, you can view all processes running on the system along with their respective statuses. Pressing Shift + M will sort them by memory usage, while pressing Shift + P will sort them by CPU usage.
- With the ps command, you can list the running processes of the current user. Common options include:
- ps aux: display all processes for all users.
- ps -ef: Display all processes, including command line arguments.
- To use the htop command: htop is an interactive process viewer similar to top, but with a more intuitive and user-friendly interface. You can install htop using the following command:
- install htop using yum
- After installation is complete, simply type in the command “htop” to start.
The above is a common way to view the running processes on CentOS.