{"id":235,"date":"2026-11-28T22:44:07","date_gmt":"2026-11-28T22:44:07","guid":{"rendered":"https:\/\/goadmio.com\/blog\/go-clamav-command\/"},"modified":"2026-11-28T22:44:07","modified_gmt":"2026-11-28T22:44:07","slug":"go-clamav-command","status":"publish","type":"post","link":"https:\/\/goadmio.com\/blog\/go-clamav-command\/","title":{"rendered":"clamav with the \/go\/clamav Command"},"content":{"rendered":"<p>\/go\/clamav manages the open-source ClamAV antivirus engine on a GoAdmio server and uses it to scan hosted sites. It does one of two things, depending on whether you pass an argument: Every admin action in <a href=\"https:\/\/www.goadmio.com\/\">GoAdmio<\/a> has a matching <code>\/go\/<\/code> command, so anything you can click you can also script.<\/p>\n<h2>Quick start<\/h2>\n<p><code># Install ClamAV, or update its signatures if already installed<br \/>\n\/go\/clamav<\/p>\n<p># Scan one domain<br \/>\n\/go\/clamav example.com<\/p>\n<p># Scan every account<br \/>\n\/go\/clamav all<br \/>\n<\/code><\/pre>\n<blockquote>\n<p>[!WARNING]<br \/>\nScans run with <code>--remove<\/code>. Infected files are deleted immediately, with no quarantine and no confirmation. Make sure you have a recent <a href=\"backup\"><code>backup<\/code><\/a> or <a href=\"snapshot\"><code>snapshot<\/code><\/a> before scanning.<\/p>\n<\/blockquote>\n<h2>Arguments<\/h2>\n<table>\n<thead>\n<tr>\n<th>Argument<\/th>\n<th>Required<\/th>\n<th>Default<\/th>\n<th>Notes<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>&lt;domain&gt;<\/code><\/td>\n<td>No<\/td>\n<td>\u2014<\/td>\n<td>The account&#8217;s domain. <code>\/home\/&lt;domain&gt;<\/code> must exist.<\/td>\n<\/tr>\n<tr>\n<td><code>all<\/code><\/td>\n<td>No<\/td>\n<td>\u2014<\/td>\n<td>Reserved word. Scans every account under <code>\/home<\/code>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>There are no <code>--<\/code> options. Giving any argument switches the command into scan mode, so installing and updating happen only when you run it with no argument.<\/p>\n<p>The domain is passed to the scanner as typed. It is not lowercased, normalized, or checked against the <code>Site<\/code> table, so use the exact folder name from <code>\/home<\/code>.<\/p>\n<h2>Examples<\/h2>\n<p><code># First run on a new server: installs ClamAV<br \/>\n\/go\/clamav<br \/>\n<\/code><\/pre>\n<p><code># Refresh virus signatures before a scan<br \/>\n\/go\/clamav<br \/>\n\/go\/clamav all<br \/>\n<\/code><\/pre>\n<p><code># Scan and clean a single account<br \/>\n\/go\/clamav example.com<br \/>\n<\/code><\/pre>\n<p><code># Review what has been run recently<br \/>\ntail -n 20 \/var\/log\/go\/clamav.log<br \/>\n<\/code><\/pre>\n<p><code># Update signatures daily at 03:00, then scan all accounts at 03:30<br \/>\n0 3 * * *  \/go\/clamav<br \/>\n30 3 * * * \/go\/clamav all<br \/>\n<\/code><\/pre>\n<h2>Output<\/h2>\n<p>The command prints plain text, not JSON.<\/p>\n<table>\n<thead>\n<tr>\n<th>Situation<\/th>\n<th>What you see<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Install<\/td>\n<td><code>Installing ClamAV antivirus...<\/code>, followed by the package manager output.<\/td>\n<\/tr>\n<tr>\n<td>Update<\/td>\n<td><code>Updating ClamAV antivirus...<\/code>, followed by <code>freshclam<\/code> output (none on RHEL-family systems, which run it quietly).<\/td>\n<\/tr>\n<tr>\n<td>Scan one domain<\/td>\n<td><code>Scanning &lt;domain&gt;...<\/code>, then the list of infected files and a scan summary.<\/td>\n<\/tr>\n<tr>\n<td>Scan all domains<\/td>\n<td><code>Scanning All Domains...<\/code>, then the list of infected files and a scan summary.<\/td>\n<\/tr>\n<tr>\n<td>Unsupported operating system<\/td>\n<td><code>Unknown operating system.<\/code> Nothing is installed or scanned.<\/td>\n<\/tr>\n<tr>\n<td>Domain folder not found<\/td>\n<td>No output. Nothing is scanned.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Every run is also logged with a timestamp, for example <code>[Nov 20 09:15:02]# clamav example.com<\/code>, to <code>\/var\/log\/go\/clamav.log<\/code>.<\/p>\n<p>Scans use <code>--infected<\/code>, so only infected files are listed. Clean files are not printed. The summary at the end of a scan reports the number of files scanned, the number infected, and the data scanned.<\/p>\n<p>See the full reference at <a href=\"https:\/\/www.goadmio.com\/commands\/clamav\">\/go\/clamav<\/a> and the <a href=\"https:\/\/www.goadmio.com\/commands\">GoAdmio command index<\/a>.<\/p>\n<p>GoAdmio is free and open source, with no license fees and no account limits. Read the <a href=\"https:\/\/www.goadmio.com\/docs\/\">GoAdmio docs<\/a>, or see why it is a <a href=\"https:\/\/www.goadmio.com\/cpanel-alternative.html\">free cPanel alternative<\/a> at <a href=\"https:\/\/www.goadmio.com\/\">goadmio.com<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/go\/clamav manages the open-source ClamAV antivirus engine on a GoAdmio server and uses it to scan hosted sites. It does one of two things, depending &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-235","post","type-post","status-publish","format-standard","hentry","category-command-line"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>clamav with the \/go\/clamav Command - GoAdmio<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/goadmio.com\/blog\/go-clamav-command\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"clamav with the \/go\/clamav Command - GoAdmio\" \/>\n<meta property=\"og:description\" content=\"\/go\/clamav manages the open-source ClamAV antivirus engine on a GoAdmio server and uses it to scan hosted sites. It does one of two things, depending ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/goadmio.com\/blog\/go-clamav-command\/\" \/>\n<meta property=\"og:site_name\" content=\"GoAdmio\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-28T22:44:07+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-clamav-command\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-clamav-command\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#\\\/schema\\\/person\\\/2792dfae1ff31de5831fd5c9ede251ce\"},\"headline\":\"clamav with the \\\/go\\\/clamav Command\",\"datePublished\":\"2026-11-28T22:44:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-clamav-command\\\/\"},\"wordCount\":315,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#organization\"},\"articleSection\":[\"Command Line\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-clamav-command\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-clamav-command\\\/\",\"url\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-clamav-command\\\/\",\"name\":\"clamav with the \\\/go\\\/clamav Command - GoAdmio\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#website\"},\"datePublished\":\"2026-11-28T22:44:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-clamav-command\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-clamav-command\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/go-clamav-command\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"clamav with the \\\/go\\\/clamav Command\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/\",\"name\":\"GoAdmio\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#organization\",\"name\":\"GoAdmio\",\"url\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/goadmio-logo.png\",\"contentUrl\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/goadmio-logo.png\",\"width\":1200,\"height\":1200,\"caption\":\"GoAdmio\"},\"image\":{\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/#\\\/schema\\\/person\\\/2792dfae1ff31de5831fd5c9ede251ce\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d4bb3c53e2296776392ae05085feace43ad3be136196668f9d414210355127bd?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d4bb3c53e2296776392ae05085feace43ad3be136196668f9d414210355127bd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d4bb3c53e2296776392ae05085feace43ad3be136196668f9d414210355127bd?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/goadmio.com\\\/blog\"],\"url\":\"https:\\\/\\\/goadmio.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"clamav with the \/go\/clamav Command - GoAdmio","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/goadmio.com\/blog\/go-clamav-command\/","og_locale":"en_US","og_type":"article","og_title":"clamav with the \/go\/clamav Command - GoAdmio","og_description":"\/go\/clamav manages the open-source ClamAV antivirus engine on a GoAdmio server and uses it to scan hosted sites. It does one of two things, depending ...","og_url":"https:\/\/goadmio.com\/blog\/go-clamav-command\/","og_site_name":"GoAdmio","article_published_time":"2026-11-28T22:44:07+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/goadmio.com\/blog\/go-clamav-command\/#article","isPartOf":{"@id":"https:\/\/goadmio.com\/blog\/go-clamav-command\/"},"author":{"name":"admin","@id":"https:\/\/goadmio.com\/blog\/#\/schema\/person\/2792dfae1ff31de5831fd5c9ede251ce"},"headline":"clamav with the \/go\/clamav Command","datePublished":"2026-11-28T22:44:07+00:00","mainEntityOfPage":{"@id":"https:\/\/goadmio.com\/blog\/go-clamav-command\/"},"wordCount":315,"commentCount":0,"publisher":{"@id":"https:\/\/goadmio.com\/blog\/#organization"},"articleSection":["Command Line"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/goadmio.com\/blog\/go-clamav-command\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/goadmio.com\/blog\/go-clamav-command\/","url":"https:\/\/goadmio.com\/blog\/go-clamav-command\/","name":"clamav with the \/go\/clamav Command - GoAdmio","isPartOf":{"@id":"https:\/\/goadmio.com\/blog\/#website"},"datePublished":"2026-11-28T22:44:07+00:00","breadcrumb":{"@id":"https:\/\/goadmio.com\/blog\/go-clamav-command\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/goadmio.com\/blog\/go-clamav-command\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/goadmio.com\/blog\/go-clamav-command\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/goadmio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"clamav with the \/go\/clamav Command"}]},{"@type":"WebSite","@id":"https:\/\/goadmio.com\/blog\/#website","url":"https:\/\/goadmio.com\/blog\/","name":"GoAdmio","description":"","publisher":{"@id":"https:\/\/goadmio.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/goadmio.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/goadmio.com\/blog\/#organization","name":"GoAdmio","url":"https:\/\/goadmio.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/goadmio.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/goadmio.com\/blog\/wp-content\/uploads\/2026\/11\/goadmio-logo.png","contentUrl":"https:\/\/goadmio.com\/blog\/wp-content\/uploads\/2026\/11\/goadmio-logo.png","width":1200,"height":1200,"caption":"GoAdmio"},"image":{"@id":"https:\/\/goadmio.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/goadmio.com\/blog\/#\/schema\/person\/2792dfae1ff31de5831fd5c9ede251ce","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d4bb3c53e2296776392ae05085feace43ad3be136196668f9d414210355127bd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d4bb3c53e2296776392ae05085feace43ad3be136196668f9d414210355127bd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4bb3c53e2296776392ae05085feace43ad3be136196668f9d414210355127bd?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/goadmio.com\/blog"],"url":"https:\/\/goadmio.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/posts\/235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/comments?post=235"}],"version-history":[{"count":0,"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/posts\/235\/revisions"}],"wp:attachment":[{"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/media?parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/categories?post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/goadmio.com\/blog\/wp-json\/wp\/v2\/tags?post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}