clamscanの–excludeオプション

スポンサーリンク
[root@trippyboy ~]# cd /tmp
[root@trippyboy ~]#
[root@trippyboy tmp]# mkdir clamscan-test
[root@trippyboy tmp]#
[root@trippyboy tmp]# touch clamscan-test/system
[root@trippyboy tmp]# touch clamscan-test/syslog
[root@trippyboy tmp]# mkdir clamscan-test/sys-ml/   
[root@trippyboy tmp]# touch clamscan-test/sys-ml/mail1
[root@trippyboy tmp]#
[root@trippyboy tmp]# find /tmp/clamscan-test/
/tmp/clamscan-test/
/tmp/clamscan-test/sys-ml
/tmp/clamscan-test/sys-ml/mail1
/tmp/clamscan-test/syslog
/tmp/clamscan-test/system
[root@trippyboy tmp]#
[root@trippyboy tmp]# clamscan -r /tmp/clamscan-test/ --exclude-dir=/sys
/tmp/clamscan-test/sys-ml: Excluded
/tmp/clamscan-test/syslog: Empty file
/tmp/clamscan-test/system: Empty file

----------- SCAN SUMMARY -----------
Known viruses: 962969
Engine version: 0.97
Scanned directories: 1
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 5.913 sec (0 m 5 s)
[root@trippyboy tmp]# 
[root@trippyboy tmp]# 
[root@trippyboy tmp]# 
[root@trippyboy tmp]# clamscan -r /tmp/clamscan-test/ --exclude-dir=^/sys
/tmp/clamscan-test/sys-ml/mail1: Empty file
/tmp/clamscan-test/syslog: Empty file
/tmp/clamscan-test/system: Empty file

----------- SCAN SUMMARY -----------
Known viruses: 962969
Engine version: 0.97
Scanned directories: 2
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 6.491 sec (0 m 6 s)
[root@trippyboy tmp]# 

コメント

タイトルとURLをコピーしました