Stories
Slash Boxes
Comments

SoylentNews is people

posted by martyb on Tuesday December 01 2015, @07:50PM   Printer-friendly
from the features-are-beneficial-bugs dept.

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.]

Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 3, Informative) by TheRaven on Wednesday December 02 2015, @07:02PM

    by TheRaven (270) on Wednesday December 02 2015, @07:02PM (#270845) Journal

    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
    Starting Score:    1  point
    Moderation   +1  
       Informative=1, Total=1
    Extra 'Informative' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   3