Windows Command Line

Windows Command Line - Hiding a file or virus

attrib Attribute

h --> hidden

r --> read only

s --> system attribute

+/- --> set/clear

attrib +h Test.txt
attrib -h Test.txt

image-20201226070910507

attrib +r Test.txt
attrib -r Test.txt

image-20201226071217268

attrib +s Test.txt
attrib -s Test.txt

image-20201226071545926

attrib +h +r +s Test.txt #You can not find it anymore.
attrib -h -r -s Test.txt

image-20201226071944221

Unhide any file :

attrib -s -h /s /d
相信未来 - 该面对的绝不逃避,该执著的永不怨悔,该舍弃的不再留念,该珍惜的好好把握。
原文地址:https://www.cnblogs.com/keepmoving1113/p/14191381.html