How-to Create a 1M file

David A. Sinck plug-discuss@lists.PLUG.phoenix.az.us
Thu, 10 May 2001 14:41:50 -0700


\_ SMTP quoth Gilbert T. Gutierrez, Jr. on 5/10/2001 10:52 as having spake thusly:
\_
\_ I need to create a junk file that is precisely 1MB.  How would I go about
\_ doing that?

Sorry, I have to:

emacs /var/lib/netscape-communicator
C-SPC 
C-u 1 0 0 0 0 0 0 C-f
M-x write-region /tmp/1mgfile
C-x C-c

On a related topic, don't try to truncate 21M lines from a 468M file using vi.

David