1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 22:42:08 +02:00
tldr/pages/common/clamdscan.md
Vítor Henrique 5edbf734fb
pages*: improve page descriptions (#12558)
* pages*: improve page descriptions

* ical: improve page description

* cockpit-desktop: remove unneeded word from page description

* nc: improve description wording

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-04-25 19:58:21 -03:00

36 lines
769 B
Markdown

# clamdscan
> Scan for viruses using the ClamAV Daemon.
> More information: <https://docs.clamav.net/manual/Usage/Scanning.html#clamdscan>.
- Scan a file or directory for vulnerabilities:
`clamdscan {{path/to/file_or_directory}}`
- Scan data from `stdin`:
`{{command}} | clamdscan -`
- Scan the current directory and output only infected files:
`clamdscan --infected`
- Print the scan report to a log file:
`clamdscan --log {{path/to/log_file}}`
- Move infected files to a specific directory:
`clamdscan --move {{path/to/quarantine_directory}}`
- Remove infected files:
`clamdscan --remove`
- Use multiple threads to scan a directory:
`clamdscan --multiscan`
- Pass the file descriptor instead of streaming the file to the daemon:
`clamdscan --fdpass`