Bash aliases are really awesome and can help save you a lot of time and typing. However, these aliases can occasionally conflict with other commands that we want to run.
For such situations, we need to temporarily disable or ignore the alias.
Here are 3 ways you can do that:
Disable Alias For A Session
One thing you can do is temporarily disable an alias for a single bash terminal session. You can achieve this by typing:
After this, you can use the command like normal, without worrying about an alias causing a conflict for the remainder of that terminal session.
Prepend A Backslash
If you don’t want to disable the alias, you can simply prepend a backslash to the command. For example:
This works perfectly and you don’t have to worry about disabling the command for the entire session.
Use the keyword ‘Command’
This is similar to the last one, but instead of prepending a backslash, you can add the word command before your your bash ‘command’.
This works as such:
That’s it. Now you don’t have to worry about your aliases conflicting with other commands.