Selaa lähdekoodia

Pages: locate

Igor Shubovych 11 vuotta sitten
vanhempi
commit
888b33c3d5
2 muutettua tiedostoa jossa 23 lisäystä ja 0 poistoa
  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`