Loading...

Locate Command - Search Files by Name - Linux CLI

3,910 views

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Jun 5, 2012

Name : mlocate
Version : 0.25-1
URL : http://carolina.mff.cuni.cz/~trmac/bl...
Description : Faster merging drop-in for slocate
locate - find files by name locate reads one or more databases prepared by updatedb(8) and writes file names matching at least one of the PATTERNs to standard output, one per line. If --regex is not specified, PATTERNs can contain globbing characters. If any PATTERN contains no globbing charac‐ ters, locate behaves as if the pattern were *PATTERN*. By default, locate does not check whether files found in database still exist (but it does require all parent directo‐ ries to exist if the database was built with --require-visibility no). locate can never report files created after the most recent update of the relevant database.

to update ur database:`
sudo updatedb

or for visual
sudo updatedb -v

to add external drives, edit out the /media :
sudo nano /etc/updatedb.conf

discover function, add to ur bashrc/zshrc if u want to use it
https://github.com/gotbletu/shownotes...

regular expressions
http://www.linuxplanet.com/linuxplane...
http://linux.about.com/od/lts_guide/a...

Loading...

Advertisement
to add this to Watch Later

Add to

Loading playlists...