df -h / # how full is the disk?
du -xh / 2>/dev/null | sort -rh | head -20 # biggest folders on this filesystem
find /var/log -type f -size +100M -exec ls -lh {} \; # big log files
journalctl --disk-usage # systemd journal size
wait_for() {
local host="$1" port="$2" timeout="${3:-30}"
for ((i = 0; i < timeout; i++)); do
if (exec 3<>"/dev/tcp/$host/$port") 2>/dev/null; then
echo "$host:$port is up"; return 0
intermediate#docker#deploy#networking
bookmark_border
Auf dieser Seite sind noch keine Snippets gespeichert. Speichern Sie eines mit der Lesezeichen-Schaltfläche.