compact: add page (#22805)

Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
This commit is contained in:
Ayushmann Ghodture
2026-06-19 07:09:24 +05:30
committed by GitHub
parent 234d0bdf05
commit 2baa612037
+24
View File
@@ -0,0 +1,24 @@
# compact
> Display or change the compression state of files and directories on NTFS partitions.
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/compact>.
- Display the compression status of files in the current directory:
`compact`
- Compress a specific file:
`compact /c {{path\to\file}}`
- Uncompress a specific file:
`compact /u {{path\to\file}}`
- Compress all files in a directory and its subdirectories:
`compact /c /s {{path\to\directory}}`
- Uncompress all files in a directory and its subdirectories:
`compact /u /s {{path\to\directory}}`