I log in as root and copy my .bashrc file from my user directory to the /etc/profile.d directory using the cp command. I then try to rename the .bashrc file and it simply doesn't work. It doesn't say it can't find the file, in fact the rename command doesn't say anything it just returns back to the bash prompt.
"rename .bashrc java.sh"
I can see that .bashrc exists in the /etc/profile.d directory but I just can't rename it! Am I calling the rename function correctly? What am I doing wrong?