Some of the useful (more or less) aliases and functions for the .bashrc file to make your life a little easier and delay the onset of carpal tunnel syndrome.

Things to remove from .bashrc

Few things annoy me more than these three default command aliases. Removing them is one of the first things I do after installing a new OS:

Command History

Adding a timestamp to your shell command history is a must. This will help you figure out not just what stupid mistake you made, but also when you made it.

The fzf command-line fuzzy search utility is tremendously useful for search your shell history for commands the syntax of which you can’t quite recall. You can find the simple installation instructions here and then add this handy alias to your .bashrc:

Common Command Aliases

Some of the other handy command aliases that I use frequently:

System Management Shortcuts

This is a short list of aliases and functions I have in my .bashrc for everyday sysadmin tasks.

Correcting Typos

There are certain commands I mistype on a regular basis. While .bashrc is not the best way of addressing this issue ( for this I would recommend using AutoHotkey on Windows or AutoKey on Linux), but to a limited extent it’s not a terrible idea:

Copying, Syncing, and Archiving Data

The joke about typing a useful tar command without googling has some truth to it. The same goes for rsync, dd, and even the good old cp. Here are some relevant aliases from my .bashrc:

Handy Network Aliases

I may not need to use these often, but when I do, I am usually in a hurry and have no time for googling.