Linux: Dateien und Ordner zählen

This post was published 11 years 2 months 3 days ago, so the post may be outdated.

Manchmal ist es hilfreich zu wissen, wieviele Dateien oder Ordner man in einem Verzeichnis hat. Wenn die Anzahl jedoch etwas höher ist, tut man sich beim Zählen etwas schwerer… Zum Glück bietet Linux ein nettes Werkzeug zum zählen der Dateien bzw. Ordner.

Anzahl der Dateien ermitteln

find /home/user -type f | wc -l

Anzahl der Verzeichnis ermitteln

find /home/user -type d | wc -l

Patrik Kernstock

May I introduce my self? I am Patrik Kernstock, 25 years old, perfectionist, born in Austria and living in Ireland, Cork. Me explained in short: Tech- and security enthusiast, series & movies junky. Interesting in Linux, Container-stuff and many software solutions by Microsoft, Veeam and VMware.

0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x