使用hcache查看使用buff/cache的目录文件
我是使用的git从github拉取下代码,然后重新编译的, 因为此项目是go语言写的,所以编译时需要安装go语言
如下命令下载代码,或者直接下载zip压缩包,资源在 “此目录下文档中所用的资源” 目录中
git clone git@github.com:silenceshell/hcache.git
进入主目录,编译,然后将编译后的文件拷贝到/usr/local/bin目录下,即可使用
cd hcache
make build
sudo cp hcache /usr/local/bin/
使用:
hcache <-json <-pps>|-terse|-default> <-nohdr> <-bname> file file file
-json output will be JSON
-pps include the per-page information in the output (can be huge!)
-terse print terse machine-parseable output
-default print ascii tables
-histo print a histogram using unicode block characters
-nohdr don't print the column header in terse or default format
-bname use basename(file) in the output (use for long paths)
-plain return data with no box characters
-unicode return data with un