1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 05:06:01 +02:00
tldr/pages/common/fd.md

24 lines
433 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-20 21:12:59 -05:00
2019-01-11 11:06:58 +01:00
- Find files matching the given pattern in the current directory:
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
2019-01-11 11:06:58 +01:00
- Find files that begin with "foo":
2017-10-20 21:12:59 -05:00
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
2019-01-11 11:06:58 +01:00
`fd --extension {{txt}}`
2017-10-20 21:12:59 -05:00
2019-01-11 11:06:58 +01:00
- Find files in a specific directory:
2017-10-20 21:12:59 -05:00
2017-10-20 21:24:07 -05:00
`fd {{pattern}} {{path/to/dir}}`
2019-01-11 11:06:58 +01:00
- Include ignored and hidden files in the search:
2017-10-20 21:24:07 -05:00
`fd --hidden --no-ignore {{pattern}}`