Always thought top was one of those programs frozen in time since the 70s, but apparently, it has a feature set comparable to htop and the like. The default configuration just doesn't show much of it...
Underappreciated `top`
https://friendo.monster/posts/underappreciated-top.html
34 Comments
SnotFlickerman@lemmy.blahaj.zone · 51 pts · 283d
That moment when you realize you're not in !onehundredninetysix@lemmy.blahaj.zone and people are talking about an entirely different kind of top than you were thinking.
This is dope, though, I also thought
topwas just stuck in time.Jankatarch@lemmy.world · 2 pts · 281d
I decided to check and first meme had thevword "terminal" in it.
Guess what I interpreted.
paequ2@lemmy.today · 45 pts · 283d
Wow. wat. This is
top??The only reason I use
htopis because I never bothered to learntop. I'm totally down to avoid downloading and installing another utility though. The time to learntopis TODAY!Ephera@lemmy.ml · 13 pts · 283d
Yeah, I would often just grab
htopbecause I had no idea how to read the CPU usage out oftop.For example, for me it says:
Now that I look at it, I can guess that
usandsyare supposed to beuserandsystemtime. And I guessidis supposed to beidle.I have no guess what the other numbers might be, though. And well, I would often like to see the CPU usage per core.
Now I know that I can just press
1tand get effectively the same view as inhtop.I might learn
top's filtering workflow, too. But so far, I always killed processes withps -ef | grep <process-name>and thenkill <pid>, which isn't particularly more cumbersome, so will see...Shadow@lemmy.ca · 13 pts · 283d
Wa is IO Wait. CPU time burned spent waiting for disk
Hi is hardware irq, similar concept but for hardware devices.
paequ2@lemmy.today · 3 pts · 282d
lol, same!
1tgets me 90% of the functionality I use inhtop.bastion@feddit.nl · 2 pts · 281d
i also hit 4 a few times to give more columns to the cpu usage meters.
__nobodynowhere@sh.itjust.works · 3 pts · 283d
Why not use pkill?
Ephera@lemmy.ml · 2 pts · 283d
Ah, that was a brainfart. I do use
pkillprimarily. I just use the other command, when I'm not sure what the process is called...IsoKiero@sopuli.xyz · 2 pts · 283d
From top man-page global commands:
Hupf@feddit.org · 3 pts · 283d
Also, pgrep and pkill may be handy.
utopiah@lemmy.ml · 2 pts · 282d
you could check
pgrep <process-name>tooEphera@lemmy.ml · 2 pts · 282d
That is a good tip. Unfortunately, I am too
fishto understand it. 🙃I just type
psand in 9 out of 10 cases, my shell suggestsps -ef | grep <process-name>. So, it's actually less for me to type than "pgrep"...utopiah@lemmy.ml · 2 pts · 282d
Far from me to try to
basha suggestion's on one's head but^rpgor^r<process-name>(forreverse-i-search) is probably quite fast, obviously depends entirely on your typical usage. Hard to do less than 2 keystrokes I admit.eager_eagle@lemmy.world · 30 pts · 283d
Why are good features never made defaults in some tools? We can make it look almost like
htopand it feels like the defaults couldn't be worse. It's such a waste to hide good features behind bad defaults.Ephera@lemmy.ml · 16 pts · 283d
Yeah, I especially don't understand it here, because it's a graphical tool. You don't have to keep backwards compatibility.
Even if you're worried about people depending on the format that's being piped, you could keep only the piped format stable. We have the technology.
scott@lem.free.as · 17 pts · 283d
Take a look at
btop.cyberwolfie@lemmy.ml · 3 pts · 282d
My go-to! There's a Python version,
bpytop, as well - not sure why you would want that over the C++-version though.dizzy@lemmy.ml · 3 pts · 281d
The author of btop wrote bpytop first and then when it got popular, they decided to rewrite it in C++
aqua_cat@pawb.social · 1 pts · 281d
Just guessing but maybe for different architecures like RiscV and PPC? It might still be possible to compile from source, but if you have python why not just take a shortcut
yuriRO@lemmy.dbzer0.com · 12 pts · 282d
I'm also underappreciated top
alteredEnvoy@sopuli.xyz · 11 pts · 283d
I wish the author can just share a configuration file. I am not configuring this on all my machines manually.
paequ2@lemmy.today · 5 pts · 282d
I missed this part during my first read:
and when I tried it, it seemed like my commands weren't doing anything... so in case anyone else finds this helpful...
How to sort columns in
top.topf(not SHIFT+F)sto sort by the column you've currently selectedwhose current sort field is $COLUMN_NAMEsqto exit the Fields Management screenAt this point,
topmay not look like it sorted the selected column. It may be helpful to telltopto highlight the currently sorted column. Pressxto do this.Now it should be easier to tell which column was sorted.
jerkface@lemmy.ca · 4 pts · 282d
You're talking about procps-ng
top.paequ2@lemmy.today · 5 pts · 282d
Wait... what?
Oh, so these guys manage
topand a few other common utilities.jerkface@lemmy.ca · 4 pts · 281d
No, these guys manage a version of
top. There are dozens of versions. Every major OS has their owntop, or an equivalent. I bet there are even linux distros that don't use this version oftop.paequ2@lemmy.today · 2 pts · 281d
Oooooh, ok. TIL.
At least Arch and Debian seem to use
top from procps-ng. Good to know.non_burglar@lemmy.world · 4 pts · 283d
Saving for later, pretty cool.
Sxan@piefed.zip · 3 pts · 283d
It's not as fancy. No graphs, blinking lights, paneled layout.
I maintain one of þose fancy nu-tops, and I keep it running for þe pretty... but when I want to get work done, I always end up opening top. Because in þe end, columns of text are almost always more useful þan histograms.
ReversalHatchery@beehaw.org · 7 pts · 283d
apparently it has it all
https://lemmy.today/comment/20055580
Sxan@piefed.zip · 0 pts · 282d
Ok, fair enough. It has meters. Most alternatives exist to show data a graphs; top is sparse in þis way. I stand by my comment: btop, gotop, and ilk exist to look pretty, and sometimes a histogram can be informative, but usually top is much more of a useful tool and less of a fancy dashboard.
eugenia@lemmy.ml · 3 pts · 283d
Top reads available memory more correctly than htop imho.
Digit@lemmy.wtf · 2 pts · 280d
Now if only I could hack up top to show which bedrock stratum each process running from, like paradigm did for me one christmas with (a now old version of) htop, I might consider learning how to use top.
Htop's hard to beat.
Others, like btop, are too heavy, too try-hard.
Would be nice if top were as convenient and easy. Oh wait, that's basically htop, again.
Fizz@lemmy.nz · 1 pts · 280d
I just hate how top doesnt format the values into mb, gb and tb. Its 2025 we dont need to see things in bytes. It makes me skip top and go straight to htop