Linux Tutorials

How one can set up htop on Alpine Linux utilizing apk

SEOClerks

I am a brand new person of Alpine Linux. How do I set up htop on Alpine Linux utilizing the apk command?

Introduction – htop is nothing however Interactive course of viewer for Alpine Linux. It is rather like default high command with a further set of choices and higher show on the display screen. This web page reveals how you can set up htop on Alpine Linux.

Adblock detected 😱

My web site is made doable by displaying on-line ads to my guests. I get it! Adverts are annoying however they assist hold this web site operating. It’s exhausting to maintain the location operating and producing new content material when so many individuals block adverts. Please think about donating cash to the nixCraft by way of PayPal/Bitcoin, or grow to be a supporter utilizing Patreon.

How one can set up htop on Alpine Linux utilizing apk

The process for putting in htop on Alpine Linux is as follows:

Open the terminal window.For distant Alpine Linux server login utilizing ssh command.Execute apk search htop command to seek for htop on AlpineRun apt add htop to put in htop in Alpine Linux

Allow us to see all steps and command in particulars.

Alpine Linux set up htop

Allow us to seek for htop package deal utilizing apk command:
apk search htop
Pattern outputs:

htop-doc-2.2.Zero-r0
htop-2.2.Zero-r0
varnish-6.1.1-r0

Get details about htop package deal

Run the next command:
apk data htop
Pattern outputs:

htop-2.2.Zero-r0 description:
Interactive course of viewer

htop-2.2.Zero-r0 webpage:
http://hisham.hm/htop

htop-2.2.Zero-r0 put in dimension:
200704

Set up htop

Lastly, kind:
apk add htop
apk command install htop on Alpine LinuxPutting in htop on Alpine Linux utilizing apk

How one can use htop command

The syntax is:
htop
htop [options]
Running htop on an Alpine Linux serverhtop in motion
One can use a monochrome coloration scheme, run:
htop -C
htop –no-color
Wish to see the tree view by default when operating htop? Attempt:
htop -t
htop –tree
Allow us to see solely processes of a given person named vivek:
htop -u vivek
htop –user=vivek
htop –user=nginx
Restrict and present course of for less than 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 next instructions are supported whereas in htop:

CommandDescriptionUp arrow keyChoose (spotlight) the earlier course of within the course of record. Scroll the record if obligatory.Down arrow keyChoose (spotlight) the following course of within the course of record. Scroll the record if obligatory.Left arrow keyScroll the method record left.Proper arrow keyScroll the method record proper.PgUp, PgDnScroll the method record up or down one window.ResidenceScroll to the highest of the method record and choose the primary course of.FinishScroll to the underside of the method record and choose the final course of.sHint course of system calls: if strace(1) is put in, urgent this key will connect it to the presently chosen course of, presenting a dwell replace of system calls issued by the method.lShow open information for a course of: if lsof(1) is put in, urgent this key will show the record of file descriptors opened by the method.uPresent solely processes owned by a specified person.MType by reminiscence utilization (high compatibility key).PType by processor utilization (high compatibility key).TType by time (high compatibility key).F“Comply with” course of: if the kind order causes the presently chosen course of to maneuver within the record, make the choice bar comply with it. That is helpful for monitoring a course of: this fashion, you possibly can hold a course of all the time seen on display screen. When a motion secret is used, “comply with” loses impact.OkCover kernel threads: forestall the threads belonging the kernel to be displayed within the course of record. (This can be a toggle key.)HCover person threads: on programs that characterize them in another way than unusual processes (akin to latest NPTL-based programs), this will conceal threads from userspace processes within the course of record. (This can be a toggle key.)pPresent full paths to operating packages, the place relevant. (This can be a toggle key.)Ctrl-LRfresh the display screen.F1See this assist menu.hSimilar as above.?Once more, identical as above.F10Stop htopqExit htop (identical as above)

How one can get assist about htop

Merely kind:
htop –help
man htop

Conclusion

This web page confirmed you how you can set up and use htop on Alpine Linux. For extra data see htop house web page right here.

Posted by: Vivek Gite

The writer is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a coach for the Linux working system/Unix shell scripting. Get the newest tutorials on SysAdmin, Linux/Unix and open supply matters by way of RSS/XML feed or weekly e mail publication.

Source link

Related Articles

Leave a Reply

Back to top button