mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-01-06 00:45:38 +03:00
25 lines
351 B
Markdown
25 lines
351 B
Markdown
# alias
|
|
|
|
> Creates an alias for a word when used.
|
|
> As the first word of a command.
|
|
|
|
- Create a generic alias:
|
|
|
|
`alias {{word}}="{{command}}"`
|
|
|
|
- Remove an aliased command:
|
|
|
|
`unalias {{word}}`
|
|
|
|
- Full list of aliased words:
|
|
|
|
`alias -p`
|
|
|
|
- Turn rm an interative command:
|
|
|
|
`alias {{rm}}="{{rm -i}}"`
|
|
|
|
- Override la as ls -a:
|
|
|
|
`alias {{la}}="{{ls -a}}"`
|