ptop command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ptop: command not found
or when using sudo you get the following error message
sudo: ptop: command not found
Solutions to ptop: command not found
How To Fix ptop: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ptop is provided by px package.
px is:
px parses command lines from Python, Ruby, Node, Perl, Java, bash, zh, sh command lines and show you what is actually running. px can filter processes by owner (“px root”), search for processes by command line (“px python”, like “pgrep”), and list processes in a helpful order.
ptop periodically displays a sorted list of system processes. Processes are sorted with the highest CPU users at the top. ptop is capable of decode Python, Ruby, Perl, Node, Java, bash, sh, zsh command lines and show you what is actually running. Shows an stable output by counting CPU time since ptop started. ptop provides a system load histogram rather for presenting the three uptime numbers and shows system load in relation to the number of logical and physical cores in the system.
To fix this problem, we can install more using the command below.
sudo apt-get -y install px
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install px.
sudo apt -y install px
Or if you have aptitude installed you can use the following command.
sudo aptitude install px
Summary
In this tutorial we learn how to fix ptop command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.