GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Path variable
Operating System - HP-UX
1846634
Members
1769
Online
110256
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
10-12-2000 01:01 PM
10-12-2000 01:01 PM
Path variable
Hi, I need a put path variable for all users, the eg: PATH=:/usr/bin:/usr/ccs/bin:/usr/contrib/bin (in the /etc/profile)
I need put before /usr/contrib/bin, /opt/perl5/bin and then the line is:
PATH=:/usr/bin:/usr/ccs/bin:/opt/perl5/bin:/usr/contrib/bin
but I execute the command of /opt/perl5/bin in shell, the result is :
the command executed is in /usr/contrib/bin
regards.
MDF
I need put before /usr/contrib/bin, /opt/perl5/bin and then the line is:
PATH=:/usr/bin:/usr/ccs/bin:/opt/perl5/bin:/usr/contrib/bin
but I execute the command of /opt/perl5/bin in shell, the result is :
the command executed is in /usr/contrib/bin
regards.
MDF
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 01:06 PM
10-12-2000 01:06 PM
Re: Path variable
Have you logged off (or resourced teh /etc/profile) in between editing and testing?
If not, that is almost certainly the problem.
An easy way to test what binary will be executed under any given environment is with the type command (or whence). ex:
# type ls
ls is a tracked alias for /usr/bin/ls
Otherwise, your logic is correct. The PATH variale will be searched from beginning to end. Placing the path you want accessed earlier in the assignment should make it the path accessed.
If not, that is almost certainly the problem.
An easy way to test what binary will be executed under any given environment is with the type command (or whence). ex:
# type ls
ls is a tracked alias for /usr/bin/ls
Otherwise, your logic is correct. The PATH variale will be searched from beginning to end. Placing the path you want accessed earlier in the assignment should make it the path accessed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2000 11:15 PM
10-12-2000 11:15 PM
Re: Path variable
Hi,
for global setting of the PATH variable edit the file /etc/PATH
Regards
for global setting of the PATH variable edit the file /etc/PATH
Regards
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP