Count number of files within a directory in Linux? [closed]

To count the number of files in a directory, I typically use

ls directory | wc -l

But is there another command that doesn’t use wc ?

1 Answer
1

Leave a Comment