-
-
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/)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ locate [expression] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ locate [filename] | grep [filetype] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo updatedb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo export EDITOR=vim | |
$ sudo crontab -u root -e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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