Count files in current directory with: ls | wc -l Enter fullscreen mode Exit fullscreen mode Or count files in a specific directory with: ls /some/path | wc -l Enter fullscreen mode Exit fullscreen mode