Transférer les fichiers vers 'dconf'

This commit is contained in:
wilou 2023-03-16 08:02:16 +00:00
parent 7554a16ae6
commit c62ccb1925
3 changed files with 25 additions and 0 deletions

8
dconf/cpu.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
# This script monitors CPU usage
# Get the current usage of CPU
cpuUsage=$(top -bn1 | awk '/Cpu/ { print $2}')
# Print the usage
echo "CPU: $cpuUsage%"

9
dconf/monitor.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
# This script monitors CPU and memory usage
# Get the current usage of CPU and memory
cpuUsage=$(top -bn1 | awk '/Cpu/ { print $2}')
memUsage=$(free -m | awk '/Mem/{print $3}')
# Print the usage
echo "CPU : $cpuUsage% - RAM : $memUsage MB"

8
dconf/ram.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
# This script monitors memory usage
# Get the current usage of memory
memUsage=$(free -m | awk '/Mem/{print $3}')
# Print the usage
echo "RAM: $memUsage MB"