Fsutil command sparse in Windows
Applies to : Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012. Windows 10, Windows 8.1, Windows 8, Windows Server 2008 R2, Windows 7.
The Fsutil sparse command manages sparse files (a sparse file is a type of computer file that tries to use the system space to be more efficient when the file is partially empty). To learn how to use this command, please see the example below.
The syntax of the Fsutil command is sparse
fsutil sparse [queryflag] fsutil sparse [queryrange] fsutil sparse [setflag] fsutil sparse [setrange]
Parameters
ParametersDescriptionqueryflag Sparse query. queryrange Scans a file and searches for ranges that may contain nonzero data (other data 0). setflag Marking a specified file is sparse. setrange Enter a range specified in a file by 0. Specify the full path to the file including the file name and extension, for example: C: documentsfilename.txt. Specify the offset in the file to mark it as sparse. Specifies the length of the area in the file to be marked as sparse (in bytes).Note
- A sparse file is a file that has one or more data areas that have not been allocated in it. A program will see these unallocated regions contain bytes of zero value, but these zeros do not use any disk space. All data with meaning or nonzero data is allocated, while all data has no meaning (large data series including 0s) are not allocated. When a sparse file is read, the allocated data returns as stored and the unallocated data is returned, by default, as zeroes (based on the specification of the claim. Secret C2). Sparse file support allows data to be allocated from anywhere in the file.
- In a sparse file, a large range of zeros may not require disk space allocation. Space for nonzero data will be allocated in case the file is recorded (if needed).
- The operating system recognizes files with ranges containing zeros only when they are compressed or sparse.
- If the file is sparse or compressed, NTFS can allocate disk space in the file. This sets the byte range to 0s without increasing the file size.
For example
To mark a file named Sample.txt in the C: Temp folder as sparse, enter:
fsutil sparse setflag c:tempsample.txt
See more:
- The Fsutil reparsepoint command in Windows
- Fsutil resource command in Windows
- Fsutil repair command in Windows
4 ★ | 32 Vote
You should read it
May be interested
- Serverceipoptin command in Windows(applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
- Servermanagercmd command in Windows(applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
- Not 4k, new HDR is something you need to pay special attention to when choosing to buy a TV4k is something that is often said to be released every day when we watch videos or some tv commercials, which makes many people think that 4k is like a big leap in display technology.
- Set command in Windowsthe set command helps show, set or remove cmd.exe environment variables.
- Installing Windows without USB with WinToHDD Professional V3.2 software, priced at 29.95 USD is freeif unfortunately, you can't use any supported device for installation, don't worry, with wintohdd professional software worth 29.95 usd and it's free now. and install windows without usb.
- Setlocal command in Windowsthe setlocal command helps start the process of differentiating environment variables in a batch file. this process will continue until paired with the appropriate endlocal command or the batch file end.