My go-to command line Linux tools for WSL

My go-to command line Linux tools for WSL
Photo by Gabriel Heinzer / Unsplash

I've started using WSL pretty regularly now that our development process has gone cross-platform by default. I still love developing on Windows, and even though my entire tool-chain is available on a Mac, I prefer the customisation of both hardware and software that comes with the PC platform.

That being said, i also love linux, and would use it daily if it fit into our corporate environment. So, I use WSL and al it's glory to back up my dev environment. It's pretty great and fits into my existing Windows dev environment well now.

So, here are a couple of awesome command line tools I use regularly, and how to install them.

I'll be adding to this list form time to time so come back if you'd like to see if I replace these tools with anything new from time to time.

1) duf

GitHub - muesli/duf: Disk Usage/Free Utility - a better ‘df’ alternative
Disk Usage/Free Utility - a better ‘df’ alternative - GitHub - muesli/duf: Disk Usage/Free Utility - a better ‘df’ alternative

"duf" is a visually updated version of the "df" (Disk Filesystem) command and checks disk usage and statistics.

installation

If you're using Ubuntu (or any Debian based distro) you can install duf by downloading the .deb package directly from GitHub usign wget:

* Be sure to check for the latest version in the releases page first - just replace the url below with the latest.

wget https://github.com/muesli/duf/releases/download/v0.8.1/duf_0.8.1_linux_amd64.deb

Then, install the package with dpkg:

sudo dpkg -i duf_0.8.1_linux_amd64.deb

If you'd like to remove the downloaded package after successful install, simply run:
rm -rf duf_0.8.1_linux_amd64.deb

2) btop++

You'll probably know top as a useful system resource monitoring tool for the command line in linux.

You may even use htop

htop

Check out the btop++ repositoy on github:

GitHub - aristocratos/btop: A monitor of resources
A monitor of resources. Contribute to aristocratos/btop development by creating an account on GitHub.

Installation

To install btop++ from the command line, simply download the latest version from the GitHub repo (be sure to check for the latest release from the release page).

You want the _x64_64_linux_musl version...

wget https://github.com/aristocratos/btop/releases/download/v1.2.8/btop-x86_64-linux-musl.tbz

Then, unzip the bin/btop folder from the archive to a new folder under `/usr/local/bin:

sudo tar xf btop-x86_64-linux-musl.tbz -C /usr/local bin/btop

You can now simply run btop to see your new system monitor. Remember it's ctrl+c to exit.