How to Find a keyword under whole public html via SSH?

You can use the below given command to find a keyword inside whole public_html or any directory via SSH.

First you have to get into the particlar directory. For that run the following command:

cd /home/username/public_html

Now in order to find a specific keyword in whole public_html of that cPanel account you just need to execute the command given below:

grep -Ril "IMAGES"

The above command instructs grep to look for the Keyword “IMAGES” in the whole public_html and display the containing line.
Check out the blog and video tutorial to learn the detailed  

  • How to Find a keyword under whole public html via SSH, HOW TO FIND AND SEARCH FOR A KEYWORD IN PUBLIC HTML VIA SSH, how to search for a keyword via SSH, How to search text in file, how to search for text in files via SSH
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What are some Basic SSH commands?

List of some basic SSH commands are: ls – This command is used to list all files and...

How to connect to SSH?

Putty is an open-source SSH client used to connect to a remote server. This article describes how...

20 Basic Linux Commands and their Uses.

Following are the top 20 basic Linux Commands with Live Examples that would definitely help you...

How to Block/Unblock IPs from SSH?

You can easily block or unblock IPs  from SSH. #1. Block An IP Address from SSH First of all,...

How to install CpCleaner in cPanel through SSH?

CpCleaner is a cPanel plugin created to give cPanel users the option to clean junk files that...