Skip to content

文件

  • 监测文件动态变化
sh
tial -f text.txt
  • 统计文件数量
sh
ls -l | grep "^-" | wc -l
  • 看文件数量(包括子目录)
sh
ls -lR| grep "^-" | wc -l
  • 查看文件大小(单位M)
sh
ls -lh

文件夹

  • 统计文件数量
sh
ls -lR | grep "^d" | wc -l
  • 查看文件夹大小(单位M)
sh
du -h

Released under the MIT License.