$ ls -A1 /path/to/folder | wc -l
Lists out the files in a directory including hidden files in a single-column format and pipes it through a line count via wc.
Get a count of files/folder in a directory
Submitted by sandip on Tue, 05/27/2008 - 11:33
$ ls -A1 /path/to/folder | wc -l Lists out the files in a directory including hidden files in a single-column format and pipes it through a line count via wc. »
|
See AlsoUser loginRecent blog posts
Who's onlineThere are currently 0 users and 6 guests online.
|