fix
This commit is contained in:
parent
17e3bc0c75
commit
a3b145a998
1 changed files with 6 additions and 6 deletions
|
@ -27,21 +27,21 @@ Start/Enable`clamav-freshclam.service` so that the virus definitions are kept r
|
||||||
### Starting the daemon
|
### Starting the daemon
|
||||||
|
|
||||||
> **Note:**
|
> **Note:**
|
||||||
> - You will need to run `freshclam` before starting the service for the first time or you will run into trouble/errors which will prevent ClamAV from starting correctly.
|
> - You will need to run `freshclam` before starting the service for the first time or you will run into trouble/errors which will prevent ClamAV from starting correctly.
|
||||||
> - The daemon is not needed if you only want to perform stand-alone scans.
|
> - The daemon is not needed if you only want to perform stand-alone scans.
|
||||||
|
|
||||||
The service is called `clamav-daemon.service`.
|
The service is called `clamav-daemon.service`.
|
||||||
|
|
||||||
### Scanning for viruses
|
### Scanning for viruses
|
||||||
`clamscan` can be used to scan certain files, home directories, or an entire system:
|
`clamscan` can be used to scan certain files, home directories, or an entire system:
|
||||||
```shell
|
```shell
|
||||||
clamscan myfile
|
clamscan myfile
|
||||||
clamscan --recursive --infected /home/archie
|
clamscan --recursive --infected /home/archie
|
||||||
clamscan --recursive --infected --exclude-dir='^/sys|^/dev' /
|
clamscan --recursive --infected --exclude-dir='^/sys|^/dev' /
|
||||||
```
|
```
|
||||||
|
|
||||||
If you would like `clamscan` to remove the infected file add to the command the `--remove` option, or you can use `--move=/dir` to quarantine them.
|
If you would like `clamscan` to remove the infected file add to the command the `--remove` option, or you can use `--move=/dir` to quarantine them.
|
||||||
|
|
||||||
You may also want `clamscan` to scan larger files. In this case, append the options `--max-filesize=4000M` and `--max-scansize=4000M` to the command. '4000M' is the largest possible value, and may be lowered as necessary.
|
You may also want `clamscan` to scan larger files. In this case, append the options `--max-filesize=4000M` and `--max-scansize=4000M` to the command. '4000M' is the largest possible value, and may be lowered as necessary.
|
||||||
|
|
||||||
Using the `-l /path/to/file` option will print the `clamscan` logs to a text file for locating reported infections.
|
Using the `-l /path/to/file` option will print the `clamscan` logs to a text file for locating reported infections.
|
||||||
|
|
Loading…
Reference in a new issue