Create shorthand names for commands or command sequences.
low risk
alias lets you define custom shorthand for long or complex commands. Aliases defined in the terminal session are temporary — to make them permanent, add them to ~/.bashrc or ~/.bash_profile. alias without arguments lists all current aliases.
alias ll='ls -lah --color=auto'Create a human-readable long listing alias · explain & risk-check →alias k=kubectlShorthand for kubectl (essential for K8s work) · explain & risk-check →alias grep='grep --color=auto'Always colorize grep output · explain & risk-check →alias ..='cd ..'Navigate up one directory quickly · explain & risk-check →unalias llRemove the ll alias · explain & risk-check →Add `alias tf=terraform` and `alias k=kubectl` to ~/.bashrc — saves thousands of keystrokes per week.
Reference text is hand-written and may be incomplete — check man alias for your version. Test destructive commands on a non-production system first.