1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/alias.md
Waldir Pimenta b5f522803a alias: various tweaks (#1135)
- add a caveat to the main description about an aliases not being permanently saved
- tweak the descriptions of some examples
2016-10-29 16:03:11 +01:00

24 lines
461 B
Markdown

# alias
> Creates an alias for a word when used as the first word of a command.
> Note that these operations are not permanent, expiring when the current shell session ends.
- Create a generic alias:
`alias {{word}}="{{command}}"`
- Remove an aliased command:
`unalias {{word}}`
- List all aliased words:
`alias -p`
- Turn rm into an interactive command:
`alias {{rm}}="{{rm -i}}"`
- Create `la` as a shortcut for `ls -a`:
`alias {{la}}="{{ls -a}}"`