dd if=/dev/zero bs=1M count=100 | tr '\000' '\377' > file

Source: https://www.linuxquestions.org/questions/linux-software-2/writing-0xff-with-the-dd-command-845232/

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar

WordPress.com Logo

You are commenting using your WordPress.com account. ( Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. ( Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. ( Log Out /  Change )

Cancel

Connecting to %s