VMware Cloud Community
mprobst2002
Contributor
Contributor
Jump to solution

newby question

I want to add to 2 items to $path for when I su to root. I know enough to know I am supossed to be using sudo, and use "su -" to get to root, so I get the profile, but I want to add these directories for ovo commands

/opt/OV/bin

/opt/perf/bin

I looked in /home, but dont see a profile for root, and once I find the correct file, is it as simple as just adding "export PATH=$PATH:/opt/OV/bin;/opt/perf/bin" to the end?

Thanks

Mike

0 Kudos
1 Solution

Accepted Solutions
mcowger
Immortal
Immortal
Jump to solution

Thats exactly the right way






--Matt

--Matt VCDX #52 blog.cowger.us

View solution in original post

0 Kudos
4 Replies
mprobst2002
Contributor
Contributor
Jump to solution

added following to end of /etc/profile and it seems to be working please update me if there is a better way

PATH=$PATH:/opt/OV/bin:/opt/perf/bin

export PATH

Thanks

0 Kudos
mcowger
Immortal
Immortal
Jump to solution

Thats exactly the right way






--Matt

--Matt VCDX #52 blog.cowger.us
0 Kudos
TomHowarth
Leadership
Leadership
Jump to solution

That is as mcowger stated the correct way,

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

Tom Howarth

VMware Communities User Moderator

Blog: www.planetvm.net

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
0 Kudos
TomHowarth
Leadership
Leadership
Jump to solution

Post marked as correct

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
0 Kudos