When I try to use git (even just typing git
, git clone <repo>
, etc, I get this error:
bash: /usr/games/git: No such file or directory
but git works with sudo
just fine.
which -a git
returns /usr/bin/git
Why is it looking in the wrong place, and /usr/bin/games
of all places?
How can I change where it looks?
command -v git
?/usr/bin/git
file /usr/bin/git
?/usr/bin/git: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=cc2ef87a752fd09905966dd11aee96ea5214d16a, stripped