Navneet
Navneet

Reputation: 357

How can I get a count of files in a directory

How can I get a count of files in a directory using the Linux Terminal command which file has been created on current date.

Upvotes: 0

Views: 61

Answers (2)

Mox
Mox

Reputation: 2463

This is probably what you need to find all files created today.

find . -type f -daystart | wc -l

Upvotes: 0

Ravi Hirani
Ravi Hirani

Reputation: 6539

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

Upvotes: 1

Related Questions