how to see how many file in a directory using ls command code example Example: how to check how many files are in a folder linux $ ls | wc -l