在Linux中查找具有特定文件大小的文件 [英] Find files with certain filesize in Linux

查看:88
本文介绍了在Linux中查找具有特定文件大小的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要找到文件大小为1.905字节的所有index.php文件. 我有700多个网站,其中2/5被黑客入侵,并且index.php与此文件大小相同. 请帮助我!

i need to find all index.php files with file size of 1.905 bytes. I have over 700+ websites and 2/5 of them are hacked and have index.php with this filesize. Please help me!!!

推荐答案

要在/var/www下查找名称为index.php并且大小正好为1905字节的文件:

To find files under /var/www with name index.php and size of exactly 1905 bytes:

find /var/www -name index.php -size 1905c

这篇关于在Linux中查找具有特定文件大小的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆