this post was submitted on 30 Oct 2025
129 points (99.2% liked)

Linux

59558 readers
854 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

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...

you are viewing a single comment's thread
view the rest of the comments
[–] paequ2@lemmy.today 39 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Wow. wat. This is top??

top

The only reason I use htop is because I never bothered to learn top. I'm totally down to avoid downloading and installing another utility though. The time to learn top is TODAY!

[–] Ephera@lemmy.ml 12 points 2 weeks ago (5 children)

Yeah, I would often just grab htop because I had no idea how to read the CPU usage out of top.
For example, for me it says:

%Cpu(s):  0,4 us,  0,4 sy,  0,0 ni, 98,8 id,  0,0 wa,  0,3 hi,  0,0 si,  0,0 st

Now that I look at it, I can guess that us and sy are supposed to be user and system time. And I guess id is supposed to be idle.
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 1t and get effectively the same view as in htop.

I might learn top's filtering workflow, too. But so far, I always killed processes with ps -ef | grep <process-name> and then kill <pid>, which isn't particularly more cumbersome, so will see...

[–] Shadow@lemmy.ca 12 points 2 weeks ago* (last edited 2 weeks ago)

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 points 2 weeks ago (1 children)

I would often just grab htop because I had no idea how to read the CPU usage out of top.

lol, same! 1t gets me 90% of the functionality I use in htop.

[–] bastion@feddit.nl 2 points 1 week ago

i also hit 4 a few times to give more columns to the cpu usage meters.

[–] IsoKiero@sopuli.xyz 3 points 2 weeks ago (1 children)

I always killed processes with ps -ef | grep

From top man-page global commands:

  • k :Kill-a-task

         You will be prompted for a PID and then the signal to send.
    
[–] Hupf@feddit.org 3 points 2 weeks ago

Also, pgrep and pkill may be handy.

[–] __nobodynowhere@sh.itjust.works 2 points 2 weeks ago (1 children)
[–] Ephera@lemmy.ml 2 points 2 weeks ago

Ah, that was a brainfart. I do use pkill primarily. I just use the other command, when I'm not sure what the process is called...

[–] utopiah@lemmy.ml 0 points 2 weeks ago (1 children)

I always killed processes with ps -ef | grep and then kill

you could check pgrep <process-name> too

[–] Ephera@lemmy.ml 0 points 2 weeks ago (1 children)

That is a good tip. Unfortunately, I am too fish to understand it. 🙃

I just type ps and in 9 out of 10 cases, my shell suggests ps -ef | grep <process-name>. So, it's actually less for me to type than "pgrep"...

[–] utopiah@lemmy.ml 2 points 2 weeks ago* (last edited 2 weeks ago)

Far from me to try to bash a suggestion's on one's head but ^rpg or ^r<process-name> (for reverse-i-search) is probably quite fast, obviously depends entirely on your typical usage. Hard to do less than 2 keystrokes I admit.