mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Base: Add a manual page for the shred utility
This commit is contained in:
parent
391c53025e
commit
925bea444b
Notes:
sideshowbarker
2024-07-17 06:51:48 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/925bea444b Pull-request: https://github.com/SerenityOS/serenity/pull/24496 Reviewed-by: https://github.com/gmta ✅
1 changed files with 39 additions and 0 deletions
39
Base/usr/share/man/man1/shred.md
Normal file
39
Base/usr/share/man/man1/shred.md
Normal file
|
@ -0,0 +1,39 @@
|
|||
## Name
|
||||
|
||||
shred - destroy a file with its content on disk
|
||||
|
||||
## Synopsis
|
||||
|
||||
```**sh
|
||||
$ shred [options...] [path...]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
`shred` destroys files' content on disk.
|
||||
|
||||
## Options
|
||||
|
||||
* `--help`: Display this message
|
||||
* `-v`, `--verbose`: Show progress during the shred operation
|
||||
* `-n`, `--iterations`: Iterations count of shred operation
|
||||
* `-u`: Deallocate and remove file after overwriting
|
||||
* `--random-source`: Get random bytes from a file other than /dev/random
|
||||
|
||||
## Arguments
|
||||
|
||||
* `path`: Files to shred
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
# shred a file and remove it aftewards
|
||||
$ shred -u /tmp/FILE_TO_BE_SHREDDED_AND_REMOVED
|
||||
# shred a file with 10 iterations
|
||||
$ shred --iterations 10 /tmp/FILE_TO_BE_SHREDDED
|
||||
# shred a file with verbose progress and 10 iterations
|
||||
$ shred -v --iterations 10 /tmp/FILE_TO_BE_SHREDDED
|
||||
```
|
||||
|
||||
## See also
|
||||
* [`rm`(1)](help://man/1/rm) to delete a file or directory without overwriting the content first
|
Loading…
Reference in a new issue