linux count files in directory

this will could how many files in a particular directory

ls -l | wc -l

this command will include all files including sub-directories but not the files in the sub-directories

Comments are closed.