mirror of https://github.com/CrimsonTome/tldr.git
osx/locate.md: add exact filename match (#993)
* osx/locate.md: add exact filename match * linux/locate.md: add exact filename matchwaldyrious/alt-syntax
parent
0d2e70625e
commit
8127104cce
|
@ -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…
Reference in New Issue