1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 10:06:01 +02:00
tldr/pages/common/alias.md

24 lines
348 B
Markdown
Raw Normal View History

# 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:
2015-10-22 15:31:52 +08:00
`alias {{la}}="{{ls -a}}"`