From 3c074c894838eb4d11ffef35f9c8211829427ddb Mon Sep 17 00:00:00 2001 From: JaydenMW Date: Tue, 9 Mar 2021 20:39:40 +0000 Subject: [PATCH] Add system info script --- system-info.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 system-info.sh diff --git a/system-info.sh b/system-info.sh new file mode 100755 index 0000000..05f31b1 --- /dev/null +++ b/system-info.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# JaydenMW -- Project +# Language: Bash +# License: NONE +# This is a script I wrote that prints out system information + +DISTRIB=$(cat /etc/issue.net) # Finds what distribution is ran +KERN=$(uname -sr) # Finds out what kernel is in use +MEM=$(cat /proc/meminfo | grep MemTotal) # Finds memory information +UPT=$(uptime -p) # Finds system uptime +USR=$(whoami) # Finds username +CURRENT_SHELL=$(ps -p $$ | grep -E -x 'zsh|sh|bash|csh|dash') # Finds Shell + +echo "" +echo "Note: This script won't work with: *BSD, Windows*" +echo "Note: This script should work with the fallowing: Gentoo, MacOS* BUT these Operating Systems have not been tested and may not work" +echo "" +echo "OS: $DISTRIB" +echo "UPTIME: $UPT" +echo "KERNEL: $KERN" +echo "MEMORY: $MEM" +echo "USER: $USR" +echo "SHELL: $CURRENT_SHELL" + + +