linux how to know how many .mps files in a directory code example
Example 1: terminal count files in directory
ls | wc -l or ls <path> | wc -l
Example 2: how to check how many files are in a folder linux
$ ls | wc -l
ls | wc -l or ls <path> | wc -l
$ ls | wc -l