Transférer les fichiers vers 'dconf'
This commit is contained in:
@@ -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%"
|
||||
@@ -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"
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user