<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: command to create file with certain size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-create-file-with-certain-size/m-p/3119344#M717643</link>
    <description>dd may do the trick, however I was looking for a different command.</description>
    <pubDate>Fri, 14 Nov 2003 06:59:18 GMT</pubDate>
    <dc:creator>Frank de Vries</dc:creator>
    <dc:date>2003-11-14T06:59:18Z</dc:date>
    <item>
      <title>command to create file with certain size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-create-file-with-certain-size/m-p/3119342#M717641</link>
      <description>I forgot which command (not touch) you can create a file with a certain size</description>
      <pubDate>Fri, 14 Nov 2003 06:55:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-to-create-file-with-certain-size/m-p/3119342#M717641</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2003-11-14T06:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: command to create file with certain size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-create-file-with-certain-size/m-p/3119343#M717642</link>
      <description>dd is your friend:&lt;BR /&gt;dd of=&lt;FILE&gt; bs=1024 count=&lt;SIZE in="" kb=""&gt; if=/dev/zero&lt;/SIZE&gt;&lt;/FILE&gt;</description>
      <pubDate>Fri, 14 Nov 2003 06:56:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-to-create-file-with-certain-size/m-p/3119343#M717642</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-11-14T06:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: command to create file with certain size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-create-file-with-certain-size/m-p/3119344#M717643</link>
      <description>dd may do the trick, however I was looking for a different command.</description>
      <pubDate>Fri, 14 Nov 2003 06:59:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-to-create-file-with-certain-size/m-p/3119344#M717643</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2003-11-14T06:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: command to create file with certain size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-create-file-with-certain-size/m-p/3119345#M717644</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can create a file with prealloc,&lt;BR /&gt;&lt;BR /&gt;# prealloc file 10000000 ( 10 mb)&lt;BR /&gt;&lt;BR /&gt;Hope it helps,&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Fri, 14 Nov 2003 07:00:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-to-create-file-with-certain-size/m-p/3119345#M717644</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-11-14T07:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: command to create file with certain size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-create-file-with-certain-size/m-p/3119346#M717645</link>
      <description>That's then one, full marks !</description>
      <pubDate>Fri, 14 Nov 2003 07:03:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-to-create-file-with-certain-size/m-p/3119346#M717645</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2003-11-14T07:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: command to create file with certain size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-to-create-file-with-certain-size/m-p/3119347#M717646</link>
      <description>You can do it different too, but to create a sparse file. In C it will look like below. Of course things like parameter checking etc. are necessary if you really want to use this...&lt;BR /&gt;--- &lt;SNIP&gt; ---&lt;BR /&gt;#include &lt;FCNTL.H&gt;&lt;BR /&gt;#include &lt;UNISTD.H&gt;&lt;BR /&gt;&lt;BR /&gt;void main(int argc,char **argv)&lt;BR /&gt;{&lt;BR /&gt;   int fd=open(argv[1],O_WRONLY|O_CREAT);&lt;BR /&gt;   lseek(fd,atoi(argv[2]),SEEK_SET);&lt;BR /&gt;   close(fd);&lt;BR /&gt;}&lt;/UNISTD.H&gt;&lt;/FCNTL.H&gt;&lt;/SNIP&gt;</description>
      <pubDate>Fri, 14 Nov 2003 07:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-to-create-file-with-certain-size/m-p/3119347#M717646</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-11-14T07:26:59Z</dc:date>
    </item>
  </channel>
</rss>

