Shihui Guo

Count the total of files in a folder - Linux

The following command will give you the total number of files in a folder (note: a subfolder is counted as a file in this case).

ls | wc -l

点击查看评论