10 Essential Linux Alias Commands to Supercharge Your Terminal Efficiency
Learn how to create permanent, easy-to-remember Linux aliases for common tasks—such as extracting tar files, resuming downloads, generating passwords, checking checksums, limiting ping, launching a quick web server, testing speed, retrieving IP addresses, and clearing the screen—to dramatically boost command-line productivity.
Linux engineers often waste time typing long, repetitive commands. By defining permanent aliases in .bash_profile, you can shorten these commands and improve efficiency.
Create a shortcut for extracting tar archives: alias untar='tar -zxvf ' Now run untar filename.tar.gz to extract.
Enable resumable downloads with wget: alias wget='wget -c ' Use wget -c URL to continue interrupted downloads.
Generate a 20‑character random password quickly: alias getpass="openssl rand -base64 20" Check a file’s SHA‑256 checksum with a short command: alias sha='shasum -a 256 ' Run sha filename to verify.
Limit ping output to five packets: alias ping='ping -c 5' Start a simple HTTP server on port 8000 instantly: alias www='python -m SimpleHTTPServer 8000' Run a speed test against a specific server:
alias speed='speedtest-cli --server 2406 --simple'Quickly retrieve your public IP address: alias ipe='curl ipinfo.io/ip' Show your local network IP address (macOS example): alias ipi='ipconfig getifaddr en0' Clear the terminal screen with a short alias: alias c='clear' These ten aliases can be added to .bash_profile (or the appropriate shell startup file) to make them permanent across sessions, saving time and reducing typing errors for everyday Linux work.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Liangxu Linux
Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
