History, Aliases, and Shell Startup Files

Make a shell work for you and keep it that way: search and tune the command history, define an alias and a function in the file every shell reads, and change PATH for one user and for all users so that it survives a new login.

Skill labbeginner~30 minFree

What you'll do

  • ✓Search the command history and control what it keeps
  • ✓Define aliases and functions that every interactive shell has
  • ✓Decide what belongs in ~/.bash_profile and what in ~/.bashrc
  • ✓Extend PATH for one user and, through /etc/profile.d, for all users

Lab outline

  1. 01History
  2. 02Aliases and functions
  3. 03Startup files and PATH

Before you start

  • Shell Environment and a Repeatable Inventory
  • Become Another User with su and sudo

Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.

← All Linux System Administration labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime

History, Aliases, and Shell Startup Files — Linux lab | Kube Labs