May 2017
Beginner
552 pages
28h 47m
English
The find command can be coupled with many of the other commands using the -exec option.
Consider the previous example. We used -perm to find files that do not have proper permissions. Similarly, in the case where we need to change the ownership of all files owned by a certain user (for example, root) to another user (for example, www-data, the default Apache user in the web server), we can find all the files owned by root using the -user option and use -exec to perform the ownership change operation.
The find command uses an open/close curly brace pair {} to represent the filename. In the next example, each time find identifies ...