osx/locate.md: add exact filename match (#993)

* osx/locate.md: add exact filename match

* linux/locate.md: add exact filename match
waldyrious/alt-syntax
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`