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
Direct Download
Read full article as PDF:
Price $2.95
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
News
-
An All-Snap Version of Ubuntu is In The Works
Along with the standard deb version of the open-source operating system, Canonical will release an-all snap version.
-
Mageia 9 Beta 2 Ready for Testing
The latest beta of the popular Mageia distribution now includes the latest kernel and plenty of updated applications.
-
KDE Plasma 6 Looks to Bring Basic HDR Support
The KWin piece of KDE Plasma now has HDR support and color management geared for the 6.0 release.
-
Bodhi Linux 7.0 Beta Ready for Testing
The latest iteration of the Bohdi Linux distribution is now available for those who want to experience what's in store and for testing purposes.
-
Changes Coming to Ubuntu PPA Usage
The way you manage Personal Package Archives will be changing with the release of Ubuntu 23.10.
-
AlmaLinux 9.2 Now Available for Download
AlmaLinux has been released and provides a free alternative to upstream Red Hat Enterprise Linux.
-
An Immutable Version of Fedora Is Under Consideration
For anyone who's a fan of using immutable versions of Linux, the Fedora team is currently considering adding a new spin called Fedora Onyx.
-
New Release of Br OS Includes ChatGPT Integration
Br OS 23.04 is now available and is geared specifically toward web content creation.
-
Command-Line Only Peropesis 2.1 Available Now
The latest iteration of Peropesis has been released with plenty of updates and introduces new software development tools.
-
TUXEDO Computers Announces InfinityBook Pro 14
With the new generation of their popular InfinityBook Pro 14, TUXEDO upgrades its ultra-mobile, powerful business laptop with some impressive specs.