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 *