![]() bytecode-unsigned Load unsigned bytecode bytecode Load bytecode from the database include-dir=REGEX Only scan directories matching REGEX include=REGEX Only scan file names matching REGEX exclude-dir=REGEX Don't scan directories matching REGEX exclude=REGEX Don't scan file names matching REGEX copy=DIRECTORY Copy infected files into DIRECTORY move=DIRECTORY Move infected files into DIRECTORY file-list=FILE -f FILE Scan files from FILE follow-file-symlinks Follow file symlinks (0 = never, 1 = direct, 2 = always) follow-dir-symlinks Follow directory symlinks (0 = never, 1 = direct, 2 = always) cross-fs Scan files and directories on other filesystems allmatch -z Continue scanning within file after finding a match recursive -r Scan subdirectories recursively log=FILE -l FILE Save scan report to FILE official-db-only Only load official signatures database=FILE/DIR -d FILE/DIR Load virus database from FILE or load all supported db files from DIR JSON will be printed and also-ĭropped to the temp directory if -leave-temps is enabled. gen-json Generate JSON description of scanned file(s). leave-temps Do not remove temporary files tempdir=DIRECTORY Create temporary files in DIRECTORY ![]() suppress-ok-results -o Skip printing OK files no-summary Disable summary at end of scanning stdout Write to stdout instead of stderr. archive-verbose -a Show filenames inside scanned archives You can print all available option with clamscan using the following command: clamscan -h You should see the following output: - SCAN SUMMARY. –recursive : This option will scan all directories and sub-directories.įor example, you can scan the /etc directory with the following command: clamscan -infected -remove -recursive /etc.–remove : This option removes all infected files from your system.–infected : This option display a list of all infected files.The basic syntax of Clamscan is shown below: clamscan Ī brief explanation of most commonly used options are shown below: You should get the following output: bytecode.cvd daily.cvd main.cvd Step 4 – Use Clamscan to Scan the DirectoryĬlamscan is used to scan files and directories for viruses and delete them immediately. You can list them with the following command: ls /var/lib/clamav/ Next, start the clamav-freshclam service and enable it to start at system reboot with the following command: systemctl start clamav-freshclamīy default, freshclam stores all databases inside /var/lib/clamav/ directory. Thu Sep 17 06:11:23 2020 -> bytecode.cvd database is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg) Once the database is updated, you should get the following output: Thu Sep 17 06:11:23 2020 -> ClamAV update process started at Thu Sep 17 06:11:23 2020 Next, update the database using the following command: freshclam You can stop it with the following command: systemctl stop clamav-freshclam You can update it over the internet using the freshclam command.īefore updating the database, you will need to stop the clamav-freshclam service. Next, you will need to update the virus database in order for scanning to work. Once the ClamAV has been installed, you can proceed to update the virus database. You can install it with the following command: apt-get install clamav clamav-daemon -y apt-get update -y Step 2 – Install ClamAVīy default, the ClamAV package is available in the Ubuntu 20.04 default repository. Once you are logged into your Ubuntu 20.04 server, run the following command to update your base system with the latest available packages. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page. Create a new server, choosing Ubuntu 20.04 as the operating system, with at least 2GB RAM. Step 1 – Create an Atlantic.Net Cloud Serverįirst, log in to your Atlantic.Net Cloud Server. A root password configured on your server.A fresh Ubuntu 20.04 VPS on the Cloud Platform.In this tutorial, we will explain how to install and use ClamAV on Ubuntu 20.04. ![]() It comes with several in-built tools, including a multi-threaded daemon and command-line interface to update the database automatically. ClamAV supports various archive formats including Tar, Gzip, Zip, Bzip2, OLE2, Cabinet, CHM, BinHex, SIS, and also supports all mail file formats. It is simple, easy to use, and capable to scan over one million viruses and trojans. ClamAV is free and open-source antivirus software that can be used to find trojans and malicious software and other viruses in your system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |