HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- commands help
Operating System - HP-UX
1834247
Members
2660
Online
110066
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
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
Go to solution
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
04-29-2008 12:29 PM
04-29-2008 12:29 PM
hello experts,
i one of my servers i am facing somewhat strange problem, when i run any command,say in this case..
# sam ...i got this message
sh: sam: not found.
then i used whereis sam..
and then i wrote..
/usr/sbin/sam..and it worked fine..i want that just by typing sam i should be able to get it..
please tell me how to achieve it
i one of my servers i am facing somewhat strange problem, when i run any command,say in this case..
# sam ...i got this message
sh: sam: not found.
then i used whereis sam..
and then i wrote..
/usr/sbin/sam..and it worked fine..i want that just by typing sam i should be able to get it..
please tell me how to achieve it
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2008 12:38 PM
04-29-2008 12:38 PM
Solution
You obviously do not have /usr/sbin in your PATH. One of the first lines in root's .profile by default is:
PATH=/usr/sbin:$PATH:/sbin:/home/root
I'd say you're not using the default .profile or someone removed or commented this line frm teh default... or set the PATH to something else that does not include /usr/sbin further in the file.
PATH=/usr/sbin:$PATH:/sbin:/home/root
I'd say you're not using the default .profile or someone removed or commented this line frm teh default... or set the PATH to something else that does not include /usr/sbin further in the file.
--
Jeff Traigle
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2008 01:33 PM
04-29-2008 01:33 PM
Re: commands help
thanx jeff. i created the file specified..
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 2025 Hewlett Packard Enterprise Development LP