#!/bin/bash # 设置文件夹路径 dir_path="/path/to/dir" # 计算文件夹大小 dir_size=$(du -sh ${dir_path}) echo "Size of ${dir_path}: ${dir_size}"
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8