91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

定制自己的shell登錄腳本

發布時間:2020-04-08 12:41:38 來源:網絡 閱讀:700 作者:西鼠 欄目:建站服務器

編輯自己用戶下的 .bash_profile文件

# .bash_profile

#export

PS1="\n\e[1;32m[\e[0;31m\u\e[0;34m@\e[0;31m\h\e[1;32m]\e[1;32m[\e[0;34m\w\e[1;32m]$"


# Get the aliases and functions

if [ -f ~/.bashrc ]; then

        . ~/.bashrc

fi


# User specific environment and startup programs

#User specific environment and startup programs

PATH=$PATH:$HOME/bin:/usr/bin/:/usr/local/bin:/usr/sbin:/sbin

export PATH

unset USERNAME

umask 022


#Custom DJRavine Modification

login_pwd=`pwd`;

login_data=`date`;

login_users=`users`;

logic_uptime=`uptime`;

server_ip=`/sbin/ifconfig |grep 'inet addr:'|grep -v '127.0.0.1'|head -1|cut -d: -f2|awk '{print $1}'`;

disk_available=$(df -h --block-size=1024|awk '{ sum += $4; } END {print sum;}');

disk_used=$(df -h --block-size=1024|awk '{ sum += $3; } END {print sum;}');

disk_size=$(df -h --block-size=1024|awk '{ sum += $2; } END {print sum;}');

disk_available_gb=$(echo "scale=2; $disk_available/(1024^2)" |bc)

disk_used_gb=$(echo "scale=2; $disk_used/(1024^2)" |bc)

disk_size_gb=$(echo "scale=2; $disk_size/(1024^2)" |bc)

red="\033[31m"

blue="\033[34m"

green="\033[32m"


echo -e " "

echo -e "${blue}+---------------------------------------------------------------"

echo -e "${green}                           Welcome!                            "

echo -e "${blue}+---------------------------------------------------------------"

echo -e " ${green}Server IP: ${red}"$server_ip

echo -e " ${green}Date: ${red}"$login_data

echo -e " ${green}Users: ${red}"$login_users

echo -e " ${green}Directory: ${red}"$login_pwd

echo -e " ${green}Uptime: ${red}"$logic_uptime

echo -e "${blue}+---------------------------------------------------------------"

echo -e " "

df -lh|column -c 6|awk '{printf "\033[22;32m%s\t%s\t\033[22;31m%s\t%s\t%s\n",$1,$6,$2,$3,$4,$5}'

echo -e " ${green}Total Disk Space: ${red}$disk_size_gb GB"

echo -e " ${green}Total Used Space: ${red}$disk_used_gb GB"

echo -e " ${green}Total Free Space: ${red}$disk_available_gb GB"

echo -e "${blue}+---------------------------------------------------------------"

PATH=$PATH:$HOME/bin


export PATH


向AI問一下細節
推薦閱讀:
  1. 定制EditText
  2. 定制checkbox

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

措美县| 湄潭县| 轮台县| 陕西省| 澄江县| 泰来县| 始兴县| 昭通市| 饶河县| 诏安县| 阳江市| 石棉县| 彭山县| 马尔康县| 陇川县| 廉江市| 琼结县| 叙永县| 彰武县| 绍兴县| 自治县| 黄平县| 阳江市| 开鲁县| 新河县| 清新县| 交口县| 平果县| 连平县| 五大连池市| 苏尼特右旗| 阜新| 灵台县| 宣城市| 肥乡县| 射阳县| 宣威市| 沙湾县| 瑞昌市| 新邵县| 天全县|