PATH:
etc
/
profile.d
#! /usr/bin/env bash #define available colors BLACK=`tput setaf 0` RED=`tput setaf 1` GREEN=`tput setaf 2` YELLOW=`tput setaf 3` BLUE=`tput setaf 4` MAGENTA=`tput setaf 5` CYAN=`tput setaf 6` WHITE=`tput setaf 7` BOLD=`tput bold` RESET=`tput sgr0` # Basic info HOSTNAME=`uname -n` IP=`cat /var/cpanel/mainip` ROOT=`df -Ph | egrep "sda|root" | awk '{print $4}' | tr -d '\n'` CPANEL=`/usr/local/cpanel/cpanel -V` APACHE=`httpd -V | head -1 | awk '{print $3}'` PHP=`php -v | head -1 | awk '{print $2}'` MYSQL=`mysql -V | awk '{print $5}'` # System load MEMORY1=`free -t -m | grep Total | awk '{print $3" MB";}'` MEMORY2=`free -t -m | grep "Mem" | awk '{print $2" MB";}'` LOAD1=`cat /proc/loadavg | awk {'print $1'}` LOAD5=`cat /proc/loadavg | awk {'print $2'}` LOAD15=`cat /proc/loadavg | awk {'print $3'}` echo -e " $GREEN ========================================================== $RESET $GREEN \t Web Hosting services powered by FastComet \t $RESET $GREEN ========================================================== $RESET $GREEN Website:$RESET \t $CYAN https://www.fastcomet.com/ $RESET $GREEN Client Area:$RESET \t $CYAN https://my.fastcomet.com/clientarea.php $RESET $GREEN Tutorials:$RESET \t $CYAN https://www.fastcomet.com/tutorials $RESET $GREEN ========================================================== $RESET $GREEN Hostname:$RESET \t $CYAN $HOSTNAME $RESET $GREEN IP Address:$RESET \t $CYAN $IP $RESET $GREEN cPanel:$RESET \t $CYAN $CPANEL $RESET $GREEN Apache:$RESET \t $CYAN ${APACHE:7} $RESET $GREEN Global PHP:$RESET \t $CYAN $PHP $RESET $GREEN MySQL:$RESET \t $CYAN ${MYSQL::-1} $RESET $GREEN ========================================================== $RESET $GREEN CPU Usage:$RESET \t $CYAN $LOAD1, $LOAD5, $LOAD15 $RESET $GREEN Disk Space:$RESET \t $CYAN $ROOT remaining $RESET $GREEN Memory Usage:$RESET \t $CYAN $MEMORY1 / $MEMORY2 $RESET $GREEN ========================================================== $RESET "
[-] locallib.csh
[edit]
[-] sh.local
[edit]
[-] bash_timestamps.sh
[edit]
[-] locallib.sh
[edit]
[-] csh.local
[edit]
[+]
..
[-] colorls.sh
[edit]
[-] cpanel-php-composer.sh
[edit]
[-] 256term.csh
[edit]
[-] which2.csh
[edit]
[-] 256term.sh
[edit]
[-] less.sh
[edit]
[-] which2.sh
[edit]
[-] colorgrep.csh
[edit]
[-] vim.sh
[edit]
[-] lang.sh
[edit]
[-] lang.csh
[edit]
[-] vim.csh
[edit]
[-] less.csh
[edit]
[-] cpanel-user-commands.sh
[edit]
[-] login-info.sh
[edit]
[-] colorgrep.sh
[edit]
[-] mc.sh
[edit]
[-] colorls.csh
[edit]
[-] mc.csh
[edit]