1762573733
This commit is contained in:
@@ -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)"
|
||||
Reference in New Issue
Block a user