Nov 22, 2017

Find out whether a command is a shell feature or an external command.

There is a command called type in bash shell, which you can use to check:


$ type cd
cd is a shell builtin
$ type pwd
pwd is a shell builtin