Forrest logo
back to the clamscan tool

clamscan:tldr:aac30

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

The command "clamscan --move ${path-to-quarantine_directory}" is used to run a virus scan using the ClamAV antivirus software, and move any infected files to a specified quarantine directory.

Here is a breakdown of the command:

  • "clamscan" is the name of the command that initiates the ClamAV antivirus scan.
  • "--move" is an option or flag that tells ClamAV to move any infected files it finds during the scan.
  • "${path-to-quarantine_directory}" is a placeholder that should be replaced with the actual path to the directory where you want to quarantine the infected files.

When you execute this command, ClamAV will scan the specified files or directories for viruses and other malware. If it detects any infected files, it will move them to the specified quarantine directory for further analysis or isolation.

It's important to note that you need to have ClamAV installed on your system for this command to work. Additionally, the ${path-to-quarantine_directory} needs to be a valid and accessible directory in your file system.

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