Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Find text in files

Discussion in 'General Discussion' started by Edward Byrne, Nov 30, 2014.

  1. Edward Byrne

    Edward Byrne Member

    Joined:
    Nov 15, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Harare, Zimbabwe, Zimbabwe
    cPanel Access Level:
    Website Owner
    Hi all

    I am editing the text in a site but having problems finding all the relevant files in File Manager. The search function only finds the names of files.

    Can anyone suggest a simple (I am a novice) way to find the files containing the text I want to edit?

    Many Thanks
     
  2. 24x7ss

    24x7ss Well-Known Member

    Joined:
    Sep 30, 2014
    Messages:
    271
    Likes Received:
    16
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    If you are having server root SSH access then you can easily do it with the command.

    grep -ir "Text you want to search" *

    Run above command in home directory of that particular account.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Your access level is listed as "Website Owner", so you would have to contact your hosting provider to see if they can enable SSH access for your account in order to use commands like the one referenced in the previous post.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice