The *nix documentation project is meant to provide online searchable documentation for Linux, FreeBSD, OpenBSD, NetBSD, HP-UX, Tru64 and other Unix like operating systems.
Currently hosting over 25000 manual pages,
over 200 Linux Howtos, over 100 FreeBSD tips and a friendly comunity forum where your questions will be answered.
Random man page:
ftruncate(2) -- truncate a file to a specified length
|
The ftruncate() function causes the regular file referenced by fildes to have a size of length bytes. The truncate() function causes the regular file named by path to have a size of length bytes. The effect of ftruncate() and truncate() on other types of files is unspecified. If the file previously was larger than length, the extra data is lost. If it was previously shorter than length, bytes betw... |
|