MinIO客户端之du
MinIO
提供了一个命令行程序mc
用于协助用户完成日常的维护、管理类工作。
官方资料
用于输出桶内对象的数量和占用的空间。
命令如下:
./mc du local1/bkt1
控制台的输出,如下:
92MiB 2 objects bkt1
增加递归输出的选项--recursive
,命令如下:
./mc du --recursive local1/bkt1
控制台的输出,如下:
92MiB 2 objects bkt1
指定本地硬盘上的目录,输出类似的统计信息,命令如下:
./mc du data
控制台的输出,如下:
92MiB 27 objects data
增加递归输出的选项--recursive
,命令如下:
./mc du --recursive data
控制台的输出,如下:
741B 1 object home/jackie/software/minio/data/.minio.sys/buckets/.bloomcycle.bin
639B 1 object home/jackie/software/minio/data/.minio.sys/buckets/.usage-cache.bin.bkp
639B 1 object home/jackie/software/minio/data/.minio.sys/buckets/.usage-cache.bin
1.3KiB 1 object home/jackie/software/minio/data/.minio.sys/buckets/.usage.json
1.0KiB 1 object home/jackie/software/minio/data/.minio.sys/buckets/bkt1/.metadata.bin
660B 1 object home/jackie/software/minio/data/.minio.sys/buckets/bkt1/.usage-cache.bin.bkp
660B 1 object home/jackie/software/minio/data/.minio.sys/buckets/bkt1/.usage-cache.bin
2.3KiB 3 objects home/jackie/software/minio/data/.minio.sys/buckets/bkt1
5.6KiB 7 objects home/jackie/software/minio/data/.minio.sys/buckets
8.2KiB 1 object home/jackie/software/minio/data/.minio.sys/config/config.json
432B 1 object home/jackie/software/minio/data/.minio.sys/config/iam/format.json
915B 1 object home/jackie/software/minio/data/.minio.sys/config/iam/service-accounts/U3mrTCIjBAzz57LxnEES/identity.json
915B 1 object home/jackie/software/minio/data/.minio.sys/config/iam/service-accounts/U3mrTCIjBAzz57LxnEES
915B 1 object home/jackie/software/minio/data/.minio.sys/config/iam/service-accounts
1.3KiB 2 objects home/jackie/software/minio/data/.minio.sys/config/iam
9.5KiB 3 objects home/jackie/software/minio/data/.minio.sys/config
0B 0 objects home/jackie/software/minio/data/.minio.sys/multipart
505B 1 object home/jackie/software/minio/data/.minio.sys/pool.bin
741B 1 object home/jackie/software/minio/data/.minio.sys/tmp/.trash/3265a4e7-7381-467f-a1c0-26e65b7384b6
672B 1 object home/jackie/software/minio/data/.minio.sys/tmp/.trash/3616413a-b944-4402-a711-a9e0afba3e01
1.3KiB 1 object home/jackie/software/minio/data/.minio.sys/tmp/.trash/6b5a1da1-a39e-4906-b201-94a7d9a0b029
639B 1 object home/jackie/software/minio/data/.minio.sys/tmp/.trash/795bad0a-ca3c-4b8c-b0a7-056b69f43c46
639B 1 object home/jackie/software/minio/data/.minio.sys/tmp/.trash/7d6b01c2-21ac-4058-b7c4-e6a733923781
672B 1 object home/jackie/software/minio/data/.minio.sys/tmp/.trash/e5d4d372-eac2-4667-9ce1-069de0878c1a
4.6KiB 6 objects home/jackie/software/minio/data/.minio.sys/tmp/.trash
8.6KiB 7 objects home/jackie/software/minio/data/.minio.sys/tmp
24KiB 19 objects home/jackie/software/minio/data/.minio.sys
92MiB 6 objects home/jackie/software/minio/data/bkt1/a1.txt/df7837c4-2883-40ef-bdfd-a70247dd8397
92MiB 7 objects home/jackie/software/minio/data/bkt1/a1.txt
578B 1 object home/jackie/software/minio/data/bkt1/local.json
92MiB 8 objects home/jackie/software/minio/data/bkt1
92MiB 27 objects data
增加递归输出的选项--recursive
,以及目录深度的选项--depth
,命令如下:
./mc du --recursive --depth 2 data
控制台的输出,如下:
29KiB 25 objects home/jackie/software/minio/data/.minio.sys
92MiB 8 objects home/jackie/software/minio/data/bkt1
92MiB 33 objects data
本文来自博客园,作者:jackieathome,转载请注明原文链接:https://www.cnblogs.com/jackieathome/p/17904433.html