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 939a446a68 alias: wrap rm command in backticks (#2888)
* alias (pt-BR): wrap rm command in backticks

* alias: wrap rm command in backticks
2019-04-10 23:39:39 +01:00

28 lines
555 B
Markdown

# alias
> Creates aliases -- words that are replaced by a command string.
> Aliases expire with the current shell session, unless they're defined in the shell's configuration file, e.g. `~/.bashrc`.
- Create a generic alias:
`alias {{word}}="{{command}}"`
- View the command associated to a given alias:
`alias {{word}}`
- 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}}"`