Skip to content

Instantly share code, notes, and snippets.

@yuchdev
Last active September 23, 2021 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuchdev/3443e1cb87e062497efe02476d77729a to your computer and use it in GitHub Desktop.
Save yuchdev/3443e1cb87e062497efe02476d77729a to your computer and use it in GitHub Desktop.
Linux: dd with progress
#!/bin/bash
# Method 1
dd if=/dev/urandom of=/dev/null status=progress
# Method 2
# You just need to enter a controlT character from the keyboard while the dd command is executing.
# By pressing the controlT character, you are sending the same SIGINFO signal to the dd command
# that the command pkill -INFO -x dd sends.
# Method 3
dd if=/dev/urandom | pv | of=/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment