iotop does for I/O usage what top(1) does for CPU usage. It watches I/O usage information output by the Linux kernel and displays a table of current I/O usage by processes on the system. It is handy for answering the question “Why is the disk churning so much?”. I will show you how to install iotop on Ubuntu 22.04 in this tutorial.
Requirements to install
- OS: iotop needs Ubuntu 22.04 to work
- Privileges: Check that you can run sudo commands.
Install iotop Ubuntu 22.04
iotop is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.
Install iotop using APT
This is one of the most popular methods for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install iotop on your Ubuntu 22.04.
Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing the following Linux command:
Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install iotop Ubuntu by executing this command in the terminal.
Install iotop using Aptitude
Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already installed it on Ubuntu, run this command to do so.
After that, you can now install iotop, just following these steps:
Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:
Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install iotop Ubuntu by pasting this command into the terminal and executing it.
Uninstall iotop on Ubuntu 22.04
Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just iotop.
You can uninstall iotop on Ubuntu by running this command if you installed it using APT or Aptitude.
If you want to uninstall iotop and delete its data and dependencies, you can also run the following command:
In this tutorial, I showed you ways to install iotop on Ubuntu 22.04 and ways to uninstall iotop too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.