January 2004
Intermediate to advanced
368 pages
7h 25m
English
One command that's quite useful on Linux systems, but isn't always present on other Unixes, is locate, which searches a prebuilt database of filenames for the specified regular expression. Ever want to quickly find the location of the master .cshrc file? Here's how that's done with locate:
$ locate .cshrc /.Trashes/501/Previous Systems/private/etc/csh.cshrc /OS9 Snapshot/Staging Archive/:home/taylor/.cshrc /private/etc/csh.cshrc /Users/taylor/.cshrc /Volumes/110GB/WEBSITES/staging.intuitive.com/home/mdella/.cshrc
You can see that the master .cshrc file is in the /private/etc directory on this Mac OS X system. The locate system sees every file on the disk when building its internal file index, whether the file ...
Read now
Unlock full access