I have big directory tree of files. I often use the find
command to locate something in that tree. The first time after a reboot it takes some time, but subsequent uses are almost instant. Obviously find
uses some internal datastructure that it has to recreate after a reboot.
Is there a way to keep this datastructure between reboots?
additional info:
- the root of the directory tree is always the same, but it is on another drive that is not always mounted
- it has ~50000 files over ~2000 directories
- i use the
-iregex
option forfind