From 289691e7462ab299b83d6ab47952c18ff7cecf27 Mon Sep 17 00:00:00 2001 From: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Date: Tue, 11 Jun 2024 06:47:57 +0200 Subject: [PATCH] pages*: add `/dev` to the placeholder (#12923) --- pages.pt_BR/common/mpv.md | 2 +- pages.zh/common/mpv.md | 2 +- pages.zh/linux/blkdiscard.md | 6 +++--- pages/common/dcfldd.md | 4 ++-- pages/common/mpv.md | 2 +- pages/common/qemu.md | 2 +- pages/linux/blkdiscard.md | 6 +++--- pages/linux/hdparm.md | 10 +++++----- pages/linux/losetup.md | 6 +++--- pages/linux/mlabel.md | 2 +- pages/linux/wodim.md | 6 +++--- pages/linux/zbarcam.md | 2 +- 12 files changed, 25 insertions(+), 25 deletions(-) diff --git a/pages.pt_BR/common/mpv.md b/pages.pt_BR/common/mpv.md index 7a2d28dd91..f5b27fb0a7 100644 --- a/pages.pt_BR/common/mpv.md +++ b/pages.pt_BR/common/mpv.md @@ -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}}` diff --git a/pages.zh/common/mpv.md b/pages.zh/common/mpv.md index 356830baaf..201ced2bb8 100644 --- a/pages.zh/common/mpv.md +++ b/pages.zh/common/mpv.md @@ -29,4 +29,4 @@ - 播放摄像头或其他设备的输出: -`mpv /dev/{{video0}}` +`mpv {{/dev/video0}}` diff --git a/pages.zh/linux/blkdiscard.md b/pages.zh/linux/blkdiscard.md index fa4cf42076..3b59c8f82a 100644 --- a/pages.zh/linux/blkdiscard.md +++ b/pages.zh/linux/blkdiscard.md @@ -5,12 +5,12 @@ - 丢弃设备上的所有扇区,删除所有数据: -`blkdiscard /dev/{{设备名}}` +`blkdiscard {{/dev/设备名}}` - 安全地丢弃设备上的所有块,删除所有数据: -`blkdiscard --secure /dev/{{设备名}}` +`blkdiscard --secure {{/dev/设备名}}` - 丢弃设备的前 100 MB: -`blkdiscard --length {{100MB}} /dev/{{设备名}}` +`blkdiscard --length {{100MB}} {{/dev/设备名}}` diff --git a/pages/common/dcfldd.md b/pages/common/dcfldd.md index 48520fc7ee..37d1fa4225 100644 --- a/pages/common/dcfldd.md +++ b/pages/common/dcfldd.md @@ -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}}` diff --git a/pages/common/mpv.md b/pages/common/mpv.md index 62355d4cea..344608b735 100644 --- a/pages/common/mpv.md +++ b/pages/common/mpv.md @@ -34,4 +34,4 @@ - Display the output of webcam or other video input device: -`mpv /dev/{{video0}}` +`mpv {{/dev/video0}}` diff --git a/pages/common/qemu.md b/pages/common/qemu.md index 8d463760d4..38df98e3d4 100644 --- a/pages/common/qemu.md +++ b/pages/common/qemu.md @@ -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}}` diff --git a/pages/linux/blkdiscard.md b/pages/linux/blkdiscard.md index 3937625e24..adc701456d 100644 --- a/pages/linux/blkdiscard.md +++ b/pages/linux/blkdiscard.md @@ -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}}` diff --git a/pages/linux/hdparm.md b/pages/linux/hdparm.md index fda0722460..89da8d6500 100644 --- a/pages/linux/hdparm.md +++ b/pages/linux/hdparm.md @@ -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: diff --git a/pages/linux/losetup.md b/pages/linux/losetup.md index 78a47064cb..2bb5fbf0ee 100644 --- a/pages/linux/losetup.md +++ b/pages/linux/losetup.md @@ -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}}` diff --git a/pages/linux/mlabel.md b/pages/linux/mlabel.md index 005c5af29b..9eb711c8ec 100644 --- a/pages/linux/mlabel.md +++ b/pages/linux/mlabel.md @@ -5,4 +5,4 @@ - Set a filesystem label: -`mlabel -i /dev/{{sda}} ::"{{new_label}}"` +`mlabel -i {{/dev/sda}} ::"{{new_label}}"` diff --git a/pages/linux/wodim.md b/pages/linux/wodim.md index c6372403ef..aef2d216d6 100644 --- a/pages/linux/wodim.md +++ b/pages/linux/wodim.md @@ -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}}` diff --git a/pages/linux/zbarcam.md b/pages/linux/zbarcam.md index 1021328b60..133a7a4e93 100644 --- a/pages/linux/zbarcam.md +++ b/pages/linux/zbarcam.md @@ -17,4 +17,4 @@ - Define capture device: -`zbarcam /dev/{{video_device}}` +`zbarcam {{/dev/video_device}}`