diff --git a/custom-cmds-in-ubuntu/bin_examples/check_max_ram.sh b/custom-cmds-in-ubuntu/bin_examples/check_max_ram.sh new file mode 100644 index 0000000..1f0f812 --- /dev/null +++ b/custom-cmds-in-ubuntu/bin_examples/check_max_ram.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# ___ _ _ _ __ +# / __|| |_ | |_ ___ | '_ \ ___ +# \__ \| _|| \ / _ \| .__// -_) +# |___/ \__||_||_|\___/|_| \___| + +clear;dpkg -s dmidecode &> /dev/null + +if [ $? -eq 0 ]; then + sudo dmidecode -t 16 +else + sudo apt-get -qq update;sudo apt-get -qq install -y dmidecode +fi \ No newline at end of file