[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14686: Bug#713022: truncate man and info pages must mention -s / -r
bug#14686: Bug#713022: truncate man and info pages must mention -s / -r mandatory
Sat, 22 Jun 2013 16:42:01 +0800
I thought it would do the obvious, like touch does.
touch - change file timestamps
touch [OPTION]... FILE...
Update the access and modification times of each FILE to the current
A FILE argument that does not exist is created empty, unless -c or -h
truncate - shrink or extend the size of a file to the specified size
truncate OPTION... FILE...
Shrink or extend the size of each FILE to the specified size
A FILE argument that does not exist is created.
Who would have guessed that for some reason an argument is required,
I don't see why
$ truncate FILE
cannot just work too.
You know, to truncate the file, to zero bytes.
But hey I'm not a pro.