Bfs: A breadth-first version of the Unix find command
13 days ago
- #command-line
- #UNIX
- #file-search
- bfs is a breadth-first variant of the UNIX find command, offering faster file searches by exploring directories from shallowest to deepest.
- It maintains compatibility with many versions of find, including GNU find, but is designed to be more user-friendly and less strict about argument order.
- bfs provides helpful error messages, including suggestions for typos and warnings about ignored expressions.
- It introduces new options like -exclude for skipping subtrees and -nohidden for ignoring hidden files, simplifying common tasks compared to traditional find commands.
- bfs is available for various operating systems through package managers like apt, brew, and pkg, and can also be built from source with optional dependencies for extended features.
- Building bfs requires a C compiler, GNU make, and Bash, with additional recommended libraries for full functionality. The process involves configuration, compilation, and optional global installation.