new wayland system

This commit is contained in:
2024-01-21 20:31:10 +01:00
parent b2552d9d1d
commit 35368bee3c
7 changed files with 109 additions and 32 deletions

11
Tools/free_ram.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
# Display the top applications of memory usage
# http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-51021
while read command percent rss; do
if [[ "${command}" != "COMMAND" ]]; then
rss="$(bc <<< "scale=2;${rss}/1024")"
fi
printf " %-26s%-8s%s\n" "${command}" "${percent}" "${rss} MB" \
| sed 's/COMMAND/PROGRAM/' | sed 's/RSS MB/#MEM/'
done < <(ps -A --sort -rss -o comm,pmem,rss | head -n 20)