26.7. Finding Files

The file manager can be used to search for files or directories on your system that match certain criteria. This can be useful if you know the name of a file but not the directory in which it is located, or if you want to find files owned by a particular user or larger than a certain size. To search for files, follow these steps:

1.
Click on the Find icon on the toolbar, which will bring up a search window.

2.
In the Search directory field, enter the directory under which the files you are looking for are listed. To search the entire system, just enter /. This may take a long time, however, on a server with large filesystems.

3.
To search by filename, enter a pattern into the For files matching field. This can be something like *.txt or foo?.c. If the field is left blank, filenames will not be included in the search criteria.

4.
To find files owned by a particular user, enter the username or ID into the Owned by user field.

5.
Similarly, to find files owned by group, enter its name or ID into the Owned by group field.

6.
To limit the search to normal files, directories, or some other type of file, select it from the File type field.

7.
If you want to find files larger than a particular size, change the File size field to More than and enter the minimum size in bytes into the adjacent field. To find those smaller than a particular size, select Less than and enter the maximum size into the field next to it.

8.
To prevent filesystems mounted under the search directory from being checked, change the Search past mounts option to No. This can be useful if you want to avoid searching NFS filesystems, which can be much slower than those mounted from local disks.

9.
Finally, click the Search Now button. When the search is complete, all files and directories that match all of the chosen criteria will be displayed in the window under the Search results tab. You can double-click on one to have the file manager automatically navigate to the directory that contains it, and select it in the right-hand pane.

To do another search, click back on the Search criteria tab and follow the preceding steps again.

In the background, the file manager's search function uses the UNIX find command to locate files matching the criteria that you enter. All of the available options correspond to command-line options to find, such as –name, -user, and –group.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.27.155