SERVICES
SUCCESS STORIES
BLOG
ABOUT
CONTACT
byte
Count the Number of Files in a Directory
ls -l | wc -l ls: list directory contents -l: list in long format wc: word, line, character, and byte count -l: the number of lines is written to the standard output This command counts the number of listed lines.
Last updated on Sep 13, 2022
1 min read
Cite
×