Files
tldr/pages.zh/windows/cipher.md

20 lines
625 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# cipher
> 显示或更改 NTFS 卷上目录和文件的加密。
> 更多信息:<https://learn.microsoft.com/windows-server/administration/windows-commands/cipher>。
- 显示特定加密文件或目录的信息:
`cipher /c:{{path\to\file_or_directory}}`
- [e]ncrypt加密一个文件或目录后来添加到该目录的文件也会被加密因为该目录已被标记为加密
`cipher /e:{{path\to\file_or_directory}}`
- [d]ecrypt解密一个文件或目录
`cipher /d:{{path\to\file_or_directory}}`
- 安全地删除一个文件或目录:
`cipher /w:{{path\to\file_or_directory}}`