Forrest logo
back to the clamdscan tool

clamdscan:tldr:fcaa7

clamdscan: Move infected files to a specific directory.
$ clamdscan --move ${path-to-quarantine_directory}
try on your machine

The command "clamdscan --move ${path-to-quarantine_directory}" is used to scan files and directories for malware using the ClamAV antivirus scanner (clamdscan) and move any infected files to a specified quarantine directory.

Explanation of the command:

  • "clamdscan": This is the command for running the ClamAV antivirus scanner. It scans files or directories for malware.

  • "--move": This option tells ClamAV to move any infected files it finds to a specific location instead of deleting or leaving them in their original location.

  • "${path-to-quarantine_directory}": This is a placeholder that should be replaced with the actual file path to the directory where you want infected files to be moved. It could be something like "/var/quarantine" or any other directory of your choice.

When you run the command with the correct path to the quarantine directory, ClamAV will scan the specified files or directories for malware. If any infected files are found, they will be moved to the designated quarantine directory.

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 clamdscan tool