Posix command locations
- From: "gns" <gnskumar@xxxxxxxxx>
- Date: Tue, 28 Nov 2006 19:41:23 +0530
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
.
- Follow-Ups:
- Re: Posix command locations
- From: Casper H . S . ***
- Re: Posix command locations
- Prev by Date: Re: Volume Manager information not persistent across reboots
- Next by Date: Compiling gdb 6.5 on Solaris 9/10
- Previous by thread: Re: Volume Manager information not persistent across reboots
- Next by thread: Re: Posix command locations
- Index(es):