Skip to content
Back to skills

Dd

ASecurity

Disk cloning, benchmarking, and file conversion tool with progress monitoring options.

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added February 8, 2026
toolsbash

Security analysis

A100/100

Scanned February 10, 2026

npx -y skills add majiayu000/claude-skill-registry --skill dd --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dd?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dd
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-dd/badge)](https://www.skillsdirectory.com/skills/majiayu000-dd)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dd
description: Disk cloning, benchmarking, and file conversion tool with progress monitoring options.
---

# dd — Disk Benchmarking

**Basic Usage**

```bash
# Disk benchmarking (1GB file with direct I/O)
dd if=/dev/zero of=./testfile bs=1G count=1 oflag=direct
# Output: 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 4.76527 s, 225 MB/s

# Read from /dev/urandom, 2*512 bytes
dd if=/dev/urandom of=/tmp/test.txt count=2 bs=512

# Create 1MB file with zero allocated blocks
dd if=/dev/zero of=foo1 seek=1 bs=1M count=0
```

**Progress Monitoring**

```bash
# Built-in progress (coreutils v8.24+)
dd if=/dev/zero of=/dev/null bs=128M status=progress

# Watch progress with USR1 signal
dd if=/dev/zero of=/dev/null bs=4KB &
pid=$!
kill -USR1 $pid

# Progress with pv and dialog
(pv -n /dev/zero | dd of=/dev/null bs=128M conv=notrunc,noerror) 2>&1 | \
  dialog --gauge "Running dd..." 10 70 0

# Progress with pv and zenity
(pv -n /dev/zero | dd of=/dev/null bs=128M conv=notrunc,noerror) 2>&1 | \
  zenity --title 'Cloning with dd' --progress
```

**Swap File Creation**

```bash
# Create 1GiB swap file
dd if=/dev/zero of=/swapfile count=1048576 bs=1024 status=progress
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
```

**Advanced Operations**

```bash
# Audio streaming over SSH (low quality)
dd if=/dev/dsp | ssh -c arcfour -C username@host dd of=/dev/dsp

# Clone disk to disk
dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync

# Create ISO from CD/DVD
dd if=/dev/cdrom of=image.iso bs=2048

# Convert DOS/Windows line endings to Linux
dd if=input.txt of=output.txt conv=unix
```

**Conversion Flags**

```bash
conv=notrunc    # Don't truncate output file
conv=noerror    # Continue on read errors
conv=sync       # Pad blocks with zeros
conv=ucase      # Convert to uppercase
conv=lcase      # Convert to lowercase
conv=ascii      # EBCDIC to ASCII
conv=ebcdic     # ASCII to EBCDIC
conv=block      # Convert to fixed-length records
conv=unblock    # Convert from fixed-length records
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.