Techolac - Computer Technology News
  • Home
  • Internet
  • Business
  • Computers
  • Gadgets
  • Lifestyle
  • Phones
  • Travel
  • Tech
  • More
    • Automotive
    • Education
    • Entertainment
    • Health
    • SEO
    • Linux
    • WordPress
    • Home Improvement
    • How to
    • Games
No Result
View All Result
  • Home
  • Internet
  • Business
  • Computers
  • Gadgets
  • Lifestyle
  • Phones
  • Travel
  • Tech
  • More
    • Automotive
    • Education
    • Entertainment
    • Health
    • SEO
    • Linux
    • WordPress
    • Home Improvement
    • How to
    • Games
No Result
View All Result
Techolac - Computer Technology News
No Result
View All Result
Home Linux

How to install htop on Alpine Linux using apk

by Editorial Staff
June 20, 2019
in Linux
Reading Time: 5 mins read

I am a new user of Alpine Linux. How do I install htop on Alpine Linux using the apk command?

Introduction – htop is nothing but Interactive process viewer for Alpine Linux. It is just like default top command with an additional set of options and better display on the screen. This page shows how to install htop on Alpine Linux.

 

Adblock detected 😱
My website is made possible by displaying online advertisements to my visitors. I get it! Ads are annoying but they help keep this website running. It is hard to keep the site running and producing new content when so many people block ads. Please consider donating money to the nixCraft via PayPal/Bitcoin, or become a supporter using Patreon.

 

How to install htop on Alpine Linux using apk

The procedure for installing htop on Alpine Linux is as follows:

  1. Open the terminal window.
  2. For remote Alpine Linux server login using ssh command.
  3. Execute apk search htop command to search for htop on Alpine
  4. Run apk add htop to install htop in Alpine Linux

Let us see all steps and command in details.

Alpine Linux install htop

Let us search for htop package using apk command:
apk search htop
Sample outputs:

htop-doc-2.2.0-r0
htop-2.2.0-r0
varnish-6.1.1-r0

Get information about htop package

Run the following command:
apk info htop
Sample outputs:

htop-2.2.0-r0 description:
Interactive process viewer

htop-2.2.0-r0 webpage:
http://hisham.hm/htop

htop-2.2.0-r0 installed size:
200704

Install htop

Finally, type:
apk add htop

apk command install htop on Alpine Linux
Installing htop on Alpine Linux using apk

How to use htop command

The syntax is:
htop
htop [options]

Running htop on an Alpine Linux server
htop in action

One can use a monochrome color scheme, run:
htop -C
htop --no-color

Want to see the tree view by default when running htop? Try:
htop -t
htop --tree

Let us see only processes of a given user named vivek:
htop -u vivek
htop --user=vivek
htop --user=nginx

Limit and show process for only the given PIDs:
htop -p PID
htop -p PID1,PID2
--pid=PID,[,PID,PID...]
htop -p 1342
htop -p 7435,1367

htop keyboard shortcut keys

The following commands are supported while in htop:

See also  How to install htop on RHEL 8 using yum
Command Description
Up arrow key Select (highlight) the previous process in the process list. Scroll the list if necessary.
Down arrow key Select (highlight) the next process in the process list. Scroll the list if necessary.
Left arrow key Scroll the process list left.
Right arrow key Scroll the process list right.
PgUp, PgDn Scroll the process list up or down one window.
Home Scroll to the top of the process list and select the first process.
End Scroll to the bottom of the process list and select the last process.
s Trace process system calls: if strace(1) is installed, pressing this key will attach it to the currently selected process, presenting a live update of system calls issued by the process.
l Display open files for a process: if lsof(1) is installed, pressing this key will display the list of file descriptors opened by the process.
u Show only processes owned by a specified user.
M Sort by memory usage (top compatibility key).
P Sort by processor usage (top compatibility key).
T Sort by time (top compatibility key).
F “Follow” process: if the sort order causes the currently selected process to move in the list, make the selection bar follow it. This is useful for monitoring a process: this way, you can keep a process always visible on screen. When a movement key is used, “follow” loses effect.
K Hide kernel threads: prevent the threads belonging the kernel to be displayed in the process list. (This is a toggle key.)
H Hide user threads: on systems that represent them differently than ordinary processes (such as recent NPTL-based systems), this can hide threads from userspace processes in the process list. (This is a toggle key.)
p Show full paths to running programs, where applicable. (This is a toggle key.)
Ctrl-L Rfresh the screen.
F1 See this help menu.
h Same as above.
? Again, same as above.
F10 Quit htop
q Exit htop (same as above)
See also  How to upgrade Fedora 29 to Fedora 30

How to get help about htop

Simply type:
htop --help
man htop

Conclusion

This page showed you how to install and use htop on Alpine Linux. For more information see htop home page here.

 

Related Posts

Top Commands to Check the Running Processes in Linux
Linux

Top Commands to Check the Running Processes in Linux

May 27, 2022
4 Tips to Prevent and Troubleshoot the ImagePullBackOff Kubernetes Error
Linux

4 Tips to Prevent and Troubleshoot the ImagePullBackOff Kubernetes Error

March 30, 2022
How Common Signals are Used in Kubernetes Pod Management
Linux

How Common Signals are Used in Kubernetes Pod Management

November 20, 2021

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Why did the Parag Parikh Long Term Equity Fund change its name to Parag Parikh Flexi Cap Fund?

Why did the Parag Parikh Long Term Equity Fund change its name to Parag Parikh Flexi Cap Fund?

August 9, 2022
Why Measuring Customer Experience Score Generate More Business Value?

Why Measuring Customer Experience Score Generate More Business Value?

August 9, 2022
The Key Phases for Successful Onboarding

The Key Phases for Successful Onboarding

August 9, 2022
30 ZiniTevi Alternatives To Watch Movies And TV Shows Online

30 ZiniTevi Alternatives To Watch Movies And TV Shows Online

August 8, 2022
video editing software

The 12 Best Video Editing Software In 2022

August 8, 2022
  • DashTech
  • TechDaddy
  • Terms and Conditions
  • Disclaimer
  • Write for us

© Techolac © Copyright 2019 - 2022, All Rights Reserved.

No Result
View All Result
  • Home
  • Internet
  • Business
  • Computers
  • Gadgets
  • Lifestyle
  • Phones
  • Travel
  • Tech
  • More
    • Automotive
    • Education
    • Entertainment
    • Health
    • SEO
    • Linux
    • WordPress
    • Home Improvement
    • How to
    • Games

© Techolac © Copyright 2019 - 2022, All Rights Reserved.

Go to mobile version