fileadmin
Warning: Undefined variable $html in /usr/share/nginx/html/lib/plugins/tabinclude/helper.php on line 192
File Admin
df=`df -h`; echo -e "\n\nHi, \n\nDiskoverview for $(hostname)\n\n $df \n\nHere is the list of the largest files: \ \n" ; find / -type f -not -path "/proc/*" -not -path "/dev/*" -not -path "/sys/*" -size +512000k -exec du -hs {} \; \ ; echo -e "\n\nAnd here is the list of the largest folders:\n"; du -h / | grep ^[1-9][0-9][0-9.]*G | sort -rn;
FS='/';NUMRESULTS=20;resize;clear;date;df -h $FS; echo "Largest Directories:";\ du -x $FS 2>/dev/null| sort -rnk1| head -n $NUMRESULTS| awk '{printf "%d MB %s\n",\ $1/1024,$2}';echo "Largest Files:"; nice -n 19 find $FS -mount -type f -ls \ 2>/dev/null| sort -rnk7| head -n $NUMRESULTS|awk '{printf "%d MB\t%s\n",\ ($7/1024)/1024,$NF}'
fileadmin.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1