/etc/bash.bashrc
osVers=$(grep "PRETTY" /etc/os-release | cut -d= -f2 | cut -d'"' -f2)
osName=$(grep "VERSION=" /etc/os-release | cut -d '(' -f2 | cut -d ')' -f1)
kernelVers=$(uname -r | cut -d '-' -f1)
memTotal=$(free -m | grep -oP '\d+' | head -n 1)
cpuCount=$(grep processor /proc/cpuinfo | wc -l)
cpuInfo=$(grep "model name" /proc/cpuinfo | head -1 | cut -d':' -f2-)
printf "Welcome to\t${osVers} ${osName}\nKernelversion:\t${kernelVers}\nCPU's\t\t${cpuCount}x${cpuInfo}\nRAM:\t\t${memTotal} MB\n\n"
Now Bash welcomes you with this:
Welcome to Linux Mint 20 Ulyana
Kernelversion: 5.4.0
CPU's 4x Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
RAM: 3908 MB