简体   繁体   中英

How can I get a count of files in a directory

如何使用Linux Terminal命令获取目录中文件的数量,该文件是在当前日期创建的。

May below command will work for you.

find . -type f | wc -l

To find all files modified on the "28th Feb ,2016":

find . -type f -newermt 2016-02-28 ! -newermt 2016-02-29

Get modification from last 24hrs .

find . -maxdepth 1 -mtime -1

这可能是找到今天创建的所有文件所需要的。

find . -type f -daystart | wc -l

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM