![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a command history feature in a simple UNIX shell using C | -=Cn=- | Shell Programming and Scripting | 2 | 11-12-2007 09:04 PM |
| Help with a shell script for creating a log file | heprox | Shell Programming and Scripting | 2 | 11-13-2006 10:00 PM |
| Creating database in shell, how?! | vants | UNIX for Advanced & Expert Users | 1 | 10-18-2005 04:00 PM |
| Creating my first Shell Script | plmahan | Shell Programming and Scripting | 1 | 11-21-2004 07:32 PM |
| Creating new shell in C | passat | High Level Programming | 4 | 06-06-2001 08:52 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
creating file of 1MB using shell command?
Hi everybody in the forum,
I want to create an empty file of say some 1MB ,i mean at the command line itself.How is this possible??????EEK! |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
when generating files of huge size, it is better you attack from the block size thereby reducing the count for a 1 MB file, dd if=/dev/zero of=output.file bs=1024 count=1024 time taken = 0.13 s dd if=/dev/zero of=output.file bs=1048576 count=1 time taken = 0.08 s it is just a difference of (0.13 - 0.08) s but consider generating some 200 MB files attacking block size would surely provide a difference. |
|||
| Google UNIX.COM |