I have set few aliases in .bashrc
file. I need those aliases most of the time, but sometimes I need to run those command without options set in that particular alias.
How to not execute alias command?
I have set few aliases in .bashrc
file. I need those aliases most of the time, but sometimes I need to run those command without options set in that particular alias.
How to not execute alias command?
Run the command with a leading
\
, an answer in examples: ;)Slightly longer but also possible:
You can use shell builtin
command
to escape aliases (and functions):For example:
will run
/bin/ls
binary , not any alias defined asls
.An alternative is to use quotes:
or
For example:
or
these again will run the
/bin/ls
binary, ignoring any aliasls
.Alternatively, you could specify full path to command. For instance, my
ls
command is aliased tols='ls --color -F'
What one can do is either call
/bin/ls
or$(which ls)
(for those of us who are lazy to type full path).Example : calling original command with flags
$(which ls) -l