Index of every page on this site: llms.txt
All skills
Run it yourself

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

  • 1 file
  • 2 KB
  • Updated 10 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/jyasuu/cheat-sheet/dd

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈23 tokens for metadata: the name and description. ≈474 when used: this file.

Description uses 1.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈91 characters, or 1.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

dd — Disk Benchmarking

Basic Usage

# 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

# 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

# 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

# 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

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

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at d3e2684. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 10 months ago

README badge

README badge for jyasuu/cheat-sheet/dd