Detection server alerts that the disk is almost full or full
windows server
RHEL
In windows open up powershell in administrator mode run
Get-ChildItem c:\ -r| sort -descending -property length | select -first 10 name, Length
In Linux you can use the du command to show folder usage in decending order
du -kx / | sort -n
Tip. When accessing some directories even with the administrator privileges, the Get-ChildItem cmdlet can return an access denied error:
To suppress such errors, use the -ErrorAction SilentlyContinue parameter.
Use the -Force option to display hidden and system files that are not accessible to the user.