ln: hard link not allowed for directory

Share this article :


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


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

Set User to Auto Log Off in UNIX & Linux
scp: Secure Copy (Remote File Copy Program)
uptime: How Long the System has been Running
UNIX & Linux: /etc/passwd File
© 2017 ITsiti. All Rights Reserved
Powered by KEEM