I am a somewhat newbie to Unix. I recently started a bash tutorial where I created a hello world bash script like this:
#!/bin/bash
echo 'Hello World!'
then, I moved it into /usr/local/bin using this command:
sudo mv hello.sh /usr/local/bin
now /bin under /usr/local is no longer a directory, but a file, and when using ls -l on it, I get this output:
MacBook-Pro-de-Omar:local omarnavarro$ ls
bin
MacBook-Pro-de-Omar:local omarnavarro$ ls -l
total 8
-rwxr-xr-x 1 omarnavarro staff 32 Apr 11 19:27 bin
MacBook-Pro-de-Omar:local omarnavarro$ cat bin
#!/bin/bash
echo 'Hello world!'
I understand that /usr/local/bin is part of the $PATH, and so I believe there must have been lots of commands in there. Will this affect me much? how can I restore the commands that previously lived in /usr/local/bin when it was a directory. I can't believe I screwed up so badly!