Introduction
You may use the following method to scan a file for viruses.
Procedure
- Login to the server as the root user via SSH or Terminal
- Create a text file that contains the path to the file that needs to be scanned:
echo "/path/to/file/with/potential/virus.pdf" >> /root/filestobescanned.txt
- Use the following command to scan the file manually:
/usr/local/cpanel/3rdparty/bin/clamdscan -v --log=/root/manualVirusScan.log -f /root/filestobescanned.txt
- View the results in the log:
less /root/manualVirusScan.log
Comments
0 comments
Article is closed for comments.