Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

4 Classic Linux Tools That Have Better Modern Alternatives

Compare 4 Classic Linux Tools That Have Better Modern Alternatives with an overview of the main options, strengths, limitations.

Table of Contents

This updated overview organizes the essential information about Classic Linux Tools, including practical uses, key features, setup considerations, and common questions.

What This Guide Covers

  • 1. bat is cat with syntax highlighting and Git integration
  • 2. ripgrep is a recursive grep
  • 3. lsd is ls with preferred format

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.

1. bat is cat with syntax highlighting and Git integration - Classic Linux Tools

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.

2. ripgrep is a recursive grep - Classic Linux Tools

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.

3. lsd is ls with preferred format - Classic Linux Tools

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. fd is find friendlier - Classic Linux Tools

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.

Final Thoughts

Use the instructions and checks above in order, verify the result after each major step, and keep a backup whenever the process changes important files or system settings.

FAQ

What is Linux used for?

These programs are not available so you will need to install them yourself.

Who should consider Linux?

It is most useful for readers who need the features, workflow, or problem-solving approach described in this guide.

What should I check before using it?

Review compatibility, current software requirements, privacy or security settings, costs, and any limitations that could affect your workflow.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.