terminal.cab

All commands

alias

Topic: Shell and scripts

Shell builtin: alias

Defines or shows short names for commands.

Package: script-werkzeuge

Usage

alias [-p] [name[=value] ...]

Description

Without arguments, list every alias as alias NAME='VALUE'. NAME=VALUE defines an alias: when NAME is the first word of a command typed later, the shell reads VALUE in its place. NAME alone shows that alias.

Options in the simulator

Examples

From the lesson The system and your shortcuts
alias kver='uname -r'
kver
6.12.48+deb13-amd64
type kver
kver is aliased to `uname -r'

Try it in the terminal

Where you learn it

Lessons

All commands