I purchased a new mac and want to install some tools on it but when I try to install anything, I am getting error as bin is not a folder . I am on 11.1 and have not updated it to 11.4 yet.
Well why /bin inside my path /usr/local/ is a file not folder, isn't it supposed to be a folder???
I tried moving current /bin which is as a file to another location and created a folder as /bin inside /usr/local/ path.
But this made my mac not working properly, so I had to reinstall Macos.
I am very confused over this and because of this problem I am unable to install anything in my mac, someone please help.
$ ls -dl /usr/local/bin -rwxr-xr-x@ 1 username wheel xxxxxxxx Sep 26 06:36 /usr/local/bin
Here is the output for " ls -ledO /usr/local/bin /usr/local "
drwxr-xr-x 16 root wheel sunlnk 512 Dec 27 20:57 /usr/local -rwxr-xr-x@ 1 bala wheel - 82560592 Sep 26 06:36 /usr/local/bin
my bin is showing as exec file like this