Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

41
clamdscan Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# clamdscan
> A command-line virus scanner 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`