ps command not found - Generic Linux

Page content

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:

  1. Open a terminal window.

  2. Use the package manager of your distribution to install the procps-ng package, which includes the ps command.

    sudo apt install procps
    

    If you are using a different package manager, replace apt with the appropriate command (e.g., yum for CentOS, dnf for Fedora).

  3. Once the installation is complete, you can use the ps command 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.