Get better at the command line, one prompt at a time.
Build a custom Bash prompt in seconds, learn the commands you actually need, and keep the one-liners you always forget a search away.
Prompt generator
Pick segments and colours, see a live preview, copy the PS1 line into ~/.bashrc.
{ }One-liner cheatsheet
177 tested commands for files, text, processes, disks and networking.
#!Practical guides
18 guides from prompt customization to loops, find, grep, sed, awk and SSH.
One-liner of the day
scp file.txt user@host:/tmp/Copy a file to a server · Learn more
Latest guides
.bashrc, Aliases and Functions: Set Up Your Bash Shell Properly
Learn when Bash reads .bashrc, .bash_profile and .profile, write useful aliases, know when a function is the better choice, and reload changes safely.
ScriptingBash Arrays and String Manipulation: A Practical Guide
Indexed and associative arrays in Bash, plus string length, substrings, trimming, search and replace and case changes with parameter expansion.
BasicsBash History Tricks: Search, Reuse and Never Lose a Command
Get more out of Bash history: bigger history, timestamps, Ctrl+R search, !n and ^old^new expansion, fc, and history shared across terminals.
BasicsBash Keyboard Shortcuts: Move, Edit and Search the Command Line Faster
The Bash keyboard shortcuts worth learning: jump around a line, cut and paste words, search history with Ctrl+R, reuse arguments and edit long commands.
ScriptingBash Loops: for, while and until with Practical Examples
How to write Bash for, while and until loops: ranges, C-style loops, looping over files safely, reading files line by line, and common mistakes.
ScriptingBash Scripting Basics: Your First Useful Shell Script
Learn Bash scripting from scratch: shebang, variables and quoting, $1 and "$@", if and case, exit codes, set -euo pipefail and reading input.
SystemCheck Disk Usage on Linux: df, du and ncdu Explained
Find out what is filling your disk: df for free space and inodes, du for folder sizes, ncdu for interactive browsing, plus logs, journals and deleted open files.
SystemCron and Crontab Syntax: Schedule Jobs on Linux with Examples
How cron works, the five time fields explained with examples, crontab -e and -l, logging output, the PATH and % pitfalls, and preventing overlapping jobs.
BasicsEnvironment Variables and PATH in Bash: export, env and Startup Files
What environment variables are, how export works, how to set a variable for one command, add a directory to PATH permanently and load a .env file safely.