1
0
Fork 0
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:
Waldir Pimenta 2016-08-08 08:06:59 +01:00 committed by Leandro Ostera
parent 0d2e70625e
commit 8127104cce
2 changed files with 8 additions and 0 deletions

View file

@ -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`

View file

@ -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`