Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it safe to move a binary from /sbin to /usr/sbin. When I installed ZFS for linux it placed the binaries in /sbin, but when I type zpool list it says the binary is it not in /usr/sbin. Is it okay to move them? Is there something else I can do?

share|improve this question
up vote 4 down vote accepted

Sure, it's safe, as long as you don't have any programs that use the binary from /sbin (often they just search $PATH), but to be save, you'll want to symlink it:

mv /sbin/<your binary> /usr/sbin/
ln -s /usr/sbin/<your binary> /sbin/
share|improve this answer
Isn't /sbin supposed to be included in $PATH by default? – ianc1215 Aug 25 '11 at 3:17
It should be. I'm talking about programs that might hard code it in. – digitxp Aug 25 '11 at 3:50
@Solignis: All sbin directories are supposed to be in $PATH, but only for root. – grawity Aug 25 '11 at 10:20

It's safe, but you may confuse your package manager. Can can also just use a symlink from /usr/sbin to /sbin.

share|improve this answer
sounds like symlinks are the best way to do it. Works for me – ianc1215 Aug 25 '11 at 3:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.