diff --git a/pages/linux/locate.md b/pages/linux/locate.md index af4834d44..ff8589a79 100644 --- a/pages/linux/locate.md +++ b/pages/linux/locate.md @@ -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` diff --git a/pages/osx/locate.md b/pages/osx/locate.md index ebf217bbd..aaa66a987 100644 --- a/pages/osx/locate.md +++ b/pages/osx/locate.md @@ -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`