From 888b33c3d5982ced49a64f2f47accaa40d47447c Mon Sep 17 00:00:00 2001 From: Igor Shubovych Date: Thu, 8 May 2014 23:25:52 +0300 Subject: [PATCH] Pages: locate --- pages/linux/locate.md | 11 +++++++++++ pages/osx/locate.md | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 pages/linux/locate.md create mode 100644 pages/osx/locate.md diff --git a/pages/linux/locate.md b/pages/linux/locate.md new file mode 100644 index 000000000..b5da37878 --- /dev/null +++ b/pages/linux/locate.md @@ -0,0 +1,11 @@ +# locate + +> find filenames quickly + +- Look for pattern in the database. Note: the database is recomputed periodically (usually weekly or daily). + +`locate {{pattern}}` + +- Recompute the database. You need to do it if you want to find recently added files. + +`sudo updatedb` \ No newline at end of file diff --git a/pages/osx/locate.md b/pages/osx/locate.md new file mode 100644 index 000000000..52e8dc070 --- /dev/null +++ b/pages/osx/locate.md @@ -0,0 +1,12 @@ + +# locate + +> find filenames quickly + +- Look for pattern in the database. Note: the database is recomputed periodically (usually weekly or daily). + +`locate {{pattern}}` + +- Recompute the database. You need to do it if you want to find recently added files. + +`sudo /usr/libexec/locate.updatedb` \ No newline at end of file