Polecenie Bash, aby znaleźć liczbę plików w katalogu
ls -1q | wc -l
Yucky Yak
ls -1q | wc -l
ls -1q log* | wc -l
find . -type d -print0 | while read -d '' -r dir; do
files=("$dir"/*)
printf "%5d files in directory %s\n" "${#files[@]}" "$dir"
done
du -a | cut -d/ -f2 | sort | uniq -c | sort -nr
find -maxdepth 1 -type d | while read -r dir; do printf "%s:\t" "$dir"; find "$dir" -type f | wc -l; done
ls -R|wc -l