history
可以像shell一样上下翻命令,也可使用history查看历史命令
代码语言:javascript复制[zk: localhost:2181(CONNECTED) 40] history
30 - get /
31 - get /zookeeper
32 - get /abc
33 - set /abc def
34 - get /abc
35 - ls /
36 - delete /
37 - delete /abc
38 - ls /
39 - help
40 - history
[zk: localhost:2181(CONNECTED) 41]
stat
感觉和get没有太大差别,只是少了内容数据
代码语言:javascript复制[zk: localhost:2181(CONNECTED) 43] stat /def
cZxid = 0xe
ctime = Thu Dec 03 14:57:27 CST 2015
mZxid = 0xe
mtime = Thu Dec 03 14:57:27 CST 2015
pZxid = 0xe
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 3
numChildren = 0
[zk: localhost:2181(CONNECTED) 44] get /def
def
cZxid = 0xe
ctime = Thu Dec 03 14:57:27 CST 2015
mZxid = 0xe
mtime = Thu Dec 03 14:57:27 CST 2015
pZxid = 0xe
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 3
numChildren = 0
[zk: localhost:2181(CONNECTED) 45]