Getting ready

Besides having a terminal open, several large text files are needed for this recipe. If you have some already, great; if not, install the following:

$ sudo apt-get install locate manpages manpages-posix$ sudo updatedb$ git clone https://github.com/PacktPublishing/Linux-Device-Drivers-Development.git Linux-Device-Drivers-Development # Another Packt title$ mkdir -p ~/emptydir/makesure
If a file is not found using the locate command, the database might be simply out of date and needs to be re-ran. It is possible that updatedb is also not indexing partitions such as those contained on removable media (USB sticks), and the file may be present there instead of the regular system partitions. In preparation for this recipe, be aware ...

Get Bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.