Why is my alias from .bashrc not working?

Solution 1:

Your alias has a bad character, not the standard ASCII symbol (minus sign) but another one, which by some fonts is rendered as a longer dash.

This alias works for me

alias untar='sudo tar -xvf'

$ printf '-'|hexdump -C
00000000  2d                                                |-|
00000001
$ printf '–'|hexdump -C
00000000  e2 80 93                                          |...|
00000003