Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an OpenSolaris system and some korn shell scripts that have a #!/bin/pfksh at the top. However, I don't have pfksh in either /bin/ or /usr/bin directories.

How should I go about installing pfksh on my system? When I tried to copy the file, I get a "Invalid argument" error message. I couldn't find the exact name of the package in OpenSolaris to install pfksh.

pkg install pfksh pkg install SUNWpfksh

don't work.

I tried copying the pfksh file from another machine, but it gives me

How should I go about it?

share|improve this question

As described here you should download the ksh93 package, once you have it you will need to create a hardlink for pfksh

share|improve this answer

pfksh is a Solaris profile shell (see manual pages for pfexe(1) and rbac(5) for more information) and it is a link to /usr/bin/sh which is delivered in the SUNWcs package, but on OpenSolaris where it seems to have been forgotten.

If you just do the following, it will work

cd /usr/bin
ln -s ksh pfksh
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.