We make very careful considerations about the interface and operation of the GNU coreutils, but unfortunately due to backwards compatibility reasons, some behaviours or defaults of these utilities can be confusing.
This information will continue to be updated and overlaps somewhat with the coreutils FAQ, with this list focusing on less frequent potential issues.
Good tips and reminders for those who don't work mostly with a CLI (Command Line Interface).
[What has been YOUR biggest CLI gotcha? -Ed.]
(Score: 3, Informative) by TheRaven on Wednesday December 02 2015, @07:02PM
Hard links are usually disallowed to prevent cycles. Without hard linked directories, you can do a depth-first search of a filesystem and be guaranteed to terminate. With them, tools like find become a lot more complicated. Symlinks are fine, because they're distinct from normal files (hard links aren't in a traditional UNIX filesystem: there's no notion of the canonical file and the link with a hard link, both paths are equally canonical), but hard links mean that you have to track the inode for every directory that you visit and check every other one against it to prevent infinite recursion.
HFS+ does permit hard links on directories, but requires a special permission to create them. This is used by Time Machine to create hard links that point to older backups for unmodified subtrees.
sudo mod me up