Skip to content

Instantly share code, notes, and snippets.

@rodrigobdz
Created February 20, 2018 08:07
Show Gist options
  • Save rodrigobdz/011264db77029c6b924fa66fbb30b042 to your computer and use it in GitHub Desktop.
Save rodrigobdz/011264db77029c6b924fa66fbb30b042 to your computer and use it in GitHub Desktop.
Create empty file with a certain file size
#!/bin/bash
# Create an empty file with size 10 MB
mkfile -n 10m foo
# Create an empty file with size 1 GB
mkfile -n 1g foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment