Преглед на файлове

Merge pull request #199 from igorshubovych/locate

Pages: locate
Romain Prieto преди 11 години
родител
ревизия
369c0a00fb
променени са 2 файла, в които са добавени 23 реда и са изтрити 0 реда
  1. 11 0
      pages/linux/locate.md
  2. 12 0
      pages/osx/locate.md

+ 11 - 0
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`

+ 12 - 0
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`