1752637 Members
6078 Online
108788 Solutions
New Discussion юеВ

path problem

 
SOLVED
Go to solution
Indrajit Bhagat
Regular Advisor

path problem

Hi All,

This is problem faced by me.
When i set the path: # export PATH=$PATH:/opt/VRTSvcs/bin The path gets set, and all command i can execute.
Once again i logg out of the box and again login in the unix box, then once again i need to set the path. Is there any permanent way to set the path.
4 REPLIES 4
Dennis Handly
Acclaimed Contributor
Solution

Re: path problem

You put your PATH adjustments in ~/.profile so it happens for every login.
R.K. #
Honored Contributor

Re: path problem

Hi Indrajit,

Just go ahead and add same line (your command) in the end of the user's ".profile". This file will be present in the home directory of the user, its path will be like:
abc is my user.

# ll /home/abc
total 64
-r--r--r-- 1 abc root 439 Jan 22 19:37 .profile

Open and edit this file.
Now logout and login again. Every time you login, that user's .profile will be run and the export command will be run automatically.

Hope this helps.

Regds,
-R.K.
Don't fix what ain't broke
Suraj K Sankari
Honored Contributor

Re: path problem

Hi,

after login open your .profile add this line
export PATH=$PATH:/opt/VRTSvcs/bin
save it
logout
again loggin it

Suraj
Indrajit Bhagat
Regular Advisor

Re: path problem

Thanks to all..

The suggestion is working fine..