/ Published in: Bash
Expand |
Embed | Plain Text
# This can be slow... find / -name my_lost_file 2>/dev/null # This is preindexed so is faster... locate my_lost_file # If index is out of date, it needs updating. # This is also slow... locate -u
Comments
Subscribe to comments
You need to login to post a comment.

To update locate on Mac/darwin you'll need to sudo /usr/libexec/locate.updatedb
Cheers!