Unalias
From FreeBSDwiki
(Difference between revisions)
("alias" looks really weird if you type it too many times in a row. =)) |
m (adding shell prompts to console snippets) |
||
Line 4: | Line 4: | ||
> '''alias foo''' | > '''alias foo''' | ||
foo='bar' | foo='bar' | ||
+ | > | ||
If we want to remove it, we simply use '''unalias''': | If we want to remove it, we simply use '''unalias''': | ||
> '''unalias foo''' | > '''unalias foo''' | ||
+ | > | ||
And now we can see that it's gone: | And now we can see that it's gone: |
Latest revision as of 03:57, 18 July 2005
The unalias command is used to remove aliases from the shell.
The syntax is always the same - for example, we can see that this system has an alias causing 'foo' to be interpreted as 'bar':
> alias foo foo='bar' >
If we want to remove it, we simply use unalias:
> unalias foo >
And now we can see that it's gone:
> alias foo >
See also: alias