How to print the files which has a string through out the server: Use this command:
find /www/*/httpdocs/ -type f -iname "*.php" | xargs grep 'string goes here'
From the journal
To find files which has specific text in your server.
How to print the files which has a string through out the server: Use this command: find /www/\ /httpdocs/ -type f -iname "\ .php" | xargs grep 'string goes here'
Explore this page ↓Share
Keep reading
- tech / 2026
ChatGPT Sites vs Lovable vs Emergent: Which Should You Use? (2026) ↗
ChatGPT Sites vs Lovable vs Emergent compared: features, hosting, code export, pricing and who each is for. Plus how web developers can use all three.
- tech / 2026
How to Create Images With AI (Step by Step, With Prompts You Can Copy) ↗
Learn how to create images with AI in 6 steps: let an AI write a detailed prompt, run it in an image tool, and refine. Copy-ready prompts for 7 image types.
- tech / 2026
AI Terms Explained Simply: From LLMs to Agents ↗
LLM, RAG, skill, MCP, agent, agentic: every common AI term explained in plain English, using one birthday dinner example. No jargon, no hype.