I am currently trying to execute a script on CentOS.That runs every time a terminal is opened by any user. I tried placing the script in /etc/profile.d and editing ~/.bashrc. Didn't work properly. It only executes the script for only that particular user (root in my case) and not all users? What am I doing wrong here?
Script not running on terminal startup
bash