Session and utilities

The alias command

Creates custom shortcuts for long commands.

Syntax

alias nombre='comando'

Most useful options

-pLists the defined aliases

Copy-ready examples

$ alias ll='ls -l'A classic shortcut
$ llUse it

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • The alias lives in the session; to make it permanent you must save it in the config file.

Related commands

FAQ

Do aliases disappear when closing?

Yes, unless you save them in ~/.bashrc.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course