LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Robyn Manning <rmanning@adam.com.au>
To : Daryl Pilkington <u3232@home.dialix.com>
Date: 17 May 2002 22:11:00 +0930
Re: /etc/profile
Hi
If the path statement refers to all users then put it just above the
export statement, you wont need the leading export statement in the PATH
as you've written it ie
PATH=$PATH:/opt.....
is fine.
HTH
Robyn
On Fri, 2002-05-17 at 21:51, Daryl Pilkington wrote:
> Hi,
> I've got to install DB2 v7.1 on RH7.2.
> Using the HowTo, I need to add the following lines to /etc/profile:
>
> export PATH=$PATH:/opt/IBMJava2-131/jre/bin
>
>
> Looking at my /etc/profile, it has conditional statements, so exactly
> where do I add the above line?
>
> # /etc/profile
>
> # System wide environment and startup programs, for login setup
> # Functions and aliases go in /etc/bashrc
>
>
> # Path manipulation
> if [ `id -u` = 0 ] && ! echo $PATH | /bin/grep -q "/sbin" ; then
> PATH=/sbin:$PATH
> fi
>
> if [ `id -u` = 0 ] && ! echo $PATH | /bin/grep -q "/usr/sbin" ; then
> PATH=/usr/sbin:$PATH
> fi
>
> if [ `id -u` = 0 ] && ! echo $PATH | /bin/grep -q "/usr/local/sbin" ;
> then
> PATH=/usr/local/sbin:$PATH
> fi
>
> if ! echo $PATH | /bin/grep -q "/usr/X11R6/bin" ; then
> PATH="$PATH:/usr/X11R6/bin"
> fi
>
> # No core files by default
> ulimit -S -c 0 > /dev/null 2>&1
>
> USER=`id -un`
> LOGNAME=$USER
> MAIL="/var/spool/mail/$USER"
>
> HOSTNAME=`/bin/hostname`
> HISTSIZE=1000
>
> if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
> INPUTRC=/etc/inputrc
> fi
>
> export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
>
> for i in /etc/profile.d/*.sh ; do
> if [ -r $i ]; then
> . $i
> fi
> done
>
> unset i
>
> Regards,
>
> Daryl Pilkington
>
> //// The PC-Therapist, Business Computing Integration
> O<O AUSTRALIA
> \_/
> <O> OS/2 Warp, Redhat Linux, DB2
> IBM Certified Systems Expert
>
> email: darylp@pc-therapist.com.au
> Mob: 0425-251-300
>
> --
> LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
> To unsubscribe from the LinuxSA list:
> mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
>
>
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page