1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/fd.md

24 lines
434 B
Markdown
Raw Normal View History

2017-10-20 21:12:59 -05:00
# fd
> A simple, fast and user-friendly alternative to find.
2017-10-22 21:40:39 -05:00
- Find files under current directory that match a pattern:
2017-10-20 21:12:59 -05:00
2017-10-20 21:24:07 -05:00
`fd {{pattern}}`
2017-10-20 21:12:59 -05:00
- Find files that begin with foo:
2017-10-20 21:24:07 -05:00
`fd {{'^foo'}}`
2017-10-20 21:12:59 -05:00
2017-10-20 21:24:07 -05:00
- Find files with a specific extension:
2017-10-20 21:12:59 -05:00
2017-10-20 21:24:07 -05:00
`fd --extension {{.ext}} {{pattern}}`
2017-10-20 21:12:59 -05:00
2017-10-22 21:40:39 -05:00
- Find files under a specific directory:
2017-10-20 21:12:59 -05:00
2017-10-20 21:24:07 -05:00
`fd {{pattern}} {{path/to/dir}}`
- Include ignored and hidden files in search:
`fd --hidden --no-ignore {{pattern}}`