Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找可以在我的 cPanel 服务器中运行的“查找”或“grep”命令(我认为),以查找 Joomla 1.5 (1.5.x) 的所有安装。
我想它需要遍历所有 /home/*/public_html 并找到某个 Joomla 1.5 签名。
您可以通过 /libraries/joomla/version.php 文件中的以下文本来判断 Joomla 1.5 安装:
Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
所以你的命令可能看起来像这样或类似的:
grep -r --include=*version.php "Copyright (C) 2005 - 2010 Open Source Matters" /home/