Skip to the content
moneyslow.com
  • link
  • vps
  • all
  • about

Linux 用find命令查找文件大小为XX的文件的办法

moneyslow | 2016-07-13

例如:一个文件5556字节,可以这样写

find /root -size -5557c -size +5555c -exec ls -ld {} \;

即查找大于5555字节小于5557字节的文件,以上查找的是/root 目录

find /root -size -500K -size +50K -exec ls -ld {} \;

查找 小于500K,大于50K的文件

Categories: 最新文章

文章导航

← Acpi_pad 导致 cpu 负载高 的解决办法
ossec-analysisd: ERROR: read error on /queue/diff/websec/533/last-entry →
© 2023 moneyslow.com
京ICP备11047313号-19