mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-11 17:15:40 +02:00
clamdscan: add page (#6877)
This commit is contained in:
parent
760db1427d
commit
5cf2031520
1 changed files with 36 additions and 0 deletions
36
pages/common/clamdscan.md
Normal file
36
pages/common/clamdscan.md
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# clamdscan
|
||||||
|
|
||||||
|
> A command-line virus scanner using the ClamAV Daemon.
|
||||||
|
> More information: <https://www.clamav.net>.
|
||||||
|
|
||||||
|
- 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`
|
||||||
|
|
||||||
|
- Output 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`
|
Loading…
Add table
Reference in a new issue