cross-posted from: https://lemmy.run/post/8710
Beginner's Guide to
htopIntroduction
htopis an interactive process viewer and system monitor for Linux systems. It provides a real-time overview of your system's processes, resource usage, and other vital system information. This guide will help you get started withhtopand understand its various features.Installation
We are assuming that you are using ubuntu or debain based distros here.
To install
htop, follow these steps:
- Open the terminal.
- Update the package list by running the command:
sudo apt update.- Install
htopby running the command:sudo apt install htop.- Enter your password when prompted.
- Wait for the installation to complete.
Launching
htopOnce
htopis installed, you can launch it by following these steps:
- Open the terminal.
- Type
htopand press Enter.Understanding the
htopInterfaceAfter launching
htop, you'll see the following information on your screen:
- A header displaying the system's uptime, load average, and total number of tasks.
- A list of processes, each represented by a row.
- A footer showing various system-related information.
Navigating
htop
htopprovides several keyboard shortcuts for navigating and interacting with the interface. Here are some common shortcuts:
- Arrow keys: Move the cursor up and down the process list.
- Enter: Expand or collapse a process to show or hide its children.
- Space: Tag or untag a process.
- F1: Display the help screen with a list of available shortcuts.
- F2: Change the setup options, such as columns displayed and sorting methods.
- F3: Search for a specific process by name.
- F4: Filter the process list by process owner.
- F5: Tree view - display the process hierarchy as a tree.
- F6: Sort the process list by different columns, such as CPU usage or memory.
- F9: Send a signal to a selected process, such as terminating it.
- F10: Quit
htopand exit the program.Customizing
htop
htopallows you to customize its appearance and behavior. You can modify settings such as colors, columns displayed, and more. To access the setup menu, press the F2 key. Here are a few options you can modify:
- Columns: Select which columns to display in the process list.
- Colors: Customize the color scheme used by
htop.- Meters: Choose which system meters to display in the header and footer.
- Sorting: Set the default sorting method for the process list.
Exiting
htopTo exit
htopand return to the terminal, press the F10 key or simply close the terminal window.Conclusion
Congratulations! You now have a basic understanding of how to use
htopon the Linux bash terminal. Withhtop, you can efficiently monitor system processes, resource usage, and gain valuable insights into your Linux system. Explore the various features and options available inhtopto get the most out of this powerful tool.Remember, you can always refer to the built-in help screen (F1) for a complete list of available shortcuts and commands.
Enjoy using
htopand happy monitoring!