mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
Merge pull request #98 from rnas/master
Added instructions for the alias command
This commit is contained in:
commit
66d0ffc530
1 changed files with 24 additions and 0 deletions
24
common/alias.md
Normal file
24
common/alias.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# alias
|
||||
|
||||
> Creates an alias for a word when used
|
||||
> as the first word of a command
|
||||
|
||||
- creating a generic alias
|
||||
|
||||
`alias {{word}}="{{command}}"`
|
||||
|
||||
- remove an aliased command
|
||||
|
||||
`unalias {{word}}`
|
||||
|
||||
- full list of aliased words
|
||||
|
||||
`alias -p`
|
||||
|
||||
- turning rm an interative command
|
||||
|
||||
`alias {{rm}}="{{rm -i}}"`
|
||||
|
||||
- overriding la as ls -a
|
||||
|
||||
`alias {{la}}="{{ls -a}}"`
|
Loading…
Add table
Reference in a new issue