New commands replacements
The list of new commands you might find interesting
There are newer versions of old commands, that are more powerful and have more features. Here is a list of commands that I find super cool to use:
bat replaces cat
We all used cat command to read files in the terminal. But now we have a new command called bat that is a cat clone with syntax highlighting and Git integration. It is a great tool for developers who want to read code files in the terminal.
There is a bat command that can be used as a drop in replacement for cat. It has a lot of features that make it better than cat, such as syntax highlighting, line numbers, and Git integration. You can install it using your package manager. For example, you can use:
bat README.md
Benefits of using bat over cat:
- Syntax highlighting for code files
- Line numbers for easier navigation
- Git integration to show changes in files
- Smart paging for long files
- You can scroll through the output using the arrow keys
(there might be others, but those I use the most)
lsd instead of ls
Good old plain ls command is still useful, but there is a new command called lsd that is a modern replacement for ls. It has a lot of features that make it better than ls, such as icons, colors, and tree view. You can install it using your package manager.
Now the same output using lsd:
And now, tree view using lsd:
rg instead of grep
There is a ripgrep command that is a faster and more powerful replacement for grep. It has a lot of features that make it better than grep, such as recursive search, file type filtering, and colorized output. You can install it using your package manager.
Use case is simple, everywhere you used grep, you can now use rg instead. For example, to search for a string in a file, you can use:
brew list | rg colima
dust instead of du
There is a dust command that is a more intuitive and colorful replacement for du. It has a lot of features that make it better than du, such as human-readable output, colorized output, and tree view. You can install it using your package manager.
See more github repo.




