ps command not found - Generic Linux
How to Install ps Command on Generic Linux
If you are using a Generic Linux distribution and encounter the issue of the ps command not being found, do not worry. In this tutorial, we will guide you through the process of installing the ps command on your system.
Why ps Command is not Found
The ps command is a utility that displays information about processes running on the system. In some Linux distributions, including Generic Linux, the ps command may not be installed by default, leading to the “command not found” error.
Installation Steps
To install the ps command on Generic Linux, follow these steps:
-
Open a terminal window.
-
Use the package manager of your distribution to install the
procps-ngpackage, which includes thepscommand.sudo apt install procpsIf you are using a different package manager, replace
aptwith the appropriate command (e.g.,yumfor CentOS,dnffor Fedora). -
Once the installation is complete, you can use the
pscommand to display process information on your system.
Conclusion
By following the steps outlined in this tutorial, you have successfully installed the ps command on your Generic Linux system. Now you can use the ps command to monitor and manage processes effectively.