To clean infected files or directories, or move them to a quarantine location on your network.
The following examples show how you can use response options to respond to a virus attack. The examples assume that the scanner is available in your search path.
Example 1
To scan and clean all files in the /usr/dos directory and all of its subdirectories, type:
./vscanx -cr /usr/dos
The program scans /usr/dos and its subdirectories automatically, and cleans any infected files that it encounters.
Example 2
To scan and clean all files in the /usr/dos directory and its subdirectories, but ignore any other file systems that are mounted, type:
./vscanx -cr --one-file-system /usr/dos
The program scans without moving across file systems, and cleans any infected files that it detects.
Example 3
To scan all files, except compressed files, in the /usr/dos directory and its subdirectories, and to move any infected files to /usr/local/viruses, type:
./vscanx -m /usr/local/viruses -r --ignore-compressed /usr/dos
Example 4
To scan a file with a name prefixed with "-", type:
./vscanx -c -v - -myfile
The program scans the named file. It cleans any detected viruses and issues a progress message. This format avoids confusion between the names of the options and the name of the target. Without the "-" option, the vscanx command appears to have three options and no target:
./vscanx -c -v -myfile
This information and more can be found at http://virexhelp.com/