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
/etc/
folder and its sub-folders are exclusively for Editable Text Configuration files. Putting abin
folder and executable files in it goes against Linux system files and folder standards. See this Q&A for where to keep your personal executable files.