Stat returns no such file or directory on symlink
Issue
- Trying to
statasymlinkshows 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 -lcan see the file as asymlink
[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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
