mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 17:46:02 +02:00
osx/locate.md: add exact filename match (#993)
* osx/locate.md: add exact filename match * linux/locate.md: add exact filename match
This commit is contained in:
parent
0d2e70625e
commit
8127104cce
2 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,10 @@
|
|||
|
||||
`locate {{pattern}}`
|
||||
|
||||
- Look for a file by its exact filename (a pattern containing no globbing characters is interpreted as `*pattern*`):
|
||||
|
||||
`locate */{{filename}}`
|
||||
|
||||
- Recompute the database. You need to do it if you want to find recently added files:
|
||||
|
||||
`sudo updatedb`
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
|
||||
`locate {{pattern}}`
|
||||
|
||||
- Look for a file by its exact filename (a pattern containing no globbing characters is interpreted as `*pattern*`):
|
||||
|
||||
`locate */{{filename}}`
|
||||
|
||||
- Recompute the database. You need to do it if you want to find recently added files:
|
||||
|
||||
`sudo /usr/libexec/locate.updatedb`
|
||||
|
|
Loading…
Add table
Reference in a new issue