Anta
Newbie
UID 5
Digest Posts
0
Credits 0
Posts 20
Reading Access 10
Registered Apr 25, 2007
Status Offline
|
|
|
|
to create a 1m file:
code:
$ dd if=/dev/zero of=./tmpfile bs=1024 count=1024
1024+0 records in
1024+0 records out
1048576 bytes transferred in 0.033088 secs (31690552 bytes/sec)
$ ls -lh ./tmpfile
-rw-r--r-- 1 user group 1m may 22 17:09 ./tmpfile
this file will be filled with \0's (nul's - man ascii).
if you really want to append this to another file, you could do
code:
$ cat somefile tmpfile > newfile
$ mv newfile somefile
after creating tmpfile.
cheers
|
|
|