The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    5
    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.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page