linux统计当前目录下有多少文件
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
-- 统计当前目录下有多少个文件和文件夹
ls | wc -l
不要用 ll | wc -l
或者 find | wc -l
因为都会比真实文件数多一个,亲测
列出当前目录下的所有文件 (以-开头的都是文件)
ll | grep ^-
同样列出当前目录下的所有子目录
ll | grep ^d
只统计当前目录下文件的个数
ll | grep ^- | wc -l
经过长期实践发现,linux中的管道实在太强大了。




A beautiful web dashboard for Linux
最近提交(Master分支:16 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)