Skip to content

Instantly share code, notes, and snippets.

@bytemain
Created February 19, 2023 09:05
Show Gist options
  • Save bytemain/0859ba9d91289c0cc34eb90bf174bebb to your computer and use it in GitHub Desktop.
Save bytemain/0859ba9d91289c0cc34eb90bf174bebb to your computer and use it in GitHub Desktop.
linux 生成不同大小的文件
# 1g.txt zero
dd if=/dev/zero of=1g.txt bs=1M count=1000
# 10m.txt random
dd if=/dev/random of=10m.txt bs=1M count=10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment