Hacker News new | ask | show | jobs
by froh 581 days ago
Hi bhoot,

you have a section on "cp", where you note plain "cp" copies the contents of the linked-to file.

there also is an option "cp --archive" which copies the symlink as such.

also someone else pointed out you may want to add

    man 7 inode
    man 7 symlink
    man 7 path_resolution
1 comments

There is also "cp -P".

My purpose for the I/O sub-section was only to have a convenient logic of memorising how I/O operations work on soft links by default. Memorising techniques don't really gun for technical accuracy. However, I have struck it out because the logic is also blatantly inaccurate and has been rightly called out here.