Short Germany visit is over
The quick trip to Germany is already over, having a coffee in Düsseldorf has become quite a habit by now…

The quick trip to Germany is already over, having a coffee in Düsseldorf has become quite a habit by now…

I think this morning I got a pretty good excuse to listen to my weaker self and skip the running. It’s rather cold right now here at our place.

A year of rather mixed feelings, 2025 is now over. From my perspective, there were many ups and downs, and to some extent I am afraid that 2026 will be much the same—so there may be a bumpy ride ahead. Let’s see what will happen. Nevertheless, all the best for the upcoming year!
We started the year with rather cold weather, in the New Year night we had around -14 degrees.
Managing disk space efficiently is essential, especially when working on systems with strict file quotas. Recently, I encountered a situation where I had exceeded my file limit and needed a quick way to determine which folders contained the most files. To analyze my storage usage, I used the following command:
for d in .* *; do [ -d "$d" ] && echo "$d: $(find "$d" -type f | wc -l)"; done | sort -nr -k2
This one-liner efficiently counts files across all directories in the current location, including hidden ones. Here’s how it works:
for d in .* * – Loops through all files and directories, including hidden ones.[ -d "$d" ] – Ensures that only directories are processed.find "$d" -type f | wc -l – Counts all files (not directories) inside each folder, including subdirectories.sort -nr -k2 – Sorts the results in descending order based on the number of files.With this command, I quickly identified the directories consuming the most inodes and was able to take action, such as cleaning up unnecessary files. It’s an efficient method for understanding file distribution and managing storage limits effectively.
If you only want to count files directly inside each folder (without subdirectories), you can modify the command like this:
for d in .* *; do [ -d "$d" ] && echo "$d: $(find "$d" -maxdepth 1 -type f | wc -l)"; done | sort -nr -k2
This variation is useful when you need a more localized view of file distribution.
After a few days, which really looked promising that the winter would be over, yesterday ‘my’ swimming place looked again like deep winter…
