Learning Linux: Climate CLI Utility

November 22, 2020

On this show, one thing are all about is getting things done in the command line, and the more we can do in the command line the better. To that end, I was working my way through some Github repositories recently, as one naturally does on a Friday night, and came across a project called Climate. Climate bills itself as, “the ultimate command line tool for Linux.” The Github page goes on to say, “It provides a huge number of command line options for developers to automate their Linux system. This tool can be extremely helpful to learn various UNIX commands, too. There is even an option to print each command before they’re executed to help you memorize them over time.”

At first I was skeptical, so I installed it on a Linux Mint VM I keep around and was pleasantly surprised. The install was super-simple, which is not typical for something found on GitHub; the commands were easily memorable; and it simplified a lot of things you could already do in the command line down to a single, one-word argument! The documentation was superb, as well.

So, if you’re interested in checking out this Swiss-Army Knife of a CLI tool, feel free to follow these instructions (for use with APT):

Install Git, if you don’t have Git

$ sudo apt install git

Clone, cd, install

$ git clone https://github.com/adtac/climate.git
$ cd climate
$ sudo ./install

The default location is /usr/local/bin/. If you want to write to a different location, you can give an argument to the install command. Just place the directory following the “install” command.
Setup will ask you three questions with a default answer in [square brackets].

  1. Do you want to enable colored text? [yes]
  2. Show commands before execution? [yes]
  3. What’s your favorite editor? [vi]

To which that last question depends on your sanity level. I chose nano, because I love myself.

The install file will catch most utilities that are not already installed, but some may not have an immediate utility it can find. Mine failed to install speedtest and httpstat. I had to install them manually.

$ gawk exists!
$ jq missing. Installing... Installed!
$ http-server missing. Installing... Installed!
$ is-up missing. Installing... Installed!
$ is-online missing. Installing... Installed!
$ speedtest missing. Please install it manually using pip.
$ httpstat missing. Please install it manually using pip.

Once all of that is done, it’s time to use some of the cool things baked-in. There are a lot of commands, so this is where the great documentation on the Github Repo will be key. A few personal favorites are:

$ climate weather [location]   | Displays weather for selected location
$ climate speedtest            | Performs a speedtest in the command line
$ climate ports                | Shows open ports
$ climate overview             | Shows system stats, similar to htop

So, install Climate, try it out, and let us know what you think!

Comments are closed.