Clamscan Various SSH Commands

To Scan your hosting account with following common SSH Commands,
/usr/local/cpanel/3rdparty/bin/clamscan -r –-remove /home/yourcpanelusernam

Or you can use

clamscan -r –-remove /home/yourcpanelusernam
Above command will find and remove the virus which Clamscan can find. But there are consequences as well, you may loose some files which is having maliscious code which can be important to your site. So we recommend to take the backup first. Or you can use move command which will move any suspiciious or infected files to a specific folder.
/usr/local/cpanel/3rdparty/bin/clamscan -r --move=/home/cpaneluser/virus /home/cpaneluser
Where you need to create the folder "virus" in your cpanel folder or if you want to put into the public_html then.
/usr/local/cpanel/3rdparty/bin/clamscan -r --move=/home/cpaneluser/public_html/virus /home/cpaneluser

You can also setup a cron job into your cPanel where you can make it run on an interval so you do not need to track your viruses.

  • ClamScan Command, Virus Scanner cPanel
  • 0 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Související články

CSF SSH Command [CSF Cheat sheet]

This article covers some useful CSF SSH Command Line Commands in a “cheat sheet” format....

Maldet SSH Commands

A lot of switches and options are available with Maldet. let us check all the switches/options of...

Find files and folders using SSH Command and even delete them.

Lets Say, You want to find the file name "testfile.php" then use command line below mentione and...

Backup & Restore with SSH Command

Here is how you take individual and All Backup with SSH Command, To take the individual cPanel...