find命令下的問(wèn)題
為什么查找1k到10k的文件,結(jié)果25k的也查出來(lái)了??,后面查找5k到10k的就沒(méi)事呢???
[root@localhost ~]# find /root -size +1k -a -size -10k -exec ls -lh {} \;
總用量 48K
-rw-r--r--. 1 root root??? 5 5月? 26 00:17 abc
-rw-------. 1 root root 1.2K 5月? 25 23:52 anaconda-ks.cfg
-rw-r--r--. 1 root root? 25K 5月? 24 17:51 install.log
-rw-r--r--. 1 root root 7.6K 5月? 24 17:49 install.log.syslog
-rw-r--r--. 1 root root 7.6K 5月? 24 17:49 /root/install.log.syslog
-rw-------. 1 root root 1.8K 5月? 26 01:53 /root/.bash_history
-rw-------. 1 root root 1.2K 5月? 25 23:52 /root/anaconda-ks.cfg
總用量 0
-rw-------. 1 root root 0 5月? 26 00:44 bookmarks
[root@localhost ~]# find /root -size +5k -a -size -10k -exec ls -lh {} \;
-rw-r--r--. 1 root root 7.6K 5月? 24 17:49 /root/install.log.syslog
2016-05-26
bug.