ANS Documentation

Improve This Doc
  • Cloud
  • Domains and DNS management
  • Backup and High Availability
  • eCommerce Stacks
  • Security
  • Email
  • Monitoring and usage management
  • Networking
  • Operating systems
    • Linux
      • Basics
      • Apache
      • Control Panels
      • FTP
      • Magento
      • Miscellaneous
      • MySQL
      • NGINX
      • PHP
      • PHP-FPM
      • Setting up Websites
      • NFS
      • VPN
      • Percona
      • SSH
      • SSL
      • Git
      • Redis
      • Elasticsearch
      • MongoDB
      • Ncdu
    • VMware ESXi
    • Windows
  • Webcelerator
  • MyUKFast
  • Home >
  • Operating systems >
  • Linux >
  • Miscellaneous >
  • Run a virus scan

Run a virus scan¶

You can run a server wide virus scan using the ClamAV utility. ClamAV is a free and open source antivirus toolkit that allows you to configure on access scanning and also run a virus scan. This guide will only explain how to run a scan. If you would like to configure on demand scanning you can refer to the below ClamAV blog post.

http://blog.clamav.net/2016/03/configuring-on-access-scanning-in-clamav.html

To run a virus scan using the ClamAV toolkit you will use the clamscancommand. There is a lot of available flags that can be used in conjunction with the scan but the two that will be described here are the -r and -i flags. The -r flag specifies for the scan to run recursively through the directory specified to scan. The -i flag specifies to only print infected files. The below command will search through the /home directory and then print the results into a file.

  clamscan -r -i /home/ > clamresults.txt

Next Article > Filesystem Check

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ