History log of /freebsd/usr.bin/truncate/truncate.1 (Results 1 – 25 of 42)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 5460bdda 07-Mar-2025 Maxim Konovalov <maxim@FreeBSD.org>

truncate.1: improve the example section

Notably:
* spell "Megabytes" as "megabytes" consistently;
* remove a stray asterisk from the /boot/kernel/kernel listing
* avoid using a shell prompt in th

truncate.1: improve the example section

Notably:
* spell "Megabytes" as "megabytes" consistently;
* remove a stray asterisk from the /boot/kernel/kernel listing
* avoid using a shell prompt in the examples consistently
* fixes the size parameter
* add an example how to increase the file size

PR: 273997
MFC after: 1 week

show more ...


Revision tags: release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0
# fa9896e0 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line nroff pattern

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


Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0
# 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 i

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

show more ...


Revision tags: release/13.0.0, release/12.2.0
# c7aa572c 31-Jul-2020 Glen Barber <gjb@FreeBSD.org>

MFH

Sponsored by: Rubicon Communications, LLC (netgate.com)


# 17996960 31-Jul-2020 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r363583 through r363738.


# 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


Revision tags: release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0
# 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.


Revision tags: release/11.2.0, release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0, release/10.1.0
# 246e7a2b 02-Sep-2014 Neel Natu <neel@FreeBSD.org>

IFC @r269962

Submitted by: Anish Gupta (akgupt3@gmail.com)


# ee7b0571 19-Aug-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge head from 7/28


# 1b833d53 13-Aug-2014 Alexander V. Chernikov <melifaro@FreeBSD.org>

Sync to HEAD@r269943.


Revision tags: release/9.3.0
# 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>


Revision tags: release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0, release/8.3.0_cvs, release/8.3.0, release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0
# 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.


Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0
# 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
emula

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)

show more ...


Revision tags: release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0
# a866e170 17-Jan-2005 Ruslan Ermilov <ru@FreeBSD.org>

Added the EXIT STATUS section where appropriate.


Revision tags: release/5.3.0_cvs, release/5.3.0
# 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>


Revision tags: release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs, release/4.5.0_cvs, release/4.4.0_cvs
# 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 b

* 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.

show more ...


# 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.


Revision tags: release/4.3.0_cvs, release/4.3.0
# 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.


Revision tags: release/4.2.0, release/4.1.1_cvs
# 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.


Revision tags: release/4.1.0
# 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


12