5 Bash Aliases That’ll Save You 10 Hours a Month 🤯 (And Then Some!)

Table of contents
- Intro: Terminal Warriors Unite!
- What Are Bash Aliases?
- The Ultimate 5 commands
- 1. Navigation Mastery: Move Like a Ninja 🥷
- 2. Git Wizardry: Commit With a Side-Eye 🛠️
- 3. Safe File Ops: Don’t Shoot Your Foot 🛡️
- 4. System & Workflow Power-Ups ⚡
- 5. Custom Utilities: Lazy Genius Tier 🤠
- Bonus Round: Go Beyond the Basics 🎁
- How to Set It Up 🛠️
- Conclusion: Terminal Sorcerer, Activated 🧙♂️
"Why type five characters when one will do?" — Every lazy sysadmin, ever 😂
Intro: Terminal Warriors Unite!
Let’s face it: We’ve all wasted hours typing the same clunky commands like keyboard hamsters on a productivity wheel. If you’re still typing git status
or ls -alFh
in full, you’re basically using a shovel to dig a pool while everyone else has a backhoe. This guide merges the greatest hits from bash alias lore with next-level upgrades to supercharge your workflow. We’re talking time savings, typo reduction, and safety nets—all with a sprinkle of humor.
This is all for saving those 10 hours a month and spending then wisely on watching short-form or even for binge watchingn.
What Are Bash Aliases?
For the uninitiated (bless your heart), bash aliases are custom shortcuts for commands you use daily. Think of them as cheat codes for your terminal: type c
instead of clear
, or gs
instead of git status
. Life’s short—so why waste it typing the same stuff over and over? But a request for you, please don't use something like kenjutsu='cp'
and make your life more complicated.
The Ultimate 5 commands
1. Navigation Mastery: Move Like a Ninja 🥷
alias c='clear'
alias e='exit'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias ll='ls -alFh'
alias l='ls -F'
Why It Rules: Navigate directories like a pro with
...
to jump two levels up, orll
for a detailed, human-readable file list (hidden files included!).Pro Tip:
l
adds trailing/
markers to directories—perfect for quick visual scanning.
"Normal people: 'cd ../..' | Me: '...'" — The terminal wizard in all of us 🧙♂️
2. Git Wizardry: Commit With a Side-Eye 🛠️
alias gs='git status'
alias gp='git pull'
alias gpo='git push origin'
alias ga='git add .'
alias gc='git commit -m'
alias gcm='git commit -m "hotfix"'
alias gl='git log --oneline'
Why It Rules: Turn 20 keystrokes into 2.
ga
stages all changes, whilegcm
auto-adds a sarcastic commit message.Bonus:
gl
condenses logs into a scroll-friendly summary.
"Me after pushing code without typo-ing 'git': 😎"
3. Safe File Ops: Don’t Shoot Your Foot 🛡️
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
alias safe-rm='rm -i'
Why It Rules:
-i
prompts before overwriting/deleting. Imagine guardrails on the highway of destruction.Pro Tip: Use
safe-rm
as a reminder to think twice before deleting.
"The day I aliased 'rm' to 'rm -i' was the day I stopped crying over deleted configs."
4. System & Workflow Power-Ups ⚡
alias update='sudo apt update && sudo apt upgrade -y'
alias ports='netstat -tulanp'
alias h='history | grep'
alias server='python3 -m http.server 8000'
alias grep='grep --color=auto'
Why It Rules:
update
= One command to rule all Debian-based upgrades.ports
shows open ports + processes.h python
digs up old commands faster than Sherlock.server
spins up a quick HTTP server for file sharing.
Colorful Bonus:
grep
with syntax highlighting for readability.
"After 'update', I go make coffee. My system fixes itself. ☕"
5. Custom Utilities: Lazy Genius Tier 🤠
alias v='nvim'
alias py='python3'
alias python='python3'
alias pip='pip3'
alias tf='terraform'
alias k='kubectl'
- Why It Rules: Auto-upgrade to Python 3, or turn
kubectl
intok
. Eventf
saves your pinky fromterraform
.
"Real flex: Typing 'v' and editing configs like a movie hacker."
Bonus Round: Go Beyond the Basics 🎁
Add These Quality-of-Life Tweaks:
# Reload bashrc instantly
alias reload='source ~/.bashrc'
# List only directories
alias lsd='ls -d */'
# Public IP lookup
alias ip='curl ifconfig.me'
# Disk usage summary
alias du='du -h'
Steal My Entire .bashrc
Setup:
🔗 For you this is my full .bashrc
How to Set It Up 🛠️
Open your bash config:
nano ~/.bashrc
Paste the aliases at the bottom.
Save and reload:
source ~/.bashrc
Conclusion: Terminal Sorcerer, Activated 🧙♂️
Using aliases isn’t just about saving keystrokes—it’s about reducing cognitive load and avoiding boneheaded mistakes (looking at you, rm -rf
).
Start with these, then go wild. Create aliases for project-specific workflows, like deploy='docker-compose up && curl
localhost:3000
'
. Before you know it, you’ll be typing single letters that execute complex pipelines.
Remember: Time saved = more time for Reddit, memes, or finally beating your boss at Wordle.
Drop your favorite aliases
below—unless they’re too OP. We’re all friends here. 😏
Got a killer alias that automates your entire job? Share it. Or keep it secret. We won’t judge.
Subscribe to my newsletter
Read articles from Yejju Sathya Sai directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
