How can I remove a hard link to my home directory in a subdirectory?
I'm not sure how this happened, but I've got a hard link to my home directory in a subdirectory of my home directory. This is not healthy - it's hard coded to be avoided in the Linux kernel. I've confirmed that the hard link is there:
MacBookPro:prune tim$ stat ~
16777220 1036638 drwxr-xr-x 213 tim staff 0 6816 "Sep 7 22:17:12 2025" "Sep 7 22:17:12 2025" "Sep 7 22:17:12 2025" "Sep 6 15:27:40 2018" 4096 0 0 /Users/tim
MacBookPro:prune tim$ pwd
/Users/tim/Projects/prune
I don't know what happened to cause this, but I'd like to remove it
`rm` doesn't work.
pwd
/Users/tim/Projects/prune
MacBookPro:prune tim$ rm ~
rm: /Users/tim: is a directory
MacBook Pro 15″, macOS 10.15