systemueberpruefung
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| systemueberpruefung [2022-05-22 12:23:05] – [File Handler] manfred | systemueberpruefung [2026-05-26 11:06:01] (aktuell) – [NIC] manfred | ||
|---|---|---|---|
| Zeile 51: | Zeile 51: | ||
| zeigt offene Dateien in dem Verzeichnis (Linux/ | zeigt offene Dateien in dem Verzeichnis (Linux/ | ||
| # fuser -vm /home/ | # fuser -vm /home/ | ||
| + | |||
| + | zeigt offene Dateien in dem Verzeichnis (FreeBSD/ | ||
| + | # fuser -c /home/ | ||
| Zeile 102: | Zeile 105: | ||
| 7924 root 20 | 7924 root 20 | ||
| 8068 root 20 | 8068 root 20 | ||
| - | | + | |
| 8067 root 20 | 8067 root 20 | ||
| - | | + | |
| 7039 root 20 | 7039 root 20 | ||
| 11993 root 20 | 11993 root 20 | ||
| Zeile 162: | Zeile 165: | ||
| 42752 www | 42752 www | ||
| 11115 www | 11115 www | ||
| + | |||
| + | <code bash / | ||
| + | #!/bin/sh | ||
| + | |||
| + | # Beispiel für FreeBSD/ | ||
| + | |||
| + | TOTAL=$(sysctl -n hw.memsize 2>/ | ||
| + | PHYS=$(sysctl -n hw.physmem 2>/ | ||
| + | REAL=$(sysctl -n hw.realmem 2>/ | ||
| + | PAGE_SIZE=$(sysctl -n hw.pagesize 2>/ | ||
| + | FREE_PAGES=$(sysctl -n vm.stats.vm.v_free_count 2>/ | ||
| + | AVAILABLE=$((FREE_PAGES * PAGE_SIZE)) | ||
| + | |||
| + | echo " | ||
| + | TOTAL: ${TOTAL} | ||
| + | PHYS: ${PHYS} | ||
| + | REAL: ${REAL} | ||
| + | AVAILABLE: ${AVAILABLE} | ||
| + | " | grep -Ev ' | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | > / | ||
| + | TOTAL: | ||
| + | PHYS: | ||
| + | REAL: 64 GiB | ||
| + | AVAILABLE: | ||
| + | </ | ||
| Zeile 167: | Zeile 198: | ||
| NIC's mit IP's anzeigen: | NIC's mit IP's anzeigen: | ||
| - | # ip aadr | + | # ip a |
| zeigt alle aktiven NIC's: | zeigt alle aktiven NIC's: | ||
/home/http/wiki/data/attic/systemueberpruefung.1653222185.txt · Zuletzt geändert: von manfred
