$ ls -A1 /path/to/folder | wc -lLists 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.
| Tags:
$ ls -A1 /path/to/folder | wc -lLists 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 22 guests online.
|
Post new comment