pavement

Unalias

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
 
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 an aliased command (make with [[alias]]).
+
The [[unalias]] command is used to remove [[alias]]es from the shell.
  
The syntax is always the same : to remove the alias ''foo''
+
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 04: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

Personal tools