Today, I needed a quick count of all of the files in Magento in order to set the “apc.num_files hint=xxx” in APC. Since all of the source files were on my Windows machine already, I started with Powershell.
Powershell (Windows)
1 |
(gci .\magento -recurse | Where-Object {-not ($_.PSsContainer)}).Count |
After that, for accuracy sake, I checked on the server as well.
Linux Shell (Ran from inside the directory)
1 |
find . -type f | wc -l |