gftruncate - Man Page
manual page for gftruncate 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.
Copyright
Copyright © 2015 Facebook, Inc. License GPLv3: GNU GPL version 3 <http://www.gnu.org/licenses/gpl-3.0.en.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.