How do I find out all other hard links to the /etc/passwd in /backups/ directory? How can find all hard links to a given file using Linux or Unix command line option? You can use the find command on Linux, Apple MacOS, FreeBSD and other operating systems to find out all hard links. A hard link is nothing but the specific location of physical data.