Member-only story
~100 Bash Aliases for supersonic Productivity
Bash aliases are a great way to simplify and streamline the command line interface. They offer a time-saving solution by allowing you to substitute complex and lengthy commands with custom shortcuts. This makes it easier, faster and more convenient to accomplish tasks in the command line interface.

Bash aliases can automate many things, like creating backups of specific files or directories, running multiple commands at once, or even creating custom scripts. For example, you can create an alias that will automatically run a series of commands to update your system and install new software or an alias that will automatically create a new directory and move specific files into it.
It’s important to note that while bash aliases can be a powerful tool, they should be used with caution. Incorrectly creating or modifying an alias can have unintended consequences, so it’s important to thoroughly test any new aliases before using them in production environments.
Aliases work on any system where Bash shell is used, be it Linux, macOS or Windows. The steps to create and use them differ slightly depending on your OS.
How to Create aliases
On Mac and Linux,
an alias can be created by simply adding them to your ~/.bashrc
, ~/.zshrc
or ~/.bash_profile
file
A much more elegant approach, however, is to add them to an ~/.aliases
like file and then source this file in your respective profile file assource ~/.aliases
To add an alias to the ~/.aliases file, open the file in the editor of your choice and add the aliasalias ll=’ls -la’
In windows,
the command is a bit different
- On the command prompt, create an alias using the doskey
command as doskey ll=dir /ah
- On Powershell, use the New-Item cmdlet as New-Item -Path (Join-Path $env:windir system32) -Name ll -Value "dir -Force" -ItemType Alias