Forrest logo
back to the clamscan tool

clamscan:tldr:1d641

clamscan: Scan the current directory and output only infected files.
$ clamscan --infected
try on your machine

The command "clamscan --infected" is used to run a virus scan on a system using ClamAV antivirus software.

Here's a breakdown of the command:

  • "clamscan" is the name of the command that initiates the virus scan process with ClamAV. It is the primary executable file used by ClamAV to scan files and directories for malware infections.

  • "--infected" is an option or flag that is passed to the clamscan command. When this flag is used, clamscan will only display the files that are infected with viruses or malware.

By running this command, the system will undergo a scan specifically for infected files, and only the results of infected files will be displayed, rather than scanning and listing all files on the system. This can be useful in situations where you want to quickly identify and handle infected files without going through the entire scan report.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the clamscan tool