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

Linux

59569 readers
807 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 5 points 2 weeks ago* (last edited 2 weeks ago)

I missed this part during my first read:

This screen allows you to customise which fields are displayed in the currently selected window. Use cursor keys (or Alt + j and k) to move up and down this list, d to toggle whether a field is displayed and s to choose the field by which the window is sorted.

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.

  • Launch top
  • Press f (not SHIFT+F)
  • Use arrow keys or alt+j / alt+k to select a column
  • Press s to sort by the column you've currently selected
    • note: you won't get any obvious feedback, this is normal... I guess
    • look at the top line: whose current sort field is $COLUMN_NAME
    • this line will change when you press s
  • Press q to exit the Fields Management screen
  • Selected column should now be sorted from largest to smallest

At this point, top may not look like it sorted the selected column. It may be helpful to tell top to highlight the currently sorted column. Press x to do this.

Now it should be easier to tell which column was sorted.