Transférer les fichiers vers 'dconf'
This commit is contained in:
parent
7554a16ae6
commit
c62ccb1925
8
dconf/cpu.sh
Normal file
8
dconf/cpu.sh
Normal 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
9
dconf/monitor.sh
Normal 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
8
dconf/ram.sh
Normal 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"
|
||||
Loading…
x
Reference in New Issue
Block a user