How to count files in GNU/Linux

Sometimes, counting files in a folder or directory in GNU/Linux is essential for several reasons. That’s why GNU/Linux provides a couple of different commands with their own parameters to meet our exact needs. Let’s take a look at them.

  • LS
  • FIND

To count files in GNU/Linux (excluding hidden files), we will use the WC command with the -L parameter (all lowercase):

Read more