ln: cannot remove `/path/to/the/directory': No such file or directory

Solution Unverified - Updated -

Issue

  • The following error is encountered when creating the symlink:
# ln -sf /a/b/c /d/e/f
ln: creating symbolic link `/d/e/f': No such file or directory
  • Under what situation ln command will output like above?

Environment

  • Red Hat Enterprise Linux
  • coreutils

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content