What differences between two below commands in CentOS7?
$ type cd
cd is a shell builtin
and
$ which cd
cd is a shell builtin
cd is /usr/bin/cd
cd is /bin/cd
The cd is a shell builtin command, but why which command show another path for cd ?
Is the cd command both internal command and external command ?
/binand/usr/bin/ directories, I havecdcommand. So, i want to know, what differences between cd builtin command and these two? – Saman Bayat Oct 22 '18 at 05:06CentOS7– Saman Bayat Oct 22 '18 at 05:14typecommand? When is it used and for what purpose? – Motivated Jan 17 '19 at 01:54