You are not logged in.

#1 2010-08-23 04:14:50

prakashkumar41
Member
Registered: 2010-08-23
Posts: 2

adding PATH

hi brothers,
here i have problem with PATH command. I m using RHEL5 .Here USERADD command is located at /usr/sbin.If i want to use this command i should have added the export PATH=$PATH:/usr/sbin:/usr/local/bin. If once my system is restarted that PATH is gone.I have tried to adding that path permanently by editing the /etc/profile and /.bash_profile.But nothing was work. Can anybody  give me the solution for this. Thanks in advance.

regards,
Prakash

Offline

#2 2010-08-23 04:20:20

itsbrad212
Member
From: Chicago, USA
Registered: 2010-01-23
Posts: 1,848

Re: adding PATH

Add it to your ~/.bashrc. smile

Offline

#3 2010-08-23 04:25:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,433

Re: adding PATH

Things you export go into .bashrc (if you use bash):

export BROWSER="/usr/bin/firefox"
export EDITOR="/usr/bin/vim"
export LC_MESSAGES="C"

Offline

#4 2010-08-24 04:40:27

prakashkumar41
Member
Registered: 2010-08-23
Posts: 2

Re: adding PATH

thanks bro,
now i got this.....

Offline

#5 2010-08-24 13:19:32

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,079

Re: adding PATH

please mark your threads as solved once your questions have been answered. Edit the first post and prefix the subject line with [SOLVED]


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB