4 classic Linux tools that have better modern alternatives

There are a number of command-line utilities that Unix and Linux users have relied on for over 50 years. But each of these classic commands has a modern alternative, if you want to upgrade.

These programs are not available so you will need to install them yourself. And it's best to use them locally, for one-time tasks, rather than depending on them for scripting. However, you might discover a handy feature here, whether it's syntax highlighting, faster processing, or simply a more intuitive interface.

1. bat is cat with syntax highlighting and Git integration

Short for 'concatenate', the cat tool is probably rarely used to join files together, but only to display them. Because it sends input to standard output, cat creates a very basic, general-purpose file viewer. But typically you'll want more features when viewing file content, and bat is a specific tool designed to provide those features.

4 classic Linux tools that have better modern alternatives Picture 14 classic Linux tools that have better modern alternatives Picture 1

bat is great for quickly paging through text files, like a set of log files or source code. It provides a title for each file, adds line numbers, and uses colors to highlight the syntax of various file types. The bat command supports use with other popular tools and is highly compatible with cat's option set.

If you're a programmer, you'll appreciate bat's git integration. The tool's output will include comments for lines with local changes in the sidebar. You can even set it up to act as the default viewer for manual pages via man, improving their readability.

2. ripgrep is a recursive grep

grep has many uses as a powerful search engine. By leveraging the power of regular expressions, text searching will be taken to a new level. ripgrep has two main improvements: Recursive search and git integration.

4 classic Linux tools that have better modern alternatives Picture 24 classic Linux tools that have better modern alternatives Picture 2

The grep tool will normally search recursively inside subfolders with the -R option, making searching through all files in the project much more convenient. But ripgrep does this by default. ripgrep respects every .gitignore file it finds, so it will not search for files that do not belong to the archive.

ripgrep also tends to run faster than grep and other alternatives. And its default output is probably what you're usually looking for, with standard syntax highlighting and line numbers.

3. lsd is ls with preferred format

The ls command is one of the first commands that Linux users learn because it is one of the most useful. This tool - short for LSDeluxe - upgrades it with beautiful colors and graphical icons.

4 classic Linux tools that have better modern alternatives Picture 34 classic Linux tools that have better modern alternatives Picture 3

Like ls's -G option, lsd adds color to each file depending on its type: Directory, executable, symlink, etc. But it also adds icons representing the file format, from HTML files to C source code. It turns the usual terminal file listing into something that looks more like a GUI file browser.

lsd also comes with the --tree option which provides hierarchical output without the need for a separate tool.

4. fd is find friendlier

Of all the standard command line utilities, find is probably the most difficult to use. It's a valuable way to find files, but the syntax and general usage of the command is quite unique. Therefore, it can be difficult to remember how to use find correctly. If so try fd!

4 classic Linux tools that have better modern alternatives Picture 44 classic Linux tools that have better modern alternatives Picture 4

Without arguments, fd will give you a color-coded list showing all files and directories below the current directory. You can pass it simple text or a pattern to search for specific file names.

The fd command supports many other options, from case sensitivity to searching for file extensions and executing the command. Like ripgrep, it respects any .gitignore settings it finds, meaning it's a particularly good tool for searching through source code repositories.

5 ★ | 1 Vote