Unalias
From FreeBSDwiki
(Difference between revisions)
m (adding shell prompts to console snippets) |
|||
| (One intermediate revision by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | The [[unalias]] command is used to remove | + | The [[unalias]] command is used to remove [[alias]]es from the shell. |
| − | The syntax is always the same | + | The syntax is always the same - for example, we can see that this system has an alias causing 'foo' to be interpreted as 'bar': |
| − | unalias foo | + | > '''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]] | See also: [[alias]] | ||
[[Category : System Commands]] | [[Category : System Commands]] | ||
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