

One of the useful features of the find command is the ability to delete founded files. $ find / -name "*.txt*" Find and Delete File In the following example, we search files with the “*.txt” extension. The glob operator is used to express the name of the file and the extension is specified explicitly. The find command can be used to search files according to their extensions. $ find / -name "*data*" Search File with Extension We can search files those names that contain “data” with the following command. The “*” glob operator can be used to search files with partial names. The find command provides the ability to search files with their names for specific patterns. In the following example, we search for the file named “database” in the home directory of the user “ismail”.Īlternatively, we can search in the current working directory and all child directories by using bash “.” operator. The complete or partial name is provided as a parameter with the -name option. The files can be searched according to their names by using the -name option. The man page of the find command provides a lot of information about the options, usage examples, etc.

To get more details about the find command the man page can be used. The –help option list very basic help and usage information about the find command. The find command provides different help options where the -help option is one of them. The option can e used to search for a specific file name pattern or file extension or recursively etc. OPTIONS are used for different search types.SEARCH_TERM is searched in the specified PATH.PATH is the search path where the specified SEARCH_TERM will be searched.The find command has the following syntax. Also, it provides useful features like executing commands for the match results. The find command can be used to search files and folders according to their names, creation date, modification date, ownership, permission, path, etc. The find command is executed via the command line interface and it is also provided by the Unix and other related Unix-based operating systems. Linux provides the find command in order to find files and directories.
