-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

David DE
  • 2,316

1 Answers1

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.

Rinzwind
  • 309,379