This topic describes the history
command in gfsh
, the VMware Tanzu GemFire command-line interface.
Use this command to show or save the command history.
You can save this history to a file which you can later use as a script.
A history of commands that have been executed successfully is also logged in the .geode/.gfsh.history
file within the home directory of the user running gfsh
.
Availability: Online or offline.
Syntax:
history [--file=<history text file>]
Name | Description | Default Value |
---|---|---|
‑‑file | File to which the history is to be saved. | |
‑‑clear | When set to true , clears the history of gfsh commands. |
false |
Table 1. History Parameters
Example Commands:
history
history --file=./mycommands.gfsh;
Sample Output:
gfsh>history --file=./mycommands.gfsh
Wrote successfully to file ./mycommands.gfsh