gftruncate man page

gftruncate ā€” manual page for gftruncate (glusterfs-coreutils) 0.3.0

Synopsis

gftruncate [OPTION]... URL

Description

Read a file on a remote Gluster volume and write it to standard output.

-o, --xlator-option=OPTION

specify a translator option for the connection. Multiple options are supported and take the form xlator.key=value.

--size=SIZE

set or adjust the file size by SIZE bytes size is integer and optional unit (Eg: 10, 10K, 10KB)

-p, --port=PORT

specify the port on which to connect

--help

display this help and exit

--version

output version information and exit

Examples

gftruncate glfs://localhost/groot/path/to/file

Truncate /path/to/file on the Gluster volume

gfcli (localhost/groot)> cat /file

In the context of a shell with a connection established, Truncate the file on the gluster volume.

Author

Written by Moonblade.

See Also

gfcli(1)

Info

August 2019 gftruncate (glusterfs-coreutils) 0.3.0