Create file with exact / specific size (Linux)

From ben.goodacre.name/tech

Jump to: navigation, search

Create a 250MB (MegaByte) file with random characters:

dd if=/dev/random of=250MB-file bs=1024 count=$((250*1024))
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox