Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Oct 2000 14:10:02 -0700 (PDT)
From:      Johan Karlsson <k@numeri.campus.luth.se>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: Fwd: Re: bin/21789: no mkfile command 
Message-ID:  <200010092110.OAA38150@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/21789; it has been noted by GNATS.

From: Johan Karlsson <k@numeri.campus.luth.se>
To: Jim Pirzyk <Jim.Pirzyk@disney.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: Fwd: Re: bin/21789: no mkfile command 
Date: Mon, 09 Oct 2000 23:01:19 +0200

 At Mon, 09 Oct 2000 08:30:05 PDT, Jim Pirzyk wrote:
 >
 >  The command not only creates a file, but also creates it with a certain
 >  size > 0.  I have included the SunOS man page to see how it is used.
 >  
 >  - JimP
 >  
 
 This functionality is provided by the truncate(1) command.
 Okey I know it is not exatly the same but I think its close enough.
 
 /Johan K
 
 truncate(1)             FreeBSD General Commands Manual            truncate(1)
 
 NAME
      truncate - truncate or extend a file to a specified length
 
 SYNOPSIS
      truncate [-h] [-m mode] size file ...
 
 DESCRIPTION
      The command truncate causes the file file to be truncated or extended to
      length bytes in size. If the file was larger than this size, the extra
      data is lost. If the file was smaller than this size, it will be extended
      as if by writing bytes with the value zero.  If the file doesn't exist,
      it is created, either with mode 0644 or the given mode mode.
 
 RETURN VALUES
      truncate returns 0 on success, an error value as specified in errno(7)
      otherwise.
 
 SEE ALSO
      truncate(2)
 
 AUTHOR
      truncate has been written by Alexander Langer. This manpage is based on
      the truncate(2) manual page.
 
 BSD                              May 25, 2000                                1
 
 
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010092110.OAA38150>