Linux: How to Count Number of File in a Directory

Execute this command:

$ ls -1 /home/user | wc -l

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.