FOSSPicks
gotop
Over the years, we've looked at a lot of activity monitors. There are now so many that they've become difficult to write about with any originality. It must have become a Linux developer's rite of passage to create a tool that shows which processes are taking up CPU time and hogging all the system memory. But gotop
is worth writing about because it takes the best parts of some of our favorite monitoring tools and combines them into an easy-to-install, cross-platform, and CPU-efficient single executable. There are precompiled binaries for many ARM variants, including executables that will simply run on a Raspberry Pi, x86 Linux, macOS, and even Windows. Each version runs identically, with a few exceptions. There's an option to monitor NVidia graphics hardware, for example, and power monitoring is also dependent on your hardware. Apart from that, every platform can take advantage of all the same features, which is a good thing because there are quite a few.
One of the best things about gotop
is that it's clean and performant by default, especially compared to something such as htop
, which can clutter your terminal and your CPU (but is still a great tool). With no further modification, gotop
will graph the use of each CPU core across the top; disk usage, temperature, and memory usage through the middle; and networking throughput and process management below. All of this can be configured and saved as a preset, including themes, styles, widgets, update frequency, and some options on how the values are calculated. It's even possible to monitor the state of remote servers. It's incredibly configurable for a tool with such a small system footprint, and that's what makes gotop
such a good find. It's the best of all possible worlds without any compromise.
Project Website
https://github.com/xxxserxxx/gotop
HTML processor
htmlq
If you've ever done any development by working on your own scripts or hacking on a website, you will have encountered JSON. JSON is a text notation format for sending, retrieving, and storing data, and it uses a specific JavaScript-like syntax of curly brackets and square brackets, double quotes and commas to contain that data. These elements are used to describe key and value pairs ("name":"graham"
, for instance), arrays, and hierarchy. YAML files aren't difficult to comprehend, and many programming languages will provide libraries to help parse the data transparently, but they can be difficult when you want to create a simple script or use them from the command line because you need to find a way of navigating their hierarchical bracketed syntax. This is where the venerable jq
command can help. It's a command that parses all of JSON's magical syntax for you, making it easy to access the actual data held within its confines. At its simplest, you can ask for the values assigned to names
, but it's advanced features enable you to process JSON files in the same way sed
processes text files. But what about working with HTML files directly?
htmlq
is a tool that does just that, and it's why htmlq
has a q in its name. It's a command that wants to do the same for HTML files that jq
does for JSON. If you grab the HTML for a web page with curl
, for example, you face the same problems retrieving exact values without complicated multiple uses of grep
. Piping the output through htmlq
instead lets you quickly retrieve page attributes, the raw main body of text, or specific sections or parts by identifier. It's a brilliant way to scrape data from websites that don't provide (or allow) their own REST API access, such as sites listing train timetables or ultra-local weather reports. It's the quickest way we've found to extract URLs from an external page, either for testing or for further scraping.
Project Website
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.
-
Fedora 41 Beta Available with Some Interesting Additions
If you're a Fedora fan, you'll be excited to hear the beta version of the latest release is now available for testing and includes plenty of updates.
-
AlmaLinux Unveils New Hardware Certification Process
The AlmaLinux Hardware Certification Program run by the Certification Special Interest Group (SIG) aims to ensure seamless compatibility between AlmaLinux and a wide range of hardware configurations.
-
Wind River Introduces eLxr Pro Linux Solution
eLxr Pro offers an end-to-end Linux solution backed by expert commercial support.
-
Juno Tab 3 Launches with Ubuntu 24.04
Anyone looking for a full-blown Linux tablet need look no further. Juno has released the Tab 3.
-
New KDE Slimbook Plasma Available for Preorder
Powered by an AMD Ryzen CPU, the latest KDE Slimbook laptop is powerful enough for local AI tasks.
-
Rhino Linux Announces Latest "Quick Update"
If you prefer your Linux distribution to be of the rolling type, Rhino Linux delivers a beautiful and reliable experience.
-
Plasma Desktop Will Soon Ask for Donations
The next iteration of Plasma has reached the soft feature freeze for the 6.2 version and includes a feature that could be divisive.