Stat returns no such file or directory on symlink

Solution Verified - Updated -

Issue

  • Trying to stat a symlink shows the following:
[root@host]# stat -L /usr/share/terminfo/v/vt100
stat: cannot stat `/usr/share/terminfo/v/vt100': No such file or directory
  • ls -l can see the file as a symlink
[root@host]# ll /usr/share/terminfo/v/vt100
lrwxrwxrwx. 1 root root 32 Oct 12 13:24 /usr/share/terminfo/v/vt100 -> ../../../../lib/terminfo/v/vt100

Environment

  • Red Hat Enterprise Linux 4
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

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.