This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## R.Hakimi | |
| ## | |
| # Hostname information | |
| echo -e "\e[31;43m*** HOST INFORMATION ***\e[0m" | |
| hostnamectl | |
| echo "" | |
| # System Resource | |
| echo -e "\e[31;43m*** SYSTEM RESOURCE ***\e[0m" | |
| CPUCORE=$(cat /proc/cpuinfo | grep "processor"| wc -l) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ## Thanks to Pejman | |
| PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" | |
| free -m | |
| echo | |
| sync | |
| echo 3 > /proc/sys/vm/drop_caches | |
| echo 0 > /proc/sys/vm/drop_caches | |
| FREE_RAM=$(free|grep Mem:|awk '{print $4}') |
NewerOlder