First, you need ClamAV installed on your system


sudo apt-get install clamav

Centos 7

yum -y install epel-release
yum -y update
yum -y install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd

Install scanner

chmod 750

To scan with

bash scan /folder

To run scan in background and save into one .txt file

bash scan /folder > result.txt &