Add 'custom-cmds-in-ubuntu/bin_examples/check_max_ram.sh'

This commit is contained in:
sthope 2021-11-13 17:25:58 +01:00
parent 4dda5fafc9
commit 48160eccb6

View File

@ -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