You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
2.2 KiB

#!/bin/bash
Uptime=`uptime -p | cut -d " " -f2-`
Cores=`lscpu | grep "CPU(s)" | head -1 | cut -d " " -f17`
Memory=`free -h | grep "Mem" | cut -d " " -f12`
Memory_Free=`free -h | grep "Mem" | cut -d " " -f29`
Disk=`df -h | grep "root" | cut -d " " -f4`
Disk_Free=`df -h | grep "root" | cut -d " " -f11`
Distro=`cat /etc/*-release | head -1`
Load=`ps -eo pcpu | awk '{cpu_load+=$1} END {print cpu_load}'`
Logged=`who | wc -l`
echo -ne "% %
%++++++++++++++++++++++++++++++++ WELCOME ! +++++++++++++++++++++++++++++++++%
% %
\e[1;33;40m .. $HOSTNAME
\e[1;33;40m .PLTJ.\033[0m --------------------------
\e[1;33;40m <><><><> \e[1;32;40mOS\033[0m: $Distro
\e[1;32;40m KKSSV' 4KKK \e[1;33;40mLJ \e[1;35;40mKKKL.'VSSKK \e[1;32;40mUptime\033[0m: $Uptime
\e[1;32;40m KKV' 4KKKKK \e[1;33;40mLJ \e[1;35;40mKKKKAL 'VKK \e[1;32;40mCores\033[0m: $Cores
\e[1;32;40m V' ' 'VKKKK \e[1;33;40mLJ \e[1;35;40mKKKKV' ' 'V \e[1;32;40mMemory\033[0m: $Memory
\e[1;32;40m .4MA.' 'VKK \e[1;33;40mLJ \e[1;35;40mKKV' '.4Mb. \e[1;32;40mFree Memory\033[0m: $Memory_Free
\e[1;35;40m .\e[1;32;40m KKKKKA.' 'V \e[1;33;40mLJ \e[1;35;40mV' '.4KKKKK \e[1;34;40m. \e[1;32;40mDisk\033[0m: $Disk
\e[1;35;40m .4D \e[1;32;40mKKKKKKKA.'' \e[1;33;40mLJ \e[1;35;40m''.4KKKKKKK \e[1;34;40mFA. \e[1;32;40mFree Disk\033[0m: $Disk_Free
\e[1;35;40m<QDD ++++++++++++ \e[1;34;40m++++++++++++ GFD> \e[1;32;40mCPU Load\033[0m: $Load %
\e[1;35;40m 'VD \e[1;34;40mKKKKKKKK'.. \e[1;32;40mLJ \e[1;33;40m..'KKKKKKKK \e[1;34;40mFV \e[1;32;40mLogged In Users\033[0m: $Logged
\e[1;35;40m ' \e[1;34;40mVKKKKK'. .4 \e[1;32;40mLJ \e[1;33;40mK. .'KKKKKV \e[1;34;40m'
\e[1;34;40m 'VK'. .4KK \e[1;32;40mLJ \e[1;33;40mKKA. .'KV'
\e[1;34;40m A. . .4KKKK \e[1;32;40mLJ \e[1;33;40mKKKKA. . .4
\e[1;34;40m KKA. 'KKKKK \e[1;32;40mLJ \e[1;33;40mKKKKK' .4KK
\e[1;34;40m KKSSA. VKKK \e[1;32;40mLJ \e[1;33;40mKKKV .4SSKK
\e[1;32;40m <><><><>
\e[1;32;40m 'MKKM'
\e[1;32;40m ''\033[0m
"