To find all files with a file extension, write out its path to find a command with the options and expression specifying the extension. Configuration files are also an essential part of any file system that can be used for multiple purposes.
Write out this command for searching configuration files in the current directory. Finding files with multiple extension:. You can also add more than extension in your find command so that you can find several extension files easily and quickly. This site uses Akismet to reduce spam. Learn how your comment data is processed. Find Multiple File Names in Linux One of the many utilities for locating files on a Linux file system is the find utility and in this how-to guide, we shall walk through a few examples of using find to help us locate multiple filenames at once.
The simplest and general syntax of the find utility is as follows: find directory options [ expression ]. If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions or doubts? Related Posts. Thanks for the feedback. How to find all. Ravi, Thanks for sharing. How to use the find command to search for a file with a range of dates? You can pipe the output of find to egrep : find.
Libreman, Thanks for the great tip, If find it really very useful commandline trick to achieve the same results, hope it will be useful to others.. Skip to: content search login. Knowledge Base Toggle local menu Menus About the team. Knowledge Base Search. Log in. Options Help Chat with a consultant. Include archived documents. Use the Unix find command to search for files To use the find command, at the Unix prompt, enter: find. Options The general form of the command is: find starting directory matching criteria and actions The find command will begin looking in the starting directory you specify and proceed to search through all accessible subdirectories.
You have several options for matching criteria: -atime n File was accessed n days ago -mtime n File was modified n days ago -size n File is n blocks big a block is bytes.
0コメント