biggest entries without other mounts

master
zeus 2020-12-02 14:00:42 +01:00
parent 2c4b797b42
commit 77896c08b4
1 changed files with 3 additions and 0 deletions

View File

@ -14,3 +14,6 @@ echo $PATH | sed s/\:/\\n/g
# check for open ports on target
for i in 80 443; do echo -e '\x1dclose\x0d' | telnet google.com $i >/dev/null; echo "$i : $?"; done
# find biggest directories in a given path without leaving the current filesystem
dir="/var/opt/gitlab"; for i in $(ls $dir); do mountpoint -q $dir/$i || du -shx $dir/$i ; done | sort -rh | head