views:

24

answers:

2

How can I add my own directory to PATH without editing my local profile's .bash_profile or .bashrc?

I need to make the scripts in the directory universally accessible from any user that is logged in.

+1  A: 

You could add the following in /etc/bashrc

export PATH="$PATH:/your/directory"
Raghuram
Thanks. Small correction: export PATH=$PATH:/your/directory
Geuis
+1  A: 

You should modify the file /etc/environment.

enzotib