mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-16 10:35:55 +02:00
clamscan: add page (#2815)
This commit is contained in:
parent
d498c53031
commit
32ffc76159
1 changed files with 36 additions and 0 deletions
36
pages/common/clamscan.md
Normal file
36
pages/common/clamscan.md
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# clamscan
|
||||||
|
|
||||||
|
> A command line virus scanner.
|
||||||
|
> Homepage: <https://www.clamav.net>.
|
||||||
|
|
||||||
|
- 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`
|
||||||
|
|
||||||
|
- Output 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`
|
Loading…
Add table
Reference in a new issue