1、统计目录下文件的个数(不统计子目录)

当前目录:ls -l | grep "^-" | wc -l

任意目录:find dir  -type  f | wc -l(dir指定对应的目录)

参考文章:https://www.linuxprobe.com/linux-ls-grep-wc.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-16
  • 2021-09-06
  • 2021-11-23
  • 2021-08-25
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案