Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

find file by size more MIN and less MAX

Tags:

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

like image 481
Ivan Ivanovich Avatar asked Jan 04 '15 21:01

Ivan Ivanovich


People also ask

How do I search for files by size?

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).

How do I see files larger than 100MB?

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.

How do I find files larger than 10mb in size in usr directory?

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?

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.


1 Answers

Assuming you want file sizes between 1000 and 1100 bytes:

find . -type f -size +1000c -a -size -1100c
like image 66
nwk Avatar answered Sep 21 '22 18:09

nwk