mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-14 19:15:51 +02:00
alias: change main description; add view example (#1224)
This commit is contained in:
parent
13cbf55d4d
commit
07c2de5e58
1 changed files with 6 additions and 2 deletions
|
@ -1,12 +1,16 @@
|
||||||
# alias
|
# alias
|
||||||
|
|
||||||
> Creates an alias for a word when used as the first word of a command.
|
> Creates aliases -- words that are replaced by a command string.
|
||||||
> Note that these operations are not permanent, expiring when the current shell session ends.
|
> Aliases expire with the current shell session, unless they're defined in the shell's configuration file, e.g. `~/.bashrc`.
|
||||||
|
|
||||||
- Create a generic alias:
|
- Create a generic alias:
|
||||||
|
|
||||||
`alias {{word}}="{{command}}"`
|
`alias {{word}}="{{command}}"`
|
||||||
|
|
||||||
|
- View the command associated to a given alias:
|
||||||
|
|
||||||
|
`alias {{word}}`
|
||||||
|
|
||||||
- Remove an aliased command:
|
- Remove an aliased command:
|
||||||
|
|
||||||
`unalias {{word}}`
|
`unalias {{word}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue