dd: align page throughout the platforms (#12919)

pull/28/head
Sebastiaan Speck 2024-06-10 19:27:34 +02:00 committed by GitHub
parent 4190c0395c
commit ad8e1abab8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 68 additions and 100 deletions

View File

@ -5,28 +5,24 @@
- Erstelle ein bootbares USB-Laufwerk von einer isohybriden Datei (wie `archlinux-xxxx.iso`) und zeige den Fortschritt an:
`dd if={{pfad/zu/datei.iso}} of=/dev/{{laufwerk}} status=progress`
`dd if={{pfad/zu/datei.iso}} of={{/dev/laufwerk}} status=progress`
- Klone ein USB-Laufwerk in ein anderes in 4MiB Blöcken, ignoriere Fehler und zeige den Fortschritt an:
`dd if=/dev/{{quell_laufwerk}} of=/dev/{{ziel_laufwerk}} bs=4M conv=noerror status=progress`
`dd if={{/dev/quell_laufwerk}} of={{/dev/ziel_laufwerk}} bs=4M conv=noerror status=progress`
- Erstelle eine Datei mit 100 zufälligen Bytes mithilfe des Zufall-Treibers des Kernels:
`dd if=/dev/urandom of={{pfad/zu/datei}} bs=100 count=1`
`dd bs=100 count={{1}} if=/dev/urandom of={{pfad/zu/datei}}`
- Teste die Schreibgeschwindigkeit eines Laufwerks:
`dd if=/dev/zero of={{pfad/zu/1GB_datei}} bs=1024 count=1000000`
`dd bs={{1024}} count={{1000000}} if=/dev/zero of={{pfad/zu/1GB_datei}}`
- Erstelle ein System-Backup als IMG Datei und zeige den Fortschritt an:
`dd if=/dev/{{laufwerk}} of={{pfad/zu/datei.img}} status=progress`
`dd if={{/dev/laufwerk}} of={{pfad/zu/datei.img}} status=progress`
- Stelle ein Laufwerk aus einer IMG Datei wieder her und zeige den Fortschritt an:
`dd if={{pfad/zu/datei.img}} of=/dev/{{laufwerk}} status=progress`
- Überprüfe den Fortschritt eines laufenden `dd`-Prozesses (Führe diesen Befehl von einer anderen Shell aus):
`kill -USR1 $(pgrep -x dd)`
`dd if={{pfad/zu/datei.img}} of={{/dev/laufwerk}} status=progress`

View File

@ -9,24 +9,20 @@
- Clona una unidad a otra unidad con un bloque de 4 MB, ignora el error y muestra el progreso:
`dd if={{/dev/dispositivo_de origen}} of={{/dev/dispositivo_de destino}} bs=4m conv=noerror status=progress`
`dd bs=4m conv=noerror if={{/dev/dispositivo_de origen}} of={{/dev/dispositivo_de destino}} status=progress`
- Genera un archivo con un número específico de bytes aleatorios utilizando el controlador aleatorio del núcleo:
`dd if=/dev/urandom of={{ruta/al/archivo_aleatorio}} bs=100 count={{1}}`
`dd bs={{100}} count={{1}} if=/dev/urandom of={{ruta/al/archivo_aleatorio}}`
- Compara el rendimiento de escritura de un disco:
`dd if=/dev/zero of={{ruta/para/archivo_1GB}} bs={{1024}} count={{1000000}}`
`dd bs={{1024}} count={{1000000}} if=/dev/zero of={{ruta/para/archivo_1GB}}`
- Genera una copia de seguridad del sistema en un archivo IMG y muestra el progreso:
`dd if=/dev/{{dispositivo_unidad}} of={{ruta/al/archivo.img}} status=progress`
- Restaura una unidad desde un archivo IMG y muestra el progreso:
`dd if={{ruta/al/archivo.img}} of={{/dev/unidad_dispositivo}} status=progress`
`dd if={{/dev/dispositivo_unidad}} of={{ruta/al/archivo.img}} status=progress`
- Comprueba el progreso de una operación `dd` en curso (ejecuta este comando desde otro intérprete de comandos):
`kill -USR1 $(pgrep -x dd)`
`kill -USR1 $(pgrep ^dd)`

View File

@ -5,11 +5,11 @@
- یک حافظه قابل حمل با قابلیت بوت شدن میسازد، برای مثال `archlinux-xxx.iso` :
`dd if={{path/to/file.iso}} of=/dev/{{usb_drive}}`
`dd if={{path/to/file.iso}} of={{/dev/usb_drive}}`
- محتویات یک درایو را در مکانی دیگر با بلوک های 4 مگابایتی کپی و همچنین از خطاها صرف نظر میکند:
`dd if=/dev/{{source_drive}} of=/dev/{{dest_drive}} bs=4194304 conv=noerror`
`dd bs=4194304 conv=noerror if={{/dev/source_drive}} of={{/dev/dest_drive}}`
- یک فایل ۱۰۰ بایتی تصادفی با استفاده از درایور تصادفی هسته بسازید:

View File

@ -5,7 +5,7 @@
- ساخت یک درایو USB قابل بوت از یک فایل iso (مثل `archlinux-xxx.iso`) و نمایش پیشرفت:
`dd status=progress if={{path/to/file.iso}} of={{/dev/usb_drive}}`
`dd if={{path/to/file.iso}} of={{/dev/usb_drive}} status=progress`
- کلون کردن یک درایو به یک درایو دیگر با اندازهٔ بلوک ۴ مگابایت و اعمال چیزهای نوشته شده پیش از خاتمهٔ دستور:
@ -21,7 +21,7 @@
- ساخت یک پشتیبان از سامانه و ذخیرهٔ آن در یک فایل IMG (می‌توان بعداً با تغییر `if` به `of` آن را بازسازی کرد):
`dd if={{/dev/drive_device}} of={{path/to/file.img}}`
`dd if={{/dev/drive_device}} of={{path/to/file.img}} status=progress`
- بررسی پیشرفت یک عملکرد در حال اجرای `dd` (این دستور را از یک پوستهٔ دیگر اجرا کنید):

View File

@ -5,20 +5,16 @@
- Crea un disco USB avviabile da un file ISO e mostra il progresso:
`dd if={{file.iso}} of=/dev/{{disco_usb}} status=progress`
`dd if={{percorso/del/file.iso}} of={{/dev/disco_usb}} status=progress`
- Clona un disco in un altro a blocchi di 4MB, ignora gli errori e mostra il progresso:
`dd if=/dev/{{disco_sorgente}} of=/dev/{{disco_destinazione}} bs=4M conv=noerror status=progress`
`dd bs=4M conv=noerror status=progress if={{/dev/disco_sorgente}} of={{/dev/disco_destinazione}}`
- Genera un file di 100 byte randomici utilizzando il driver random del kernel:
`dd if=/dev/urandom of={{file_random}} bs=100 count=1`
`dd bs=100 count={{1}} if=/dev/urandom of={{percorso/del/file_random}}`
- Testa la performance in scrittura di un disco:
`dd if=/dev/zero of={{file_1GB}} bs=1024 count=1000000`
- Mostra il progresso di un'operazione `dd` in corso (comando da eseguire in un'altra shell):
`kill -USR1 $(pgrep -x dd)`
`dd bs={{1024}} count={{1000000}} if=/dev/zero of={{percorso/del/file_1GB}}`

View File

@ -9,24 +9,20 @@
- 4 MiB 블록이 있는 다른 드라이브에 드라이브를 복제하고, 오류를 무시하고 진행 상황을 표시:
`dd if={{/dev/소스_드라이브}} of={{/dev/목적지_드라이브}} bs=4m conv=noerror status=progress`
`dd bs=4M conv=noerror if={{/dev/소스_드라이브}} of={{/dev/목적지_드라이브}} status=progress`
- 커널 랜덤 드라이버를 사용하여 랜덤 100바이트의 파일 생성:
- 커널 랜덤 드라이버를 사용하여, 특정 수의 임의 바이트 크기를 가지는 파일 생성:
`dd if=/dev/urandom of={{경로/대상/랜덤_파일}} bs=100 count={{1}}`
`dd bs={{100}} count={{1}} if=/dev/urandom of={{경로/대상/랜덤_파일}}`
- 디스크의 쓰기 성능 벤치마크:
`dd if=/dev/zero of={{경로/대상/1GB_파일}} bs={{1024}} count={{1000000}}`
`dd bs={{1M}} count={{1000000}} if=/dev/zero of={{경로/대상/1GB_파일}}`
- IMG 파일로 시스템 백업을 생성하고 진행 상황 표시:
`dd if={{/dev/드라이브_장치}} of={{경로/대상/파일.img}} status=progress`
- IMG 파일에서 드라이브를 복원하고 진행 상황을 표시:
`dd if={{경로/대상/파일.img}} of={{/dev/드라이브_장치}} status=progress`
- 진행 중인 `dd` 작업의 진행 상황을 확인 (다른 셸에서 이 명령어 실행):
`kill -USR1 $(pgrep -x dd)`

View File

@ -5,11 +5,11 @@
- Maak een opstartbare USB-schijf van een isohybrid-bestand (zoals `archlinux-xxx.iso`):
`dd if={{pad/naar/bestand.iso}} of=/dev/{{usb_schijf}}`
`dd if={{pad/naar/bestand.iso}} of={{/dev/usb_schijf}}`
- Kopieer een schijf naar een andere schijf met een blokgrootte van 4 MiB en schrijf alle gegevens voordat het commando eindigt:
`dd bs=4194304 conv=fsync if=/dev/{{bron_schijf}} of=/dev/{{doel_schijf}}`
`dd bs=4194304 conv=fsync if={{/dev/bron_schijf}} of={{/dev/doel_schijf}}`
- Genereer een bestand met een specifiek aantal willekeurige bytes met behulp van de kernel random driver:
@ -19,6 +19,6 @@
`dd bs={{1024}} count={{1000000}} if=/dev/zero of={{pad/naar/bestand_1GB}}`
- Maak een systeemback-up en sla deze op in een IMG bestand (kan later worden hersteld door `if` en `of` om te wisselen):
- Maak een systeemback-up, sla deze op in een IMG bestand (kan later worden hersteld door `if` en `of` om te wisselen) en toon de voortgang:
`dd if={{/dev/schijf_apparaat}} of={{pad/naar/bestand.img}}`
`dd if={{/dev/schijf_apparaat}} of={{pad/naar/bestand.img}} status=progress`

View File

@ -5,7 +5,7 @@
- Maak een opstartbare USB-schijf van een isohybrid-bestand (zoals `archlinux-xxx.iso`) en toon de voortgang:
`dd status=progress if={{pad/naar/bestand.iso}} of={{/dev/usb_schijf}}`
`dd if={{pad/naar/bestand.iso}} of={{/dev/usb_schijf}} status=progress`
- Kopieer een schijf naar een andere schijf met een blokgrootte van 4 MiB en schrijf alle gegevens voordat het commando eindigt:
@ -19,9 +19,9 @@
`dd bs={{1M}} count={{1000000}} if=/dev/zero of={{pad/naar/bestand_1GB}}`
- Maak een systeemback-up en sla deze op in een IMG bestand (kan later worden hersteld door `if` en `of` om te wisselen):
- Maak een systeemback-up, sla deze op in een IMG bestand (kan later worden hersteld door `if` en `of` om te wisselen) en toon de voortgang:
`dd if={{/dev/schijf_apparaat}} of={{pad/naar/bestand.img}}`
`dd if={{/dev/schijf_apparaat}} of={{pad/naar/bestand.img}} status=progress`
- Bekijk de voortgang van een lopende `dd` operatie (voer dit commando uit vanaf een andere shell):

View File

@ -9,23 +9,19 @@
- Kopieer een schijf naar een andere schijf met een blokgrootte van 4 MiB, negeer fouten en toon de voortgang:
`dd if={{/dev/bron_apparaat}} of={{/dev/doel_apparaat}} bs=4m conv=noerror status=progress`
`dd bs=4m conv=noerror if={{/dev/bron_apparaat}} of={{/dev/doel_apparaat}} status=progress`
- Genereer een bestand met 100 willekeurige bytes met behulp van de kernel random driver:
- Genereer een bestand met een specifiek aantal willekeurige bytes met behulp van de kernel random driver:
`dd if=/dev/urandom of={{path/to/random_file}} bs=100 count={{1}}`
`dd bs={{100}} count={{1}} if=/dev/urandom of={{path/to/random_file}}`
- Benchmark de schrijfsnelheid van een schijf:
`dd if=/dev/zero of={{pad/naar/bestand_1GB}} bs={{1024}} count={{1000000}}`
`dd bs={{1024}} count={{1000000}} if=/dev/zero of={{pad/naar/bestand_1GB}}`
- Maak een systeemback-up en sla deze op in een IMG bestand en toon de voortgang:
- Maak een systeemback-up, sla deze op in een IMG bestand (kan later worden hersteld door `if` en `of` om te wisselen) en toon de voortgang:
`dd if=/dev/{{schijf_apparaat}} of={{pad/naar/bestand.img}} status=progress`
- Herstel een schijf vanuit een IMG bestand en toon de voortgang:
`dd if={{pad/naar/bestand.img}} of={{/dev/schijf_apparaat}} status=progress`
`dd if={{/dev/schijf_apparaat}} of={{pad/naar/bestand.img}} status=progress`
- Bekijk de voortgang van een lopende `dd` operatie (voer dit commando uit vanaf een andere shell)::

View File

@ -3,30 +3,22 @@
> Converte e copia um arquivo.
> Mais informações: <https://manned.org/man/dd.1p>.
- Cria um USB drive bootável a partir de um arquivo isohybrid (como uma archlinux-xxx.iso) e mostra o progresso:
- Cria um USB drive bootável a partir de um arquivo isohybrid (como uma `archlinux-xxx.iso`):
`dd if={{arquivo.iso}} of=/dev/{{usb_drive}} status=progress`
`dd if={{caminho/para/arquivo.iso}} of={{/dev/usb_drive}}`
- Clona um drive para outro drive com 4 MiB block, ignora erros e mostra o progresso:
- Clona um drive para outro drive com 4 MiB block e ignora erros:
`dd if=/dev/{{drive_fonte}} of=/dev/{{drive_destino}} bs=4M conv=noerror status=progress`
`dd bs=4194304 conv=noerror if={{/dev/drive_fonte}} of={{/dev/drive_destino}}`
- Gera um arquivo com 100 bytes aleatórios utilizando o kernel random driver:
- Gera um arquivo com um número específico de bytes aleatórios utilizando o kernel random driver:
`dd if=/dev/urandom of={{arquivo_random}} bs=100 count=1`
`dd bs={{100}} count={{1}} if=/dev/urandom of={{caminho/para/arquivo_random}}`
- Faz o benchmark da performance de escrita de um disco:
`dd if=/dev/zero of={{arquivo_1GB}} bs=1024 count=1000000`
`dd bs={{1024}} count={{1000000}} if=/dev/zero of={{caminho/para/arquivo_1GB}}`
- Gera um backup do sistema em um arquivo IMG e mostra o progresso:
`dd if=/dev/{{dispositivo_drive}} of={{caminho/para/arquivo.img}} status=progress`
- Restaura um drive a partir de um arquivo IMG e mostra o progresso:
`dd if={{caminho/para/arquivo.img}} of=/dev/{{dispositivo_drive}} status=progress`
- Checa o progresso de um processo `dd` rodando (rode esse comando de outro shell):
`kill -USR1 $(pgrep -x dd)`
`dd if={{/dev/dispositivo_drive}} of={{caminho/para/arquivo.img}} status=progress`

View File

@ -5,16 +5,16 @@
- Cria uma unidade USB inicializável a partir de um arquivo isohybrid (tal como `archlinux-xxx.iso`):
`dd if={{arquivo.iso}} of=/dev/{{unidade_usb}}`
`dd if={{caminho/para/arquivo.iso}} of={{/dev/unidade_usb}}`
- Clona uma unidade para outra unidade com bloco de 4 MB e ignora erro:
- Clona uma unidade para outra unidade com bloco de 4 MB e ignora qualquer erro:
`dd if=/dev/{{unidade_origem}} of=/dev/{{unidade_destino}} bs=4m conv=noerror`
`dd bs=4m conv=noerror if={{/dev/unidade_origem}} of={{/dev/unidade_destino}}`
- Gera um arquivo de 100 bytes aleatórios usando o driver aleatório do kernel:
- Gera um arquivo de número específico de bytes aleatórios usando o driver aleatório do kernel:
`dd if=/dev/urandom of={{arquivo_aleatório}} bs=100 count=1`
`dd bs={{100}} count={{1}} if=/dev/urandom of={{caminho/para/arquivo_aleatório}}`
- Compara o desempenho de gravação de um disco:
`dd if=/dev/zero of={{arquivo_1GB}} bs=1024 count=1000000`
`dd bs={{1024}} count={{1000000}} if=/dev/zero of={{caminho/para/arquivo_1GB}}`

View File

@ -5,16 +5,16 @@
- 从 isohybrid 文件(如 archlinux-xxx.iso制作可用于引导系统启动的 USB 驱动器:
`dd if={{文件.iso}} of=/dev/{{usb 设备}}`
`dd if={{文件.iso}} of={{/dev/usb 设备}}`
- 将驱动器克隆到具有 4MB 块的另一个驱动器并忽略错误:
`dd if=/dev/{{源设备}} of=/dev/{{目标设备}} bs=4m conv=noerror`
`dd bs=4m conv=noerror if={{/dev/源设备}} of={{/dev/目标设备}}`
- 使用内核随机驱动程序生成 100 个随机字节的文件:
`dd if=/dev/urandom of={{目标驱动器,接收随机数据文件名}} bs=100 count=1`
`dd bs=100 count={{1}} if=/dev/urandom of={{目标驱动器,接收随机数据文件名}}`
- 对磁盘的写入性能进行基准测试:
`dd if=/dev/zero of={{1GB 的文件名}} bs=1024 count=1000000`
`dd bs={{1024}} count={{1000000}} if=/dev/zero of={{1GB 的文件名}}`

View File

@ -5,11 +5,11 @@
- Make a bootable USB drive from an isohybrid file (such as `archlinux-xxx.iso`):
`dd if={{path/to/file.iso}} of=/dev/{{usb_drive}}`
`dd if={{path/to/file.iso}} of={{/dev/usb_drive}}`
- Clone a drive to another drive with 4 MiB block size and flush writes before the command terminates:
`dd bs=4194304 conv=fsync if=/dev/{{source_drive}} of=/dev/{{dest_drive}}`
`dd bs=4194304 conv=fsync if={{/dev/source_drive}} of={{/dev/dest_drive}}`
- Generate a file with a specific number of random bytes by using kernel random driver:
@ -19,6 +19,6 @@
`dd bs={{1024}} count={{1000000}} if=/dev/zero of={{path/to/file_1GB}}`
- Create a system backup and save it into an IMG file (can be restored later by swapping `if` and `of`):
- Create a system backup, save it into an IMG file (can be restored later by swapping `if` and `of`), and show the progress:
`dd if={{/dev/drive_device}} of={{path/to/file.img}}`
`dd if={{/dev/drive_device}} of={{path/to/file.img}} status=progress`

View File

@ -5,7 +5,7 @@
- Make a bootable USB drive from an isohybrid file (such as `archlinux-xxx.iso`) and show the progress:
`dd status=progress if={{path/to/file.iso}} of={{/dev/usb_drive}}`
`dd if={{path/to/file.iso}} of={{/dev/usb_drive}} status=progress`
- Clone a drive to another drive with 4 MiB block size and flush writes before the command terminates:
@ -19,9 +19,9 @@
`dd bs={{1M}} count={{1000000}} if=/dev/zero of={{path/to/file_1GB}}`
- Create a system backup and save it into an IMG file (can be restored later by swapping `if` and `of`):
- Create a system backup, save it into an IMG file (can be restored later by swapping `if` and `of`), and show the progress:
`dd if={{/dev/drive_device}} of={{path/to/file.img}}`
`dd if={{/dev/drive_device}} of={{path/to/file.img}} status=progress`
- Check the progress of an ongoing `dd` operation (run this command from another shell):

View File

@ -5,27 +5,23 @@
- Make a bootable USB drive from an isohybrid file (such like `archlinux-xxx.iso`) and show the progress:
`dd if={{path/to/file.iso}} of={{/dev/usb_device}} status=progress`
`dd if={{path/to/file.iso}} of={{/dev/usb_drive}} status=progress`
- Clone a drive to another drive with 4 MB block, ignore error and show the progress:
`dd if={{/dev/source_device}} of={{/dev/dest_device}} bs=4m conv=noerror status=progress`
`dd bs=4m conv=noerror if={{/dev/source_drive}} of={{/dev/dest_drive}} status=progress`
- Generate a file of 100 random bytes by using kernel random driver:
- Generate a file with a specific number of random bytes by using kernel random driver:
`dd if=/dev/urandom of={{path/to/random_file}} bs=100 count={{1}}`
`dd bs={{100}} count={{1}} if=/dev/urandom of={{path/to/random_file}}`
- Benchmark the write performance of a disk:
`dd if=/dev/zero of={{path/to/1GB_file}} bs={{1024}} count={{1000000}}`
`dd bs={{1024}} count={{1000000}} if=/dev/zero of={{path/to/1GB_file}}`
- Generate a system backup into an IMG file and show the progress:
- Create a system backup, save it into an IMG file (can be restored later by swapping `if` and `of`), and show the progress:
`dd if=/dev/{{drive_device}} of={{path/to/file.img}} status=progress`
- Restore a drive from an IMG file and show the progress:
`dd if={{path/to/file.img}} of={{/dev/drive_device}} status=progress`
`dd if={{/dev/drive_device}} of={{path/to/file.img}} status=progress`
- Check the progress of an ongoing `dd` operation (run this command from another shell):