tldr/pages/common/fd.md

24 lines
434 B
Markdown
Raw Normal View History

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