For example, you want to know how many files are in your Laravel vendor folder. To do this, go to the project folder with your console. Now you can count the files with find
.
find vendor -type f | wc -l
If you don’t want a recursion and just want to know how many folders and files a certain path has, you can find out with ls
.
ls someFolder | wc -l