- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- command not found --Help me please!
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
01-14-2004 02:07 AM
01-14-2004 02:07 AM
Example:
#ioscan -fnkCdisk
/sbin/sh : ioscan not found.
#dmesg
/sbin/sh : dmesg not found
#shutdown
...........................
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 02:10 AM
01-14-2004 02:10 AM
Solutionexport PATH=/usr/sbin:$PATH
or you could just log out and log back in again - going through your login profile sequence should reset the path.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 02:10 AM
01-14-2004 02:10 AM
Re: command not found --Help me please!
Check your PATH - echo $PATH
Appears you're not pathed through /usr/sbin where all these commands reside.
Add it with - export PATH=/usr/sbin:$PATH
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 02:11 AM
01-14-2004 02:11 AM
Re: command not found --Help me please!
Try the following:
# echo $PATH
See what is there.
# export PATH=/usr/sbin:$PATH
To add /usr/sbin back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 02:13 AM
01-14-2004 02:13 AM
Re: command not found --Help me please!
do this and try
#PATH=$PATH:/usr/sbin:/usr/bin;export PATH
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 02:14 AM
01-14-2004 02:14 AM
Re: command not found --Help me please!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 02:32 AM
01-14-2004 02:32 AM
Re: command not found --Help me please!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 02:55 AM
01-14-2004 02:55 AM
Re: command not found --Help me please!
A quick su - myusername would read it again, then echo $PATH to see if it's different.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 04:36 AM
01-14-2004 04:36 AM
Re: command not found --Help me please!
echo $PATH
If /usr/sbin is missing then add it:
export PATH=/usr/sbin:$PATH
if /usr/sbin is in your path then go look to see if those programs exist.
ls /usr/sbin | more
If they don't you can search the system for them:
find / -name "ioscan"
find / -name "dmesg"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 12:53 PM
01-14-2004 12:53 PM
Re: command not found --Help me please!
/usr/sbin
# ll |grep dmesg
lrwxr-xr-x 1 root root 11 Nov 22 2002 dmesg -> /sbin/dmesg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 12:58 PM
01-14-2004 12:58 PM
Re: command not found --Help me please!
# echo $PATH
# ls -l /sbin/dmesg
# ls -l /sbin/ioscan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 01:03 PM
01-14-2004 01:03 PM
Re: command not found --Help me please!
/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/b
in:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/b
in:/opt/networker/bin:/opt/OV/bin/OpC:/opt/OV/bin:/usr/sbin:/usr/sbin/:/opt/java
1.3/bin
# ls -l /sbin/dmesg
/sbin/dmesg not found
# ls -l /sbin
total 1360
-r-xr-xr-x 1 bin bin 282624 Feb 6 1998 init
dr-xr-xr-x 2 root sys 96 Jan 12 13:02 init.d
-r-xr-xr-x 1 bin bin 413696 Apr 27 1999 sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 01:19 PM
01-14-2004 01:19 PM
Re: command not found --Help me please!
Somebody didn't fumble an "rm -rf *" command, did they?
(Happens not often, but more often than some would admit)
Just a thought. I'd look to recent backups and restore.
Worst case, grab what you see missing, from another machine.
Still... you may have other things missing that you
won't spot right away. Restore it all if you have the backups.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 01:23 PM
01-14-2004 01:23 PM
Re: command not found --Help me please!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 01:47 PM
01-14-2004 01:47 PM
Re: command not found --Help me please!
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 03:45 PM
01-14-2004 03:45 PM
Re: command not found --Help me please!
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 05:53 PM
01-14-2004 05:53 PM
Re: command not found --Help me please!
how about i copy the /sbin from another machine?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 06:13 PM
01-14-2004 06:13 PM
Re: command not found --Help me please!
use tar or cpio to preserve owner, group and access rights
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 10:18 PM
01-14-2004 10:18 PM
Re: command not found --Help me please!
Pete
Pete