csatlakozom Zahy commentjéhez: "Mielőtt eltévedne a kedves kérdező, segítsünk is neki:"
+ ne vezessük meg! biztos vagy benne, hogy mindenki veszi az adást? :D
man which:
"DESCRIPTION
which returns the pathnames of the files (or links) which would be executed in the current environment, had its arguments been given as commands in a strictly POSIX-conformant shell. It does this by searching the PATH for executable files matching the names of the arguments. It does not follow symbolic links."
a "$(which sudo)" után mi lesz a SUDO értéke, ha "...sudo: command not found" hibaüzenetet kapott?
lehet hogy Te tudod, és mások?
tehát: lehet hogy nincs a PATH-ban, lehet hogy nincs is feltelepítve, de lehet hogy "elveszett" róla az "x" permission... és lehet még sok-sok egzotikus hiba