Menu
This commit is contained in:
parent
9018dcb213
commit
3829104b72
37
src/basic.sh
37
src/basic.sh
@ -28,8 +28,8 @@ echo "- Inodes:"
|
||||
|
||||
df -hi | grep '/dev/vd'
|
||||
|
||||
echo "- OOMS:"
|
||||
dmesg -T | grep "Out of memory"
|
||||
|
||||
|
||||
|
||||
echo "- Installed panel:"
|
||||
|
||||
@ -44,3 +44,36 @@ echo "- Installed packages"
|
||||
list=$(apt list --installed 2>&1 |egrep 'atop')
|
||||
|
||||
echo $list
|
||||
|
||||
|
||||
while true
|
||||
do
|
||||
echo -e "
|
||||
---
|
||||
1. Посмотреть жрущие ЦПУ/ОЗУ процессы
|
||||
2. Вывести OOM'ы
|
||||
|
||||
0. Выход
|
||||
"
|
||||
|
||||
read -r -p "Выбери: " action
|
||||
case $action in
|
||||
0)
|
||||
exit ;;
|
||||
1)
|
||||
echo "- Top RAM usage:"
|
||||
|
||||
ps axk-%mem ouser,%cpu,%mem,command | head
|
||||
echo
|
||||
echo "- Top CPU usage:"
|
||||
|
||||
ps axk-%cpu ouser,%cpu,%mem,command | head
|
||||
;;
|
||||
2)
|
||||
echo "- OOMS:"
|
||||
dmesg -T | grep "Out of memory"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user