Existem 28 arquivos, incluindo diretórios.
ls / | wc -l
inclui a linha "total", mas não os diretórios .
e ..
, portanto seus 27 se tornam 28.
Subtraia initrd.img
, initrd.img.old
, vmlinuz
e vmlinuz.old
, pois eles não são links de diretório (são arquivos regulares ou links simbólicos), fazendo 24.