Operating System - Linux
1821410 Members
2696 Online
109633 Solutions
New Discussion юеВ

How to create a 50MB & 100MB files

 
SOLVED
Go to solution
Rosli Ahmad
Frequent Advisor

How to create a 50MB & 100MB files

Hi,
I'm wondering if there's a quick and dirty way to create a sample 50MB & 100MB files for testing purposes. I'm in the midst of a throughput testing and need to sample files for comparison.

Also, what's the command to use to capture/ measure execution time? Is it 'time' command?
5 REPLIES 5
NiCK_76
Respected Contributor
Solution

Re: How to create a 50MB & 100MB files

hi Rosli Ahmad ,

dd bs=50M if=/dev/zero of=aaa count=1
dd bs=100M if=/dev/zero of=aaa count=1
NiCK
just for fun
Rosli Ahmad
Frequent Advisor

Re: How to create a 50MB & 100MB files

Thanks NiCK, any idea how to intepret time output?
NiCK_76
Respected Contributor

Re: How to create a 50MB & 100MB files

Hi Rosli Ahmad ,

just press "Ctrl+C" to stop it.

NiCK
just for fun
Huc_1
Honored Contributor

Re: How to create a 50MB & 100MB files

I am not sure but maybe this is what you ask for ?

#time -E dd bs=50M if=/dev/zero of=aaa count=1

notice the -E there are many options this one is for Hour, Min, sec more discriptions are to be found in

# man 2 time

Hope this is what you required?

J-P Huc
Smile I will feel the difference
Huc_1
Honored Contributor

Re: How to create a 50MB & 100MB files

Zero points for my previous reply please It is wrong !

this should read

# time ├В┬┤ a command ├В┬┤

You will find more explainations about the output format in following man page

man 2 times


J-P
Smile I will feel the difference