bash:aliases:disable_an_alias_temporarily
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
bash:aliases:disable_an_alias_temporarily [2020/05/05 20:29] – created peter | bash:aliases:disable_an_alias_temporarily [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== BASH - Aliases - Disable an alias temporarily ====== | ====== BASH - Aliases - Disable an alias temporarily ====== | ||
+ | |||
+ | To override an alias and revert to calling the actual command, simply call the alias with a backslash. | ||
+ | |||
+ | <code bash> | ||
+ | alias ls='ls -al' | ||
+ | </ | ||
+ | |||
+ | The alias would usually be called using: | ||
+ | |||
+ | <code bash> | ||
+ | ls | ||
+ | </ | ||
+ | |||
+ | but to override the alias, call it using a backslash in front: | ||
+ | |||
+ | <code bash> | ||
+ | \ls | ||
+ | </ | ||
bash/aliases/disable_an_alias_temporarily.1588710552.txt.gz · Last modified: 2020/07/15 09:30 (external edit)