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
clamscan Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# clamscan
> A command-line virus scanner.
> More information: <https://docs.clamav.net/manual/Usage/Scanning.html#clamscan>.
- Scan a file for vulnerabilities:
`clamscan {{path/to/file}}`
- Scan all files recursively in a specific directory:
`clamscan -r {{path/to/directory}}`
- Scan data from `stdin`:
`{{command}} | clamscan -`
- Specify a virus database file or directory of files:
`clamscan --database {{path/to/database_file_or_directory}}`
- Scan the current directory and output only infected files:
`clamscan --infected`
- Print the scan report to a log file:
`clamscan --log {{path/to/log_file}}`
- Move infected files to a specific directory:
`clamscan --move {{path/to/quarantine_directory}}`
- Remove infected files:
`clamscan --remove yes`