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
?
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
?