ln: hard link not allowed for directory



Symptom

You want to create a hard link from/to a directory but getting an error as below,

# ln test/ test2/
ln: `test/': hard link not allowed for directory

Solution

Hard link is not allowed for directories pointing. You need to use symbolic/soft link instead. Please refer to http://itsiti.com/ln-make-links-between-files-creating-hard-soft-links-steps for steps to create symbolic/soft link for directories.

Related posts

Force Stop a VNC Server Session in UNIX & Linux
chage: Change User Password Expiry Information in Linux
Rename a Specific Word in Filenames
Command to Delete Soft Link or Hard Link

Any Comment?

© 2014 ITsiti. All Rights Reserved
Powered by KEEM