본문 바로가기

server

Ubuntu 서버에서 CLI를 이용해 바이러스 스캔 방법(ClamVA 백신)

개요

우분투 서버에서 무료로 사용할 수 있는 바이러스 스캔 툴인 ClamVA 소개하겠습니다.

다만, 무료라서 그런지는 모르겠지만, 이 ClamAV는 바이러스를 치료해주지는 않습니다.

바이러스를 검사하고 발견한 바이러스를 특정 디렉토리에 격리만 해주는 정도의 기능만 가능합니다.

http://www.clamav.net/

[

ClamavNet

ClamAV® is an open source antivirus engine for detecting trojans, viruses, malware & other malicious threats.

www.clamav.net

](http://www.clamav.net/)

설치 방법

sudo apt install clamav

전체 파일 스캔하는 방법

clamscan -r /

발견된 바이러스를 지정 디렉토리에 격리하면서 스캔하는 방법

사전에 /virus 디렉토리를 생성해야 합니다.
디렉토리는 변경가능합니다.

clamscan -r / --move=/virus

발견된 바이러스를 삭제하면서 스캔하는 방법

 clamscan -r / --remove