chmod: cannot operate on dangling symlink '/usr/bin/something'


This happens when you create a symlink without a full path. The remove this error - when creating symbolic link, specify the full path


sudo rm -rf /usr/bin/something
sudo ln -s /home/sambhu/phalcon-devtools/something.php  /usr/bin/something


Done!