Bash Bypass Alias Linux/Unix Command

‮‬www.lautturi.com
Bash Bypass Alias Linux/Unix Command

In Bash (the default shell on most Linux and UNIX systems), an alias is a shortcut for a command or a series of commands. Aliases are commonly used to define shorter or more convenient versions of longer or more complex commands.

To bypass an alias and run the original command, you can use the \ (backslash) character before the command name. For example, if you have an alias called ll that is an alias for the ls -l command, you can bypass the alias and run the ls -l command directly by typing \ls -l at the command prompt.

Another way to bypass an alias is to use the command command, which runs a command without looking for any aliases or shell functions with the same name. For example, to bypass the ll alias and run the ls -l command, you can type command ls -l at the command prompt.

Keep in mind that the \ and command methods will only bypass aliases for the current shell session. If you want to permanently disable an alias, you will need to edit your Bash configuration files and remove the alias definition. You can find more information about how to do this in the Bash documentation or by using the help command at the command prompt.

Created Time:2017-10-16 14:38:38  Author:lautturi