SUMMARY: what's the command for creating a file of a particular size

From: alpha-osf-manager email acct <osf_at_python.corning.com>
Date: Fri, 13 Jun 1997 12:50:38 -0400 (EDT)

the to the 13 respondents
the command i was after was mkfile
however mkfile is a solaris utility & doesn't exist on dunix
here are some other creative answers i received:

yes | head -c bytes >filename

dd if=/dev/zero of=theNameOfTheFile bs=189465 count=1

perl -e 'print "0" x 1024' > 1k

head -c # /dev/zero > myfile

fseek()
        
-- 
   ( (   /                  J. Shane  Kennedy                   \   ) )
  / ) ) /                osf_at_python.corning.com                  \ ( ( \
 / ( ( /     ===============================================      \ ) ) \
/   ) )      my opinions do not reflect those of my employer       ( (   \
                                                                             
Received on Fri Jun 13 1997 - 19:19:40 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT