As you know Linux is case sensitive if you want to find a directory or file you need to consider for case upper or lower. If you use this command you find all file about your search.
For example, if you have two files named File.txt and file.txt and you want to see all files with the name file.txt without being case sensitive just use this command.
find -iname “file.txt”
If you are searching for a file with empty or content you can use this command. This command occurs in two-part, let’s look firstly -empty part. If we use -empty we get all empty files.
We have two files but we use this command and get just an empty file
and now let’s get to the second part Let’s say we are searching for a file that is not empty how can we search for it?
we just used to -not command before -empty command
Let’s say right now we’re going to search for a file and it’s a file that was created a few days ago, what should we do in this case? In this case, we can find the file we are looking for using this command.
You can change the range of days by playing with the number in the command, or you can search in minutes by typing -mmin.
Let’s say we have a file And we want to filter it by size so what should we do?The -size command is a command designed for this exact job.