History log of /freebsd-current/usr.bin/truncate/truncate.1
Revision Date Author Comments
# fa9896e0 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line nroff pattern

Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/


# a54abe11 19-Aug-2021 Ka Ho Ng <khng@FreeBSD.org>

truncate(1): Fix missing -d option manpage

Mention that either one of the -r, -s and -d options must be specified.

Sponsored by: The FreeBSD Foundation


# 5ee2c357 19-Aug-2021 Ka Ho Ng <khng@FreeBSD.org>

truncate(1): Add hole-punching support

This commit adds hole-punching support to the truncate(1) utility. If
the option -d is specified, truncate(1) performs zeroing, and if
possible hole-punching in case the operation is supported by the
underlying file system of the specified files.

Sponsored by: The FreeBSD Foundation
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D31556


# c2895f19 27-Jul-2020 Fernando ApesteguĂ­a <fernape@FreeBSD.org>

truncate(1): Add EXAMPLES section

Add four simple examples showing the use of -c, -r and -s

Approved by: manpages (bcr@)
Differential Revision: https://reviews.freebsd.org/D25774


# 10173270 09-Jul-2018 Emmanuel Vadot <manu@FreeBSD.org>

truncate: Add support for -s % and /

% round up to the multiple size and / round down
This is compatible with gnu truncate.
Add tests and document in the man page.


# 2b7af31c 23-Jun-2014 Baptiste Daroussin <bapt@FreeBSD.org>

use .Mt to mark up email addresses consistently (part3)

PR: 191174
Submitted by: Franco Fichtner <franco at lastsummer.de>


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 5eccbe45 19-Dec-2006 Ruslan Ermilov <ru@FreeBSD.org>

The -r option can also cause the files to be extended (not
necessarily truncated).


# cb29445a 29-Sep-2006 Ruslan Ermilov <ru@FreeBSD.org>

Markup fixes.


# e6f3621d 09-Apr-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Allow to specify size in terabytes by using T or t suffix.
This speeds up my testing a bit. Because truncate(1) doesn't allocate
blocks on file system before they are used, it is very useful to
emulate huge file systems:

# truncate -s 16T fs.img
# mdconfig -a -f fs.img
# newfs /dev/mdX

(-t swap can be used as well)


# a866e170 17-Jan-2005 Ruslan Ermilov <ru@FreeBSD.org>

Added the EXIT STATUS section where appropriate.


# 6b61c155 22-Jul-2004 Lukas Ertl <le@FreeBSD.org>

Make size suffix case insensitive.

PR: bin/27604
Submitted by: David Xu <davidx@viasoft.com.cn>


# d1050cb3 16-Aug-2001 Sheldon Hearn <sheldonh@FreeBSD.org>

* Update author's e-mail address.

* When the author of an utility also wrote its manual page (a rarety, I
know), it is not necessary to say that the utility "and this manual
page" were written by the author.


# b63c0139 16-Aug-2001 Sheldon Hearn <sheldonh@FreeBSD.org>

Use the .Cm macro to mark up the modifiers of the -s flag's size argument.


# d628d776 15-Aug-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: utilize the new .Ex macro.


# f247324d 15-Jul-2001 Dima Dorfman <dd@FreeBSD.org>

Remove whitespace at EOL.


# d7b336c0 11-Dec-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use canonical form of .Dd macro.


# 8fe908ef 20-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use the new features of the Nm macro.


# e62d73a2 04-Aug-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Merge the truncate(1) utility onto the RELENG_4 branch and adjust
the HISTORY section to reflect the first release of FreeBSD in
which this utility will appear.


# 6b88e76b 24-Jul-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

truncate.c:
Do not include unused header files.
Add rcsid.
Change copyright.

truncate.1:
Add AUTHORS section.

Submitted by: charnier


# 75bc7bff 21-Jul-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Add a STANDARDS section to discourage the use of this utility
in environments where portability is a concern.


# edeb84a1 18-Jul-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Import the new truncate(1) utility.

Approved by: jdp