/ Published in: Bash
                    
                                        This command will count the number of files in the given directory and sub-directories.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 ls -1R /path/to/directory | wc -l
Comments
                    Subscribe to comments
                
                