Search
⌘K

Design a Linux Find Command API

Design an API service that replicates the Linux 'find' command, allowing users to search files across directories based on criteria like size, format, and name. The system should support filters like "files >5MB" or "all XML files" through a clean, extensible interface.

Asked at:

Amazon

Amazon


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid February, 2026

Amazon

Amazon

Mid-level

I was asked to implement a low-level design for a Linux-style file search (for example, finding all files larger than 1 MB or all files with a .xml extension). The main emphasis was on designing clean, extensible classes that make it easy to add new search types and parameters, rather than on heavily optimizing the file traversal algorithm.

Early September, 2025

Amazon

Amazon

Junior

Mid August, 2025

Amazon

Amazon

Mid-level

Comments

Your account is free and you can post anonymously if you choose.