[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: definition of global variables



These look like environment variables. The FILES section of the man pages for 'bash' and 'csh' both refer to 'global' initialization files found in /etc: /etc/profile for 'bash'; and two files: /etc/csh.cshrc and /etc/csh.login for 'csh'.

IIRC, these are also sourced by all the related shells, such as ksh using /etc/profile and tcsh using the the 'csh' files.

Bob

Marco Calviani wrote:
Hi list,
   i would like to define global variables for all the user of a
Debian system, for example the following:

CERN=/usr/local/cernlib
CERN_LEVEL=2005
CERN_ROOT=/usr/local/cernlib/2005
PATH=/usr/local/cernlib/2005/bin
LDPATH=/usr/local/cernlib/lib

Where do i have to put them? I was thinking of ld.so.conf and then run
ldconfig. Is it the right choice? What about /etc/environment ?

Regards,
MC





Reply to: