(Linux) Command-Line tools that will blow your mind

The Fuck — Magnificent app which correct your previous console command

‘The Fuck’ has to be one of the most addicting command line tool once you start using it. Whenever you mis-type a command, just type fuck and it will automatically run the corrected version of the previous command!

Source

By default, the fuck command will ask you to confirm the corrected command to run. To run fixed commands without confirmation, use the --yeah option (or just -y for short, or --hard if you’re especially frustrated).

fuck --yeah
fuck --hard

To fix command recursively until success, use the -r option.

fuck -r

To install this tool use the following commands ~

# macOS or Linux
brew install thefuck

# Ubuntu/Mint
sudo apt update
sudo apt install python3-dev python3-pip python3-setuptools
pip3 install thefuck --user

# On other systems, install using pip
pip install thefuck

micro — A modern and intuitive terminal based text editor

For those who started with modern code editors like VSCode or Sublime Text, switching to command-line editors like Vim or Nano can be a daunting learning curve. For these users, Micro offers an ideal solution. It’s a terminal-based text editor designed to be easy to use and highly intuitive, combining the power of the command line with a user-friendly experience.

Source

Some of the amazing features offered by micro are as follows ~

  • Support for multiple cursors
  • Keybindings that are common to most of the modern IDEs
  • Extremely good mouse support
  • Simple autocompletion
  • Syntax highlighting for over 130 languages

Since it is packaged into a single binary, installing it is as simple as running the following command ~

curl https://getmic.ro | bash

You can even use popular package manager to install micro.

# Using Homebrew on Mac
brew install micro

# Using snap on Linux
snal install micro --classic

eza — Modern alternative to ls

eza is a modern replacement for file listing program ls. It uses colours to distinguish file types and metadata. It knows about symlinks, extended attributes, and Git. And it’s small, fast, and just one single binary.

Source

Following instructions can get you to install the eza command line tool ~

# macOS
brew install eza

# With existing RUST environment setup
cargo install eza

For other installation steps, refer docs.

tldr — Collaborative cheatsheets for console commands

The tldr-pages project is a collection of community maintained help pages for command-line tools, that aims to be a simpler, more approachable complement to traditional man pages.

Source

Following commands can be used to install tldr on your system

# Installation using npm
npm install -g tldr

# Installation using pip
pip install tldr

# Installation using brew
brew install tl

bat — A cat clone with wings

The bat tool is a clone of famous cat program with support for syntax highlighting and git integration.

Git integration and syntax highlighting improves the legacy cat program

Conveniently, using bat is similar to using the cat program.

~ sudo apt install bat  # Installation on Ubuntu 

~ brew install bat # Installation on MacOS

A detailed guide for installing it on various distribution is provided here.

Write a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.