Skip to content

Instantly share code, notes, and snippets.

@ninadsp
Created July 28, 2013 15:56
Show Gist options
  • Save ninadsp/6099062 to your computer and use it in GitHub Desktop.
Save ninadsp/6099062 to your computer and use it in GitHub Desktop.
Code snippets from my blogpost ACAD - locate files on your Linux system (http://ninad.pundaliks.in/blog/2008/08/acad-locate-files-on-your-linux-system/)
$ locate [expression]
$ locate [filename] | grep [filetype]
$ sudo updatedb
$ sudo export EDITOR=vim
$ sudo crontab -u root -e
# Update the databse of locate. Daily, 6:01 hrs.
1 6 * * * updatedb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment