Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linkgrep

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.

Features

  • Shows file name, inode, link count, file type and softlinks/hardlinks or target file location.

Build

gcc -g main.c filetype.c link_probe.c fs_traverse.c -o linkgrep

Usage

./linkgrep target_file_path directory_to_find_links Eg: ./linkgrep /bin/gcc /bin

Notes

For large filesystem scans, the default open-file limit may be insifficient. If Linkgrep reports "Too many open files", try increasing the limit before running it (using the ulimit command).

About

A Linux CLI utility to easily find softlinks, hardlinks and/or target file of a particular file in any location in the file system.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages