{"id":23229,"date":"2020-12-09T10:13:46","date_gmt":"2020-12-09T02:13:46","guid":{"rendered":"https:\/\/web.mwwsb.com.my\/pjci\/?post_type=kb&p=23229"},"modified":"2022-09-08T20:00:23","modified_gmt":"2022-09-08T12:00:23","slug":"antivirus-clamav","status":"publish","type":"kb","link":"https:\/\/www.casbay.com\/guide\/kb\/antivirus-clamav","title":{"rendered":"AntiVirus: ClamAV"},"content":{"rendered":"\t\t
ClamAV is an open-source antivirus software toolkit. It helps us to detect malicious software and viruses on a variety of operating systems, such as Linux. We often use it on mail servers to scan for viruses in emails.\u00a0<\/p>
sudo freshclam<\/code><\/div>\u00a0<\/div>Besides, you can also scan viruses using ClamAV<\/div>$ clamscan OPTIONS File\/Folder<\/em><\/div>\u00a0<\/div>If necessary start with root permissions: sudo clamscan.<\/em><\/p>Examples:<\/p>
First, to check all the files on the\u00a0computer, displaying each file\u2019s name:<\/p><\/li>
clamscan -r \/<\/code><\/li><\/ul><\/li>- To check all files on the computer, but only display infected files and ring a bell when found:<\/li>
clamscan -r --bell -i \/<\/code><\/li><\/ul><\/li>- To check files in the all users\u2019 home directories:<\/li>
clamscan -r \/home<\/code><\/li><\/ul><\/li>- Check files in the
USER<\/code>\u00a0home directory and move infected files to another folder:<\/li>clamscan -r --move=\/home\/USER\/VIRUS \/home\/USER<\/code><\/li><\/ul><\/li>- Check files in the
USER<\/code>\u00a0home directory and remove infected files (WARNING: Files will be gone.):<\/li>clamscan -r --remove \/home\/USER<\/code><\/li><\/ul><\/li>- See more options:<\/li>
clamscan --help<\/code><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/div>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"AntiVirus: ClamAV ClamAV is an open-source antivirus software toolkit. It helps us to detect malicious software and viruses on a variety of operating systems, such as Linux. We often use it on mail servers to scan for viruses in emails. Here is some reasons why you should consider ClamAV for Linux: You want to lock […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[113],"kbtag":[106],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/23229"}],"collection":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/comments?post=23229"}],"version-history":[{"count":1,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/23229\/revisions"}],"predecessor-version":[{"id":36620,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/23229\/revisions\/36620"}],"wp:attachment":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/media?parent=23229"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=23229"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtag?post=23229"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=23229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}