- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: Setting Path
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 08:31 AM
тАО02-24-2004 08:31 AM
Solved! Go to Solution.
- Tags:
- PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 09:07 AM
тАО02-24-2004 09:07 AM
SolutionPATH=$PATH:/usr/local/bin
or
PATH=/usr/local/bin:$PATH
or add /usr/local/bin to your .profile
in the line where you define PATH.
or if your a csh addict
set path=(. /bin /usr/ucb /bin /usr/bin /usr/bin/X11 /usr/local/bin /usr/bin/mh /usr/sbin $HOME)
Such line should go into your .login
Johan.
_JB_
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 09:41 AM
тАО02-24-2004 09:41 AM
Re: Setting Path
if [ ! "$DT" ]; then
stty dec
tset -I -Q
fi
PS1="`hostname`> "
MAIL=/usr/spool/mail/$USER
echo $PATH | /bin/grep -q "$HOME/bin" ||
{
PATH=$HOME/bin:${PATH:-/usr/bin:.}
export PATH
}
Could I just add the lines to the bottom or does it have to go within the brackets?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 04:34 PM
тАО02-24-2004 04:34 PM
Re: Setting Path
PATH=$HOME/bin:${PATH}:/usr/bin:.:/usr/local/bin
export PATH
}
Confirm the set path after logging again or issue the command .profile.
Use echo $PATH to check if the PATH has been set.
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 05:31 PM
тАО02-24-2004 05:31 PM
Re: Setting Path
IF you put it in the brackets, it will only take effect if you don't have $HOME in your path already.
Personally, if you can, I'd comment all that out and just put
export PATH=/usr/local/bin:$PATH at the end of your .profile
As advised above, having done your changes, check it by going ". ./.profile" and then "echo $PATH". Juts make sure it looks right before logging out and in again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 11:49 PM
тАО02-24-2004 11:49 PM