How to check if a program exists in a system using Julia?

Yes, I did. ls, which, tail, less, cat, etc. all work. Only type, hash or command fail. Even nano works and goes into editor mode.