mirror of https://github.com/CrimsonTome/tldr.git
commit
ac75bbf85d
|
@ -12,15 +12,15 @@
|
||||||
|
|
||||||
- mark disk as failed
|
- mark disk as failed
|
||||||
|
|
||||||
`mdadm {{/path/to/raid_device_file}} -f {/path/to/disk_device_file{}}`
|
`mdadm {{/path/to/raid_device_file}} -f {{/path/to/disk_device_file}}`
|
||||||
|
|
||||||
- remove disk
|
- remove disk
|
||||||
|
|
||||||
`mdadm {{/path/to/raid_device_file}} -r {/path/to/disk_device_file{}}`
|
`mdadm {{/path/to/raid_device_file}} -r {{/path/to/disk_device_file}}`
|
||||||
|
|
||||||
- add disk to array
|
- add disk to array
|
||||||
|
|
||||||
`mdadm {{/path/to/raid_device_file}} -a {/path/to/disk_device_file{}}`
|
`mdadm {{/path/to/raid_device_file}} -a {{/path/to/disk_device_file}}`
|
||||||
|
|
||||||
- show RAID info
|
- show RAID info
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
# shuf
|
||||||
|
|
||||||
|
> generate random permutations
|
||||||
|
|
||||||
|
- randomize the order of lines in a file and output the result
|
||||||
|
|
||||||
|
`shuf {{filename}}`
|
||||||
|
|
||||||
|
- only output the first n entries of the result
|
||||||
|
|
||||||
|
`shuf -n {{n}} {{filename}}`
|
||||||
|
|
||||||
|
- write output to another file
|
||||||
|
|
||||||
|
`shuf -o {{another_filename}} {{filename}}`
|
||||||
|
|
||||||
|
- generate random numbers in range
|
||||||
|
|
||||||
|
`shuf -i {{low}}-{{high}}`
|
Loading…
Reference in New Issue