Kangry.com [insert cool graphic here]
home | Topics | Logout | Search | Contact | ?? Kangry ?? | Bandwitdh
Topics:
DVR
nvrec
Mplayer
Links
Misc
Commands
Humor

Name

Password

New user

uploaded files
(linux_command_line)-> (Parent)->bash: hdparm: command not found fedora4 submited by Russell Thu 09 Mar 06
Edited Tue 22 May 12
Web kangry.com
If you are getting:
$ hdparm
-bash: dhparm: command not found
It is probably because hdparm is not in your default path. On my system hdparm is at /sbin/hdparm
You can either run it manualy useing that path:
/sbin/hdparm
or use the trick I use, which is to switch to root using the -l option. This give's you "root's" default path, not a user's path which is what you probably had when you first logged in.:
su -l
Password:
If hdparm isn't in /sbin on your system, ( or some other file is not found) you can always use the whereis command to find it.
# whereis hdparm
hdparm: /sbin/hdparm /usr/share/man/man8/hdparm.8.gz
Several commands that I use are in /usr/sbin/ instead of /usr/bin

I don't exactly know what the logic of what goes where is. Clearly some things are ment to be restricted to root only, while others are more generic and go in /usr/bin. I guess part of the logic comes from systems where /sbin and /usr are different partitions. Idealy you might be able to mount /sbin on a damaged system and use the tools in there to fix something. In practice, all the machines I use have /sbin and /usr on the same filesystem, so there is no advatage to having these be different paths. I guess other commands might take a microseccond less because it doesn't need to search past unused administrative commands. But clearly reduceing the filecount in /usr/bin has not been a priority for years.

keywords:
bash: hdparm: command not found fedora4


Replys:
solution (LINUX7802)

Add comment or question...:
Subject:
Submited by: NOT email address. Leave blank for anonymous    (Spam Policy)

Enter Text: (text must match image for posting)




This file (the script that presented the data, not the data itself) , last modified Wednesday 03rd of December 2014 09:40:39 AM
your client: CCBot/2.0 (http://commoncrawl.org/faq/)
current time: Friday 15th of December 2017 04:30:52 PM