A Linux command-line utility written in C for exploring file relationships. It can locate symbolic links and hard links, trace back to their target files and show links associated with a given file.
- Shows file name, inode, link count, file type and softlinks/hardlinks or target file location.
gcc -g main.c filetype.c link_probe.c fs_traverse.c -o linkgrep
./linkgrep -f target_file_path directory_to_find_links Eg: ./linkgrep -f /bin/gcc /bin
./linkgrep -l target_softlink Eg: ./linkgrep -l /sbin/init