Improved command line tools

Original link: remysharp.com

Using command line tools for your job can be highly effective and productive. The author of CLI: improved have been using them over 20 years. He often find better CLI tools to use. In that article, he gives a list of improved CLI tools for the traditional ones. Below are some examples of them. A tip to use the new tools is to create an alias for each new tool with the old one.

Use bat to replace cat, bat offers some useful features like highlight, paging, even file concatenation. It also integrate some other tools including fd (Another command replacement for find ), git, tail -f, man, etc. It can work on Ubuntu, Linux, macOS, Windows.

Use fd to replace find. It comes from the same author of bat. find is always difficult to remember the right syntax. fd is handy and fast. Such as fd js is used to find files with filenames containing js. Pretty easy to remember, isn’t it?

The full list enhanced commands:

  • cat to bat

  • ping to prettying

  • ctrl+r to fzf

  • top to htop

  • diff to diff-so-fancy

  • find to fd

  • du to ncdu

  • man to tldr

  • grep et al to jq

  • cowsay to ponsay

  • awk et al to cvskit

  • noti to display notification

  • watch to entr

July 2, 2020 cmd best-practice

A universal document converter -- Pandoc

Pandoc is a powerful document conversion tool, it is called swiss-army knife in this field. It understands many document formats, like markdown, ms word, pdf, html, etc. And it is free, you may install it as a command tool or try it online.

cmd dev

A tool showing cheatsheet for programming languages and Linux commands

cheat.sh is a pretty useful tool that provides a cheat sheet for all you need like Linux commands, programming languages and DBMSes. You can use it to display usages of a Linux command, a code snip of a programming language like code for looping an array with PHP. For the moment, it covers 56 programming languages(C, awk, bash, PHP, Python, Perl, R, Ruby, JS, Go, Swift...) and 1000+ Linux commands.

cmd dev git-bash

Unix style terminals for Windows

If you need to run commands on Windows, it would be a much better choice to use an Unix style terminal to replace default Windows console. Here it introduces some good of them, like Git for Windows, Cmder, and a more powerful one Cygwin.

cmd