• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

atop: command not found

by admin

atop is a command-line utility for monitoring system resources and performance in Linux and other Unix-like operating systems. It provides real-time information about various aspects of the system, including CPU, memory, disk, and network usage.

To use atop, you can simply run the atop command from the command line. By default, atop will display a summary of system resource usage, including the overall CPU and memory usage, the number of processes, and the amount of network traffic. You can use various options to customize the output and display additional information.

For example, to display detailed information about CPU and memory usage, you can use the -c and -m options:

# atop -c -m

To display detailed information about disk usage, you can use the -d option:

# atop -d

To display detailed information about network usage, you can use the -n option:

# atop -n

atop is a useful tool for monitoring system performance and identifying potential issues. It can help you to diagnose problems with resource utilization, such as CPU or memory bottlenecks, and identify processes that are using a large amount of resources.

To learn more about atop and its available options, you can consult the atop documentation or use the man atop command to view the manual page.

# man atop

If you encounter the below error while running the atop command:

atop: command not found

you may try installing the below package as per your choice of distribution:

OS Distribution Command
Debian apt-get install atop
Ubuntu apt-get install atop
Alpine apk add atop
Kali Linux apt-get install atop
Fedora dnf install atop
Raspbian apt-get install atop

atop Command Examples

1. To display real-time statistics for the system, simply type atop at the command prompt:

# atop

2. Start and display memory consumption for each process:

# atop -m

3. Start and display disk information:

# atop -d

4. Start and display background process information:

# atop -c

5. Start and display thread-specific resource utilization information:

# atop -y

6. Start and display the number of processes for each user:

# atop -au

7. To display statistics for a specific time period, use the -s and -e options to specify the start and end times, respectively. For example, to display statistics for the past hour, you can use the following command:

# atop -s now-1h -e now

8. To display statistics for a specific process, use the -p option followed by the process ID. For example, to display statistics for the process with ID 1234, you can use the following command:

# atop -p 1234

9. To save the output of atop to a file, use the -w option followed by the file name. For example, to save the output to a file named atop.log, you can use the following command:

# $ atop -w atop.log

10. Display help about interactive commands:

?

Filed Under: Linux

Some more articles you might also be interested in …

  1. RPM command examples to query, install, remove and upgrade packages
  2. How to install and configure MariaDB in CentOS / RHEL 7
  3. cpuid: command not found
  4. bsdtar command – Read and write tape archive files
  5. virt-sparsify: command not found
  6. Understanding multipath Utility to Configure DM-Multipath
  7. Introduction to sed (Stream Editor) : Useful sed Command Examples
  8. How to activate and mount 2 Volume groups with same names in CentOS/RHEL
  9. How to disable NUMA on EFI Boot Loaders using GRUB2 (CentOS/RHEL 6)
  10. betterdiscordctl Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright