Home Create a large file with a given size with a pattern in Linux
Reply: 0

Create a large file with a given size with a pattern in Linux

user518
1#
user518 Published in July 16, 2018, 3:07 am

In Linux how can I create a large file with a given text or hex pattern (Like DEADBEEFDEADBEEFDEADBEEF ....)

I know dd can be used to create large files but it doesn't write desired text or hex pattern

dd if=/dev/urandom of=/tmp/bigfile bs=blocksize count=size

or

dd if=/dev/zero of=/tmp/bigfile bs=blocksize count=size

Quickly create a large file on a Linux system?

How to create a file with a given size in Linux?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.326233 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO