在Linux中查找具有特定文件大小的文件

在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