Posix command locations



I wanted to check the physical location of posix binaries on my solaris box.
Multiple commands such as cd,bg,jobs,kill,etc seem to be hardlinks to
/usr/bin/alias which in itself has the simple code as below:

#!/bin/ksh -p
#
cmd=`basename $0`
$cmd "$@"

It is not evident to me as to how the actual command is getting called via
this shell script.
-p is Korn shell is to turn on the privileged mode to run setuid programs. I
could not find the suid profile for ksh under /etc.

I replaced the -p option with -x in the /usr/bin/cd script, but there was no
change in behaviour of the "cd" command, "cd" just worked as before.

Can someone letme know how exactly this works and where exactly the binaries
are located.

thanks and regards
GNS


.