Knowledgebase

How to Search Files and Text Quickly with grep and find Print

  • 0

Locate configuration lines, error strings, or large files anywhere on your VPS.

Step-by-Step Instructions

  1. Use grep -rn to recursively search text inside folders.
  2. Use find to locate files by name, extension, or size.
grep -rn 'error_log' /etc/nginx/
find /var/www -name '*.log' -size +50M

Pro Tip: Add -i to grep for case-insensitive searches.

Need assistance? Open a ticket in the A1 Client Area or contact our 24/7 NOC Engineering Team on WhatsApp at +1 (406) 229-9597.


Was this answer helpful?

« Back