Number of files in directory ubuntu

Code examples

0
0

number of files in directory ubuntu

# To count files (even files without an extension) at the root of the current directory, use:
ls -l | grep ^- | wc -l

# To count files (even files without an extension) recursively from the root of the current directory, use:
ls -lR | grep ^- | wc -l

Similar pages

Similar pages with examples

In other languages

This page is in other languages

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................