fd
Simple, fast and user-friendly alternative to find (https://github.com/sharkdp/fd)
--- Basic Search ---
To search for files matching a pattern (regex by default):
To search in a specific directory
To search for a specific file extension
To search using a glob pattern
--- Hidden & Ignored Files ---
To include hidden files:
To include files listed in .gitignore
To include both hidden and ignored files
--- Filtering ---
To search only for files:
To search only for directories
To search only for symlinks
To exclude specific files or directories
fd -E <exclude_pattern> <pattern>
To filter by file size (e.g. larger than 1MB)
To filter by modification time (e.g. modified in last 7 days)
fd --changed-within 7d <pattern>
--- Output ---
To print absolute paths:
fd --absolute-path <pattern>
To limit search depth
fd --max-depth <n> <pattern>
To list all files recursively (no pattern)
--- Executing Commands ---
To run a command on each result:
fd <pattern> -x <command> {}
To run a command on all results at once
fd <pattern> -X <command> {}
To delete all matching files (use with caution)