Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

bash
productivity
alias
communitycreator

How to use Bash aliases to increase your productivity

Anjana Shankar

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

What is a Bash alias?

A Bash alias is a shortcut that helps you avoid typing a long command sequence. It can help you save a lot of keystrokes over the day and can also help you avoid remembering complex combinations of commands and options.

Defining Bash aliases

Bash aliases are defined in your:

$HOME/.bashrc

or

$HOME/bash_aliases (which must be loaded by $HOME/.bashrc).

Code

Let’s look at an example below, where you can see three aliases defined in the snippet.

alias ll='ls -l'
alias lt='ls -ltr'
alias kc='kubectl'

RELATED TAGS

bash
productivity
alias
communitycreator

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring