mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 04:51:27 +00:00
Update cheatsheets
This commit is contained in:
21
linux/blkdiscard
Normal file
21
linux/blkdiscard
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# blkdiscard
|
||||
|
||||
> Discards device sectors on storage devices. Useful for SSDs.
|
||||
> More information: <https://manned.org/blkdiscard>.
|
||||
|
||||
- Discard all sectors on a device, removing all data:
|
||||
|
||||
`blkdiscard /dev/{{device}}`
|
||||
|
||||
- Securely discard all blocks on a device, removing all data:
|
||||
|
||||
`blkdiscard --secure /dev/{{device}}`
|
||||
|
||||
- Discard the first 100 MB of a device:
|
||||
|
||||
`blkdiscard --length {{100MB}} /dev/{{device}}`
|
||||
Reference in New Issue
Block a user