Results 1 to 3 of 3
I am trying to count how many files and folders in a directory using the ls command.
How would I accomplish this? wc? what does the command look like?...
- 05-10-2009 #1Banned
- Join Date
- Apr 2009
- Posts
- 10
[SOLVED] simple count command
I am trying to count how many files and folders in a directory using the ls command.
How would I accomplish this? wc? what does the command look like?
- 05-10-2009 #2Banned
- Join Date
- Apr 2009
- Posts
- 10
I type
and nothing happensCode:ls | wc
- 05-10-2009 #3Banned
- Join Date
- Apr 2009
- Posts
- 10
never mind I got it.
ls -1 | wc -l


