how i can use linux find command for search files that more MIN and less MAX
I tried to use the following command:
find . -type f -a -size +1000 -a -size -1100
but it does not work
Right-click the file and click Properties. The image below shows that you can determine the size of the file or files you have highlighted from in the file properties window. In this example, the chrome. jpg file is 18.5 KB (19,032 bytes), and that the size on disk is 20.0 KB (20,480 bytes).
To find files larger than 100 MB, we need to pass the -size option with value +100M in the find command. It will print the file paths along with size for the files larger than 100MB.
Find files by size and extension Instead of searching all files, you can also search files of specific extensions greater than 1G B size. For example search, all files with extension “. log” and size are 1GB or more.
What does this command string do? find / -size +10M -exec ls -l {} ; It finds all files using ls -l and hands them off to the find command to display. It finds all files older than 10 minutes and long lists them using the ls command.
Assuming you want file sizes between 1000 and 1100 bytes:
find . -type f -size +1000c -a -size -1100c
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With