Ignoring alias and functions in Bash
tl;dr: Use
command
in front of the desired command.
For example, let's figure that we assigned an alias to echo
, like this:
alias echo="ping google.com"
What happens if we launch the command?
$ echo
# Output
# > PING google.com (142.250.184.110) 56(84) bytes of data.
# ...
In order to make the shell ignore the alias and launching the actual command, we have to make command
precede the desired command (e.g. echo
).
$ command echo
# Output
# >
$ command echo "hi man"
# Output
# > ciao mbare
support
Did you find this post useful?
Remember that this website doesn’t make use of any trackers or analytics or adv so it doesn’t earn from your visits (moreover, it has a minimal environmental impact).
If you like this blog, refill my caffeine supplies by
share