filesize -package:hackage-security -package:http-conduit package:unix -is:exact

Size of the file in bytes. If this file is a symbolic link the size is the length of the pathname it contains.
Truncates the file down to the specified length. If the file was larger than the given length before this operation was performed the extra is lost. Note: calls truncate.
Truncates the file down to the specified length. If the file was larger than the given length before this operation was performed the extra is lost. Note: calls truncate.