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

Dealing with a weird problem on CentOS trying to add the Play! framework to my path. Just earlier I successfully did a chmod +x play on Play! and I could run commands.

Then I rebooted and it completely fails. All attempts to retry chmod fail. I'm doing this from root user, it has 777 permissions, and belongs to the root group.

bash: play: command not found

What am I not considering?

share|improve this question
up vote 4 down vote accepted

It isn't enough to just add the directory to $PATH; you must make a change to your configuration to add it to $PATH on reboot or shell start. Try editing ~/.bashrc.

share|improve this answer
Perfect, thanks! Switched from Solaris and just not yet familiar with RHEL/CentOS yet ;) This did it alias play="/home/usrName/javaApi/play-1.1/play" – crockpotveggies Feb 2 '12 at 8:07
Aliases is a bad work around if you just wanted it in your $PATH, and Solaris works the same way by the way. See this link for more info on .bashrc and .bash_profile: – Yanick Girouard Feb 22 '12 at 5:02

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.