DEV Community

Cover image for My Favorite Linux Tools
Antonin J. (they/them)
Antonin J. (they/them)

Posted on • Updated on • Originally published at antjanus.com

My Favorite Linux Tools

This post was cross-posted to my personal blog for archival purposes.

I wanted to list a few utilities that either help my productivity on Linux or make working in Linux more pleasant in some way.

I really enjoy setting up tools so that they're easier to use when I use them -- so instead of just saying "this tool is great", it's also worth noting how some tools can be very powerful once you spend the time to set them up, even if you don't use them often.

You might notice that most of these are terminal based utilities. I primarily interact with Linux via the terminal and almost everything that's not terminal based is just the usual cross-platform applications (Discord, Opera, Slack, VSCode, etc.) so I'm not mentioning any of those.

I asked the community for everyone's recommendations.

NeoVIM

neovim text editor screenshot

From git messages to quick file changes (or full development), it's totally worth setting up NeoVIM with at least syntax highlighting. I often reach for VIM when I don't want to bother opening VSCode or when VSCode is just too much for a quick edit.

Why NeoVIM and not VIM? NeoVIM retains full backward compatibility with VIM and exposes some new features. Either one works! :)

ZSH

zsh shell screenshot

I've had my bash config setup just the way I liked it but recently switched to ZSH. Why?

  1. it's quick and easy to setup
  2. you don't have to be a power user to take advantage of it
  3. zsh command highlighting makes things easier to read
  4. theme support is much better than bash/terminal theme support
  5. lots of plugins

Make sure to check out oh-my-zsh which gives you the theme support and plugin support.

nmtui

nmtui network manager screenshot

A TUI (terminal UI) for network management. I reach for it more so than any other built-in utilities because of how simple and straightforward it is. For some reason, I also trust it more. When a GUI network manager freezes, I'm always paranoid that the GUI froze -- not that the network manager is doing its job. With NMTUI, there's more trust on my part for sure.

I know, I know, it looks like it's from the 80s BUT, it allows you to manage all of your saved wifi settings, your ethernet connections, and so much more. It is fully-featured and lacking nothing as far as I can tell.

ncdu

ncdu disk usage utility screenshot

NCDU is a terminal UI (an ncurses UI to be more specific) for the du command. What does du do? du is a disk usage utility. What's cool about ncdu is that it scans everything in a folder or on your system and allows you to explore your file system with all of the computed size values.

This is so useful when you're trying to figure out what's taking up so much space on your drive, or when you're trying to delete the space hogs.

htop

htop process viewer screenshot

Another terminal utility. This one is an interactive process viewer. Think of it as your Activity Manager or Task Manager. It can filter, search, and sort through processes. It displays all of the relevant process information included full command path which started the process. This is so useful when trying to find runaway node processes.

You can then send commands to the processes but the only one I really use is the kill command to close stuck processes.

notify-send

notify-send terminal and notification example screenshot

notify-send is a utility that allows you to send notifications to yourself. This is super useful -- so much so that I aliased it in my .bashrc:

alias lmk="notify-send 'Something happened!'"
Enter fullscreen mode Exit fullscreen mode

Might seem useless but if you're running a long-running process, it's great to have a notification system that lets you know when it's done. So I tend to use notify-send in conjunction with other commands, like npm install && lmk.

Rofi

rofi application launcher screenshot

Unlike others, this one isn't a terminal application. This is an application launcher/window switcher/so much more. If you're using something like i3, it is a perfect replacement for dmenu. If you're using something else, it's still a power tool.

What makes it special is that it handles command line utilities and GUI apps at the same time AND it'll switch you over to a running instance of an app as well. On top of that, it's insanely fast.

Other notable tools

I don't want to go off to the deep end with every single tool I use so here are a few I'd check out:

  1. bat - an alternative to cat with syntax highlighting and better display of file contents. Install and alias it to cat
  2. notepadqq - inspired by the Windows-only Notepad++, a easy-to-use auto-draft-saving text editor
  3. emacs org-mode - Emacs is a powerful text editor and org-mode is a plain-text productivity/task-management tool
  4. conky - a desktop system monitoring tool - tells you CPU/RAM loads, active processes, etc. on your desktop
  5. Archey - a cool utility that tells about your machine. It was used to generate the screenshot at the top of this post

Note: If you use any of my screenshots for anything, please let me know and credit me somehow. Especially if it's used as a texture for computer hacker monitors in a AAA video game

Like my content? Follow me on Twitter or just buy me a coffee

Top comments (47)

Collapse
 
ashleemboyer profile image
Ashlee (she/her)

notify-send looks like a good one! I like the example you gave. Might have to give this one a try.

Collapse
 
darksmile92 profile image
Robin Kretzschmar

Yes this one particually is interesting because we all know the struggle of long running processes where we end up surfing or doing something else and totally forget to check back if it is done πŸ˜…

Collapse
 
jrohatiner profile image
Judith

That is so true! Good to know other people do it too! πŸ˜‚

Collapse
 
antjanus profile image
Antonin J. (they/them)

It's sooo easy to use. I tried to make an alternative for powershell on windows and had to install an additional tool 😞.

I do believe it's Ubuntu only but other systems should have something similar available

Collapse
 
scottharwoodtech profile image
ScottHarwoodTech • Edited

Since you use ZSH, you can enable hooks which will automatically notify you when your command takes more than a certain amount of time gist.github.com/jpouellet/5278239 this was my starting point, I expanded it to send me a notifiy-send message with the info instead of just triggering a alert.

Collapse
 
flrnd profile image
Florian Rand

That statement ubuntu only is dangerous sir!

Collapse
 
ghost profile image
Ghost

in fact notify-send is part of libnotify which at least in Gentoo is a dependency of wxGTK, in Linux if it works in one distro it works on all of them (with different levels of difficulty)

Thanks for the tip, I wasn't aware of this and is much more elegant than my current way, appending mpv (CLI media player) with some noise after the long command :D

Thread Thread
 
antjanus profile image
Antonin J. (they/them)

oooh interesting. Thanks for chiming! i went to check if it works on Arch (I switch between Arch/Ubuntu every couple of years) and it looks like it's required by gnome and a bunch of other packages. So, cool! :)

Glad I could help!

Collapse
 
alexsasharegan profile image
Alex Regan

I didn't find it on Pop!_OS by default. Installing it was confusing since you actually install libnotify-bin... so heads up for anyone looking for it!

Collapse
 
antjanus profile image
Antonin J. (they/them)

Yeah, I guess I should specify to check out what kind of notification utilities your specific flavor of Linux supports/has. notify-send is dead-simple in usage so I hope other OSes are as well.

I was remarking on the fact that Windows/Powershell still sucks with this because you gotta make a whole script for it.

For anyone interested in how PS handles this: you can install BurntToast and write a 1-liner function function letmeknow {New-BurntToastNotification -Text "I'm letting you know!", "Something you wanted to happen, happened"} in your ps1 profile script.

Thread Thread
 
jrohatiner profile image
Judith

@antoninjanuska u bring up a good point here. There are so many mitigating factors in configuring a shell env. For me, this took time to really grasp this concept and once I did, game changer! πŸ‘πŸ‘

Collapse
 
flrnd profile image
Florian Rand

You can download the Source Code from here and compile It for your distro: galago-project.org/downloads.php although maybe it's not so straight forward, never tried to compile it since Debian has binary packages. There is a shell scrip version from Arch Linux users you can also try.

Collapse
 
biros profile image
Boris Jamot ✊ /

Have a look at fish shell, notifications for long running processes are built-in !

Collapse
 
spike008t profile image
Tieu Philippe KHIM • Edited

tmux is the big missing one for my point of view.

Otherwise, an alternative of htop is glances.

Collapse
 
anpos231 profile image
anpos231 • Edited

This is so useful when trying to find runaway node processes.
Why not use killall -9 node?

I'd like to add 'screen' to the list. Useful when you want to leave your terminal session running after leaving VPS.

Collapse
 
moopet profile image
Ben Sinclair • Edited

You usually don't want to kill all your node processes, just the one that's running away...
and using SIGKILL like a hammer is a slippery slope.

Collapse
 
antjanus profile image
Antonin J. (they/them)

yep! VSCode and other processes spin up their own node processes. I'd want to kill a specific one.

What doesn't help is that if you're using webpack or nodemon, or a combination of tools, they'll just spin up another node process as soon as you kill it.

Collapse
 
wrecklass profile image
Steven Martin

Quicky bash function using AppleScipt Engine to provide notify-send with macOS notifications:

function notify-send() {
  /usr/bin/osascript -e "display notification \"$*\" with title \"Notice\" sound name \"Tick\""
}
Enter fullscreen mode Exit fullscreen mode

Now you can just do: notify-send "This is a notice"

To get a popup notification on your Mac.

Note you can change the sound by looking for sounds in /System/Library/Sounds on the Mac

Collapse
 
dgreene profile image
Dan Greene

multitail, jq, and htop (worth a 2nd mention) are some of the best, underrated cli tools out there

Collapse
 
antjanus profile image
Antonin J. (they/them)

I think the big reason they're so good is because they're cross-linux available. While GUI tools might need GTK, KDE, or whatever else. And on top of that, Linux users don't always have a GUI available.

I definitely love those utils!

Collapse
 
ivolimmen profile image
Ivo Limmen

jq is a very handy tool; just like httpie.

Collapse
 
biros profile image
Boris Jamot ✊ / • Edited

fx is also a killer app. You can browse JSON in the terminal:

Collapse
 
derek profile image
derek

Thanks for posting and sharing! I πŸ’šthings that ++productivity 🍻

Here a few that I find myself using the majority of the day:

slack-term keeps you in your terminal longer, and it has vim bindings 😍

exa is ++ls -la

tig is a must if you have any 🐱

Collapse
 
jenshansen profile image
Jens Hansen

I really like fzf (fuzzy finder) and ranger.

ranger is a command-line based file manager with vi-bindings.

Collapse
 
jrpz profile image
Jaime Perez

+1 for ranger

Collapse
 
jeffderbyshire profile image
Jeff Derbyshire

terminator - Terminal emulator
screen - run things in background
miniconda - python virtual environments

Collapse
 
avalander profile image
Avalander

I've used notify-send to set a cron job in my work computer that reminds me to go home every workday at 5 pm, but I had never thought of your way to use it, I'm definitely going to borrow that :D

Collapse
 
antjanus profile image
Antonin J. (they/them)

That's an awesome idea! I love that. Now if only there was an easier-to-use tool for cronjobs!

 
anpos231 profile image
anpos231

For me killall proved useful when working with PHP. For example when there is this one rogue script that did not finish like it should. killall -9 php is not a problem because apache will spawn another one as soon as new request is made, but currently made request would be interrupted, so I only use in dev env.

Collapse
 
jnario profile image
Jose Nario

I have tried an ungodly number of note-taking/organizational apps & solutions across a few decades. And while many are excellent, I keep returning to org-mode, which is nothing short of unparalleled (for my brain, anyway).

My enthusiasm for Emacs has waned over the years, but org-mode will keep me entrenched. At least, until a 1:1 standalone equivalent is produced.

Collapse
 
antjanus profile image
Antonin J. (they/them)

Same experience! I've used emacs for development for a while but really, I just use it extensively for org mode.

It's basically a standalone org mode app for me πŸ˜‚

What's nice is writing code snippets in org mode ❀️.

Collapse
 
ssimontis profile image
Scott Simontis

Org mode is the best kept secret of Emacs. I've been searching for the ideal KM solution for years and now I have found it! The learning curve was a little frustrating because Spacemacs changes the Meta-Enter binding's default value, but eventually I found the answer. It has inspired me to write my own org mode parser!

Collapse
 
prahladyeri profile image
Prahlad Yeri

I don't quite agree that you need to be a super power user in order to use bash. I hardly knew the "L" of linux when I first started using bash!

nmtui looks interesting, is it available in Ubuntu repos? More importantly, does it work on a totally headless installation (like ubuntu-server) where no DE is yet installed?

There are a whole lot of other excellent linux tools which I'm totally dependent on, an entire post could be made about them.

Collapse
 
antjanus profile image
Antonin J. (they/them)

I agree that you don't have to be a power user to get a lot out of bash. I'd just say that having a decent bash or zsh setup can make a beginner's life (and an expert's life) much easier. Especially the whole thing with autocompletion, syntax highlighting, and showing valuable info in the terminal.

I'm not 100% sure if nmtui is built into Ubuntu but it is in the Ubuntu packages. It does work on a server version! The first time I used nmtui was installing Arch and that process involves installing the desktop environment manually -- and for that you need network access first. :)

Make the post! That's what I did haha

Collapse
 
omrisama profile image
Omri Gabay

Archey doesn't look different from Neofetch?

Collapse
 
antjanus profile image
Antonin J. (they/them)

Oooh yeah, I haven't heard of this one. Looks pretty cool, too!

There are a bunch of tools like this.

Collapse
 
hyaovi profile image
Yaovi

I just installed nmtui, it is pretty straightforward. I like it! Thanks for sharing)

Collapse
 
antjanus profile image
Antonin J. (they/them)

I really wish it was better-known. I learned about it when I installed Arch for the first time. It's a fantastic tool.