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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.