pages*: add /dev to the placeholder (#12923)

This commit is contained in:
Sebastiaan Speck 2024-06-11 06:47:57 +02:00 committed by GitHub
parent 1adda9dd4e
commit 289691e746
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 25 additions and 25 deletions

View File

@ -33,4 +33,4 @@
- Mostra a saída da webcam ou de outro dispositivo de entrada de vídeo:
`mpv /dev/{{video0}}`
`mpv {{/dev/video0}}`

View File

@ -29,4 +29,4 @@
- 播放摄像头或其他设备的输出:
`mpv /dev/{{video0}}`
`mpv {{/dev/video0}}`

View File

@ -5,12 +5,12 @@
- 丢弃设备上的所有扇区,删除所有数据:
`blkdiscard /dev/{{设备名}}`
`blkdiscard {{/dev/设备名}}`
- 安全地丢弃设备上的所有块,删除所有数据:
`blkdiscard --secure /dev/{{设备名}}`
`blkdiscard --secure {{/dev/设备名}}`
- 丢弃设备的前 100 MB
`blkdiscard --length {{100MB}} /dev/{{设备名}}`
`blkdiscard --length {{100MB}} {{/dev/设备名}}`

View File

@ -5,8 +5,8 @@
- Copy a disk to a raw image file and hash the image using SHA256:
`dcfldd if=/dev/{{disk_device}} of={{file.img}} hash=sha256 hashlog={{file.hash}}`
`dcfldd if={{/dev/disk_device}} of={{file.img}} hash=sha256 hashlog={{file.hash}}`
- Copy a disk to a raw image file, hashing each 1 GB chunk:
`dcfldd if=/dev/{{disk_device}} of={{file.img}} hash={{sha512|sha384|sha256|sha1|md5}} hashlog={{file.hash}} hashwindow={{1G}}`
`dcfldd if={{/dev/disk_device}} of={{file.img}} hash={{sha512|sha384|sha256|sha1|md5}} hashlog={{file.hash}} hashwindow={{1G}}`

View File

@ -34,4 +34,4 @@
- Display the output of webcam or other video input device:
`mpv /dev/{{video0}}`
`mpv {{/dev/video0}}`

View File

@ -22,4 +22,4 @@
- Boot from physical device (e.g. from USB to test bootable medium):
`qemu-system-i386 -hda /dev/{{storage_device}}`
`qemu-system-i386 -hda {{/dev/storage_device}}`

View File

@ -5,12 +5,12 @@
- Discard all sectors on a device, removing all data:
`blkdiscard /dev/{{device}}`
`blkdiscard {{/dev/device}}`
- Securely discard all blocks on a device, removing all data:
`blkdiscard --secure /dev/{{device}}`
`blkdiscard --secure {{/dev/device}}`
- Discard the first 100 MB of a device:
`blkdiscard --length {{100MB}} /dev/{{device}}`
`blkdiscard --length {{100MB}} {{/dev/device}}`

View File

@ -5,23 +5,23 @@
- Request the identification info of a given device:
`sudo hdparm -I /dev/{{device}}`
`sudo hdparm -I {{/dev/device}}`
- Get the Advanced Power Management level:
`sudo hdparm -B /dev/{{device}}`
`sudo hdparm -B {{/dev/device}}`
- Set the Advanced Power Management value (values 1-127 permit spin-down, and values 128-254 do not):
`sudo hdparm -B {{1}} /dev/{{device}}`
`sudo hdparm -B {{1}} {{/dev/device}}`
- Display the device's current power mode status:
`sudo hdparm -C /dev/{{device}}`
`sudo hdparm -C {{/dev/device}}`
- Force a drive to immediately enter standby mode (usually causes a drive to spin down):
`sudo hdparm -y /dev/{{device}}`
`sudo hdparm -y {{/dev/device}}`
- Put the drive into idle (low-power) mode, also setting its standby timeout:

View File

@ -9,7 +9,7 @@
- Attach a file to a given loop device:
`sudo losetup /dev/{{loop}} /{{path/to/file}}`
`sudo losetup {{/dev/loop}} /{{path/to/file}}`
- Attach a file to a new free loop device and scan the device for partitions:
@ -17,7 +17,7 @@
- Attach a file to a read-only loop device:
`sudo losetup --read-only /dev/{{loop}} /{{path/to/file}}`
`sudo losetup --read-only {{/dev/loop}} /{{path/to/file}}`
- Detach all loop devices:
@ -25,4 +25,4 @@
- Detach a given loop device:
`sudo losetup -d /dev/{{loop}}`
`sudo losetup -d {{/dev/loop}}`

View File

@ -5,4 +5,4 @@
- Set a filesystem label:
`mlabel -i /dev/{{sda}} ::"{{new_label}}"`
`mlabel -i {{/dev/sda}} ::"{{new_label}}"`

View File

@ -10,12 +10,12 @@
- Record ("burn") an audio-only disc:
`wodim dev=/dev/{{optical_drive}} -audio {{track*.cdaudio}}`
`wodim dev={{/dev/optical_drive}} -audio {{track*.cdaudio}}`
- Burn a file to a disc, ejecting the disc once done (some recorders require this):
`wodim -eject dev=/dev/{{optical_drive}} -data {{file.iso}}`
`wodim -eject dev={{/dev/optical_drive}} -data {{file.iso}}`
- Burn a file to the disc in an optical drive, potentially writing to multiple discs in succession:
`wodim -tao dev=/dev/{{optical_drive}} -data {{file.iso}}`
`wodim -tao dev={{/dev/optical_drive}} -data {{file.iso}}`

View File

@ -17,4 +17,4 @@
- Define capture device:
`zbarcam /dev/{{video_device}}`
`zbarcam {{/dev/video_device}}`