File Finder is an application that searches a folder and its subfolders and returns a list of files or folders that match your search criteria. Files and folders are sometimes generally called objects.
When specifying search criteria, you typically supply a file or folder name, or some text that you expect to find in the required file. You can also specify the size, owner, date modified, type, and permissions.
You can open File Finder from the Front Panel or from inside File Manager.
Click the Find File control on the Files subpanel of the Front Panel.
The Find File application opens with the default search path set to your home folder.
Or, choose Find on the File menu of the File Manager application.
The Find File application opens with the default search path set to the folder that was displayed in File Manager.
Open File Finder.
File Finder displays the Find dialog box.
Select the folder under which you expect to find the required files or folders using the following table as a guide to the menu items in the Find dialog.
Menu Item | Where File Finder Searches |
---|---|
My Home Directory | Your home directory (referred to as $HOME in this chapter), for example, /home/fredj |
Floppy | Contents of the diskette drive |
CD-ROM | Contents of the CD-ROM drive |
Local Storage | All folders on this workstation |
$PATH | All folders on the workstation's default path |
Other Host | Specify the hostname of a different workstation |
Other Folder | Specify another folder on this workstation |
Folders are arranged in a hierarchical structure (Basic File System Concepts) By default, the Find operation will search the folder you specify and all its subfolders.
If you want to search across symbolic links that originate on your search path, select the Follow Links check box.
If the actual location of a linked folder is at the top level of a large number of folders, the search might take a long time. Be aware of the locations to which folders are linked before starting search operations.
Select whether you will be searching for a file name containing, equalling, or not containing your search text by selecting the appropriate option in the Whose Name selector.
Type a full or partial name of the file or folder you want to find into text box on the same line as the Whose Name selector.
The following applies when you select “is equal to” from the and Name selector:
When you specify a file or folder name, you can include wildcard characters such as asterisk (*) and question mark (?). The * matches any string of characters (including no characters), and ? matches any single character. For example:
ba*-matches all names that begin with the string ba
ba?-matches all three-character names that begin with the string ba
*.dt-matches all names that end with the .dt suffix
*.???-matches all names that have a three-character suffix
The file name and contents can be specified using the same regular expression syntax allowed by the find
command. (Refer to the find
man page and grep
man page for more information.)
Click Find.
File Manager begins searching the specified folder and its subfolders for files that match the specified search criteria. Matches that are found are listed in the Items Found list. You can stop the search at any time by clicking the Stop button.
If too many objects are returned, you can specify more restrictive criteria and try again.
(Optional) If you want to go to an object in the list, select it and click Go To open File Manager displaying its folder, or click Put on Workspace to display an icon for it on the workspace.
Open File Finder.
Click More Criteria to display the More Criteria dialog box.
Select the Content checkbox and click OK.
The And Content line is added to the Find dialog.
Specify the search folder and any name constraints for the search on the Find Items In line and on the Whose Name line.
If you leave the File or Folder Name field empty, File Manager searches every file within the search folder.
Names can be specified using the same regular expression
syntax allowed by the grep command. (Refer to the grep
man page for more information.)
In the File Contents field, type the text string you want to find.
If you select “and content contains (any case), then case is ignored for this string (upper- and lowercase letters are equivalent). You do not have to use complete words. For example, if you type fi it will find both fish and File.
Click Find to commence the search.
File Manager begins searching the search folder and its subfolders for any file containing the search string. Matches that are found are listed in the Files Found list. Once you have found a file, you can select it in the list and then click Go To to open File Manager for its folder. You can stop the search at any time by clicking Stop.
If too many files are returned, specify more restrictive criteria.
The previous procedures explained how to search for a file or folder by specifying a name, and how to search for a file by specifying some of its contents. You can also specify the following object properties as search criteria:
Size - Specify a file size in characters. Append the character “c” to the size you specify to return a file size in characters (as displayed in File Manager). If this line is displayed and left blank, qualifying objects of all sizes will be returned.
Owner - Specify an exact UNIX user name for the object's owner. If this line is displayed and left blank, qualifying objects belonging to all users will be returned.
Date modified - Specify a date using the date specification format [[CC]YY]MMDD[hhmm][.SS]. Entries enclosed by square brackets are optional. If this line is displayed and left blank or left with the above prompt string, qualifying objects of all modification dates will be returned.
Type - Choose whether to return files or folders. If this line is displayed, qualifying objects of only the type selected will be returned. Otherwise, qualifying objects of both types will be returned.
Permissions - Select one of the options which relate to the ACL (Access Control List) If this line is displayed, qualifying objects of only the type selected will be returned. Otherwise, qualifying objects of all types will be returned (subject to other constraints).
By default, File Finder displays only the line for specifying name criteria. By clicking More Criteria, you can display lines for other criteria.
Open File Finder.
File Finder opens with the default display and settings.
Click More Criteria to display the More Criteria dialog box.
Select the check boxes for the criteria that you intend specifying in your search.
File Finder updates the Find dialog box to contain a line for specifying each of the selected criteria.
(Optional) Specify the folder to be searched, the name of the file or folder, and the contents of the required file using the instructions in To Find a File or Folder by Name and To Find a File by Contents.
Specify criteria relating to the properties of the file or folder on the lines provided.
Each line of constraints will be evaluated as described above. If you use more than one set of criteria, File Finder will return only objects that satisfy all of the search criteria.
When you are satisfied with the criteria you have entered, click Find.
File Finder searches the specified folders and subfolders, and returns a list of the files and folders that match all of the specified search criteria. You can stop the search at any time by clicking Stop.
If too many files are returned, you can specify more restrictive criteria and try again.