User Tools

Site Tools


bash:aliases:disable_an_alias_temporarily

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
bash:aliases:disable_an_alias_temporarily [2020/05/05 20:29] – created peterbash: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'
 +</code>
 +
 +The alias would usually be called using:
 +
 +<code bash>
 +ls
 +</code>
 +
 +but to override the alias, call it using a backslash in front:
 +
 +<code bash>
 +\ls
 +</code>
  
bash/aliases/disable_an_alias_temporarily.1588710552.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki