Count number of files in a directory using Linux cli Posted on 14 July 202014 July 2020 By Shafiq Alibhai ls -l . | egrep -c '^-'