[SLUG] $PATH
Martin Webb
martin at webb.lcbroadband.co.uk
Tue May 2 16:03:00 BST 2006
Stephen O'Neill wrote:
> Martin Webb wrote:
>> In Fedora Core 5 / KDE desktop, several programs would not at first
>> install, because /sbin was not in root's $PATH (needed stuff like
>> ldconfig, which is in /sbin). I can change and export PATH, but don't
>> know how to make that change permanent. I.e., how do you make
>> PATH=$PATH:/sbin permanent/load up on boot?
>
> Either put it in:
>
> ~/.bash_profile
>
> Or, from memory put a .sh script into:
>
> /etc/profile.d/
>
> The latter will be run for all users, the former just for the root user.
Thanks, Steve,
/etc/profile.d is a directory, containing:
> -rwxr-xr-x 1 root root 764 Feb 11 06:43 colorls.csh
> -rwxr-xr-x 1 root root 713 Feb 11 06:43 colorls.sh
> -rwxr-xr-x 1 root root 192 Mar 7 20:16 glib2.csh
> -rwxr-xr-x 1 root root 192 Mar 7 20:16 glib2.sh
> -rwxr-xr-x 1 root root 58 Mar 2 21:42 gnome-ssh-askpass.csh
> -rwxr-xr-x 1 root root 70 Mar 2 21:42 gnome-ssh-askpass.sh
> -rwxr-xr-x 1 root root 78 Feb 21 15:53 kde.csh
> -rwxr-xr-x 1 root root 74 Feb 21 15:53 kde.sh
> -rwxr-xr-x 1 root root 218 Feb 11 23:35 krb5.csh
> -rwxr-xr-x 1 root root 229 Feb 11 23:35 krb5.sh
> -rwxr-xr-x 1 root root 2182 Mar 14 23:16 lang.csh
> -rwxr-xr-x 1 root root 2509 Mar 14 23:16 lang.sh
> -rwxr-xr-x 1 root root 122 Feb 15 10:58 less.csh
> -rwxr-xr-x 1 root root 108 Feb 15 10:58 less.sh
> -rwxr-xr-x 1 root root 72 Mar 9 14:44 vim.csh
> -rwxr-xr-x 1 root root 246 Mar 9 14:44 vim.sh
> -rwxr-xr-x 1 root root 170 Feb 12 18:55 which-2.sh
Explored .bash_profile for root and for home directory, and can see how
this works.
Maybe a meeting, maybe an internet reference, would be good, one of
these days, mentioning the most important initialisation files, there
location, and what they do. A half hour entitled: "How GPU Linux boots
up, and the files it uses". Fascinating!
Thank you.
Martin
More information about the Scarborough
mailing list