[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-size option

From: David Staron
Subject: -size option
Date: Sat, 14 Nov 2015 22:19:27 +0100

Hello, I noticed some strange behaviour of the ‘-size’ option of ‘find’, it 
doesn’t seem to behave like documented here 
<https://www.gnu.org/software/findutils/manual/html_mono/find.html#Size> , and 
i read this is the mailing list to report it. Please see below, i doubt it’s a 
bug… but does this make any sense to anyone? Thanks.

root /etc/apache2/sites-available # ls -lah
total 24K
drwxr-xr-x 2 root root 4.0K Nov 14 21:21 .
drwxr-xr-x 8 root root 4.0K Nov 14 20:37 ..
-rw-r--r-- 1 root root 2.0K Nov 14 19:33 000-default.conf
-rw-r--r-- 1 root root 6.3K Feb  1  2015 default-ssl.conf

root /etc/apache2/sites-available # find . -type f -size -1M    # <— No 
results, why not?
root /etc/apache2/sites-available # find . -type f -size +1M
root /etc/apache2/sites-available # find . -type f -size -1G    # <— No 
results, why not?
root /etc/apache2/sites-available # find . -type f -size 1M     # <— Results, 
root /etc/apache2/sites-available # find . -type f -size -1000000c

## Version info
root /etc/apache2/sites-available # find --version
find (GNU findutils) 4.4.2
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Built using GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS() 

root /etc/apache2/sites-available # cat /etc/debian_version

reply via email to

[Prev in Thread] Current Thread [Next in Thread]