Skip to main content

How to find a line of code

Comments

3 comments

  • cPanelMichael
    Hello :) Do you have SSH access to the account? If so, you could use the "grep" command. EX:
    grep $search-term /home/$username/public_html/file.php
    Thank you.
    0
  • PeterSauer
    ]Hello :) Do you have SSH access to the account? If so, you could use the "grep" command. EX:
    grep $search-term /home/$username/public_html/file.php
    Thank you.

    I have SSH/Shell Access. It shows me "Manage SSH keys Can you tell me how I use the code you gave me? Do I create a new key, in the "Generate a new key" field? Many Thanks Peter
    0
  • cPanelMichael
    Are you sure a key is required? Simply enter your account username/password via a SSH client (e.g. Putty) and use the referenced command. Note that if you have no experience with SSH then it might be a better idea to consult with a system administrator or your hosting provider for assistance. This document should help you get connected: Accessing your server via SSH Thank you.
    0

Please sign in to leave a comment.