- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to set the envionment variables 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
Forums
Discussions
Discussions
Discussions
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
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
05-28-2002 05:49 PM
05-28-2002 05:49 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2002 06:02 PM
05-28-2002 06:02 PM
Re: How to set the envionment variables PATH?
For example :-
PATH=/usr/bin:/bin:/usr/bin/X11
PATH=$PATH:/usr/apps/bin:/usr/apps/bin/X11
Just edit appropriately.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2002 06:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 03:24 AM
05-29-2002 03:24 AM
Re: How to set the envionment variables PATH?
export PATH=`cat /etc/PATH`
export MANPATH=`cat /etc/MANPATH`
Set up /etc/PATH like so:
yukon(166)root# cat /etc/PATH
/opt/informix/bin:/opt/informix/local/bin:/opt/fourgen/bin:/opt/softbench/bin:/u
sr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/sbin:/opt/ansic/bin:/opt/nettladm/bin:
/opt/cobol/bin:/opt/langtools/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:
/opt/fcms/bin:/opt/upgrade/bin:/opt/imake/bin:/opt/hpxt/enware/bin:/opt/REEL/bin
:/opt/dtcmgr/sbin:/opt/pd/bin:/opt/fortran/bin:/opt/perf/bin:/bin:/opt/ignite/bi
n:/opt/lrom/bin:/opt/hparray/bin:/opt/java1.2/bin:/opt/java/bin:/opt/groff/bin:/
opt/fantasia/bin:/opt/fantasia:/opt/grafsman/bin:/opt/Acrobat/bin:/opt/gnu/bin:/
opt/fortran90/bin:/opt/fortran90/contrib/bin:/opt/omni/bin:/opt/dynatext/bin:/op
t/OV/bin/OpC:/opt/resmon/bin:/opt/pred/bin:/opt/sas82:/bin/posix:/usr/local/bin:
/opt/cobol:/apps/hols/bin/shared:/usr/sbin/stm/uut/bin/progs
Only an example - put whatever you need in /etc/PATH.
Hope this helps,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 03:42 AM
05-29-2002 03:42 AM
Re: How to set the envionment variables PATH?
If you want to add a man path for an aplication man, edit /etc/manpath
Check the sintaxis on these files to see how add the entries.
I hope this help you.
Juanma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 04:17 AM
05-29-2002 04:17 AM
Re: How to set the envionment variables PATH?
The default /etc/profile utilizes /etc/PATH. Make changes there for those who use Bourne shell and it's derivitaves (K, Posix).
/etc/csh.login needs to be modified if you have csh users.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 05:01 AM
05-29-2002 05:01 AM
Re: How to set the envionment variables PATH?
A couple of notes:
- /etc/PATH is one long line
- Two adjacent :: chars or :.: will include the current working directory, a security risk for all users, expecially root
- Excessively long /etc/PATH strings means excessively long delays searching for a match, the possibility of duplicate paths (and the requsite search again), and the possibility of mistakes going unnoticed.
- Use aliases for specific commands, or an env variable such as $ORAHOME or $IFMXBIN to 'remember' long pathnames.
- Good script writing will temporarily establish a local $PATH inside the script with just a few directories to prevent Trojan Horses from running.
Bill Hassell, sysadmin