I used the following command to create a hard link to an executable:
ln `which xcrun` gcc
The link worked as expected. However, it seems I don't have the permissions to remove it.
$ rm gcc override rwxr-xr-x root/wheel compressed for gcc? y rm: gcc: Permission denied $ unlink gcc unlink: gcc: Permission denied
$ ls -l gcc -rwxr-xr-x 3 root wheel 1172 May 10 2012 gcc
I don't have
sudo access. What do I have to do to delete the hard link?