[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hard link questions



On Sun, 8 Jun 2003, Allen Curtis wrote:

> I have a couple questions about hard links.
> 
> 1. Is there an easy way to determine if a file is actually a hard link? (or
> locate files with multiple references?)

The inode of the file on every hard link to the same file will be the same
use ls -i to get the inode number.
then find -inode to get the other link(s)
 
> 2. What are the circumstances where symbolic links do not work? I love
> symbolic links but some utilities such as "tftp" doesn't follow the link.
> This is usually frustrating since it takes time to determine what the
> problem since most things work. (even NFS exported mounts)

Either the file that the link is to does not exist
Or the program has used lstat to check if its a link and
then that would be an application specific program with
why the link doesnt work.

	James

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/