ClamAV is an open-source antivirus toolkit available. It can scan files and directories for known malware and is useful for checking files you have downloaded, received, or copied from another system.
Update the virus definitions
Before scanning, update ClamAV’s virus definitions with freshclam:
sudo freshclam
Keeping the definitions current helps ensure that scans use the latest available signatures.
Scan your home folder
To scan your entire home folder while only displaying relevant results, use:
clamscan -r --infected --quiet ~
The -r option scans directories recursively. The --infected option displays only infected files, while --quiet suppresses the normal scan output.
When the scan finishes, ClamAV will display the results at the end of the scan. If no infected files are found, the summary will show that the scan found no infected files.
If ClamAV reports an infected file, do not open or execute it or immediately delete it. Take note of the file’s location and investigate it before deciding what to do with it.