Depende de qual shell você é. type em si é um shell de construção, portanto, se o shell não tiver nenhum builtin chamado type e não houver nenhum executável em $PATH , ele lançará o erro no such file or directory .
Por exemplo, em csh , não há comando type . Use o comando which em seu lugar:
user@host:~$ csh
# which cd
cd: shell built-in command.
# exit
user@host:~$