![Deadpool airattack](https://loka.nahovitsyn.com/18.jpg)
![linux find file by extension linux find file by extension](https://img.itch.zone/aW1nLzQ3MDA5MzYuanBn/original/jGSW1J.jpg)
If you want to find the file containing a specific string you can combine find and grep together. For example to find text files that were last modified 60 days ago, type: find /home/username -name "*.txt" -mtime -60 Find File containing specific string To search file or files under a directory by the last modified, use -mtime option. To find empty file or files, you use file type -empty.įor example to find all empty files in /tmp directory, type: find /tmp -type f -empty Find a File by modification time
![linux find file by extension linux find file by extension](https://cloudnodelab.azurewebsites.net/content/images/2020/08/file-share.jpg)
For example to search file (or files) with an extension ".txt", type: find /home/bob -name "*.txt" Find an empty file Use find command to find a file (or files) using file extensions. To perform a case-insensitive search, use -iname option instead of -name: find /home/bob -iname File2.txt Find files in Linux by extension To search the file named file2.txt in the directory path /home/bob and its subdirectories. For example to search the file named file1.txt in the current directory and subdirectories. You can use find command to find a file by name.
![linux find file by extension linux find file by extension](https://cdn.educba.com/academy/wp-content/uploads/2020/09/Linux-Find-File-by-Name-1.5.png)
LINUX FIND FILE BY EXTENSION HOW TO
In this tutorial, we learn how to find a file in Linux using the command line. By default, it searches into subdirectories for a file (or files) based on certain conditions. Linux comes with a powerful tool named find to find a file (or files).
![Deadpool airattack](https://loka.nahovitsyn.com/18.jpg)