-1

I recently tried to move an executable to somewhere as part of the PATH and I accidentally renamed it and put it as /etc/bin instead of inside /etc/bin :

sudo mv exec /etc/bin

Now my /etc/bin is the executable and I am not sure if i just overridden a folder with an executable or not ? Could that even happen and if so, what did I lose from the /etc/bin

3

1 Answer 1

3

No. bin directory has nothing to do in the root of /etc/. The advice of the FSH would be to have bin in the root (/bin) and in /usr/ (same goes for sbin).

All you did was move the file exec to /etc/ and name it bin.

Reversal:

cd /etc/
mv bin /org/dir/exec

where /org/dir is where you had exec before the `mv.

2
  • thanks great to know i didn't lose access to anything. Commented Jun 8 at 15:38
  • cd /etc/binwill probably not work as that is a file... ;-)
    – Hannu
    Commented Jun 8 at 19:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .