TOPIC
The BSD "find" Command Searches UFS, HFS, and HFS Extended Volumes.
DISCUSSION The BSD "find" command implemented in Mac OS X Server will search Macintosh HFS and Macintosh HFS Extended volumes. Because volumes with these format types are auto-mounted in the root file system, searching the root volume "/" will locate files on any mounted local volume. Thus, to locate a file typically found on an HFS Extended volume on a server that has netboot clients, enter: find / -name "Mac NC #" -print & This should return all occurances of files or directories on "/" whose names include the string specified in quotes, and print it to standard io (the screen). The ampersand "&" specifies to do this in the background. Note: In this example, the search string is in quotes; these quotes are necessary because of the space characters included in the string. Searching for a name that is all one word with no illegal characters, such as "hostconfig", does not require quotes. As in traditional BSD unix, the backslash character, "\", may be used before an illegal character to cause it to be parsed as part of the search string: find / -name Mac\ NC\ # -print & For details on syntax and the use of other arguments and flags in the "find" command, enter "man find" into a terminal window and press the return key. |
Document Information | |
Product Area: | Mac OS System Software |
Category: | Mac OS X Server |
Sub Category: | General Topics |
Copyright © 2000 Apple Computer, Inc. All rights reserved.