Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No, `linkname` is correct. It’s the name of the link in the example. So the command `cp <file> linkname/` will give you an error if the taget is gone.


No, `dirname` is correct. The goal of `ln -s dirname/ linkname` is that even if you accidentally do `cp file linkname` (note without slash) when dirname is gone, it will error out. Without the trailing slash in the ln command, a file (instead of directory) named dirname will be created.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: