1762573733

This commit is contained in:
2025-11-07 20:48:52 -07:00
parent 4003915782
commit 4151421cf7
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
# Usage
# dirstat <path>
if [ -z "$1" ]; then
path=.
else
path=$1
fi
echo -e "\nPath: $path"
echo "Space used: $(du -h -d 0 $path | awk '{print $1}')"
echo "Files: $(find $path -type f -print | wc -l)"
echo "Directories: $(find $path -type d -print | wc -l)"