第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
  • #OS type 操作系統(tǒng)類型(GNU/Linux) os=$(umame -o) #OS version 操作系統(tǒng)版本(Red Hat Enterprise Linux Server release 6.5 (Santiago)) version=$(cat /etc/issuegrep -e "Server") #OS architecture 硬件運行系統(tǒng)的機器 ID 號(x86_64) architecture=$(uname -m) #Kernel Release 操作系統(tǒng)的發(fā)行版號(3.2.35) kernelrelease=$(uname -r) #hostname 節(jié)點名稱(xulianzhen) hostname=$(uname -n) #Internal IP 內(nèi)網(wǎng)ip(192.168.15.128) internalip=$(hostname -I) #External IP 出口ip(123.58.141.68) externalip=$(curl -s http://ipecho.net/plain) #DNS(192.168.130.32) nameservers=$(cat /etc/resolv.conf grep -E "\<nameserver[ ]+" awk '{print $NF}') #check connected to Internet 查詢是否連接互聯(lián)網(wǎng)(Internet:Connected) ping -c 2 imooc.com &>/dev/null && echo "Internet:Connected" echo "Internet:Disconnected" #check Logged In Users(查看當前登錄用戶) who>/tmp/who
    查看全部
  • #OS type os=$(umame -o) #OS version version=$(cat /etc/issuegrep -e "Server") #OS architecture architecture=$(uname -m) #Kernel Release kernelrelease=$(uname -r) #hostname hostname=$(uname -n) #Internal IP #External IP
    查看全部
  • if [ $# -eq 0 ]; then #$1,$2等等分別表示第一個、第二個參數(shù) #$@, $*表示所有的參數(shù) #$#表示位置參數(shù)的數(shù)目(對腳本來說,是運行腳本時所帶的參數(shù);對函數(shù)來說,是函數(shù)調(diào)用時傳入的參數(shù))。數(shù)值的比較用 -eq ,字符串的比較才用 = #腳本的意思就是判斷是否有參數(shù),如果沒有的話執(zhí)行then后面的命令
    查看全部
    1 采集 收起 來源:概述

    2016-10-08

  • 系統(tǒng)監(jiān)控腳本功能
    查看全部
    0 采集 收起 來源:概述

    2016-10-04

  • shell典型應用之系統(tǒng)信息及運行狀態(tài)獲取 腳本:system_monitor.sh 功能:提取操作系統(tǒng)信息(內(nèi)核、系統(tǒng)版本、網(wǎng)絡(luò)地址等),分析系統(tǒng)的運行狀態(tài)(cpu負載、內(nèi)存及磁盤使用率等) 1.腳本內(nèi)容: #!/bin/bash clear if [[ $# -eq 0 ]] #判斷位置參數(shù)的個數(shù)是否為0 then reset_terminal=$(tput sgr0) #設(shè)置變量,每次調(diào)用它都會使屏幕的輸出恢復正常 #Check OS Type os=$(uname -o) echo -e '\E[36m'"Operating System Type: " $reset_terminal $os #Check OS Release Version and Name os_name=$(cat /etc/issue) echo -e '\E[36m'"Check OS Release Version and Name: " $reset_terminal $os_name #Check Architecture architecture=$(uname -m) echo -e '\E[36m'"Check Architecture: " $reset_terminal $architecture #Check Kernel Release kernerrelease=$(uname -r) echo -e '\E[36m'"Check Kernel Release: " $reset_terminal $kernerrelease #Check Hostname hostname=$(uname -n) echo -e '\E[36m'"Check Hostname: " $reset_terminal $hostname #或者 echo $(HOSTNAME)
    查看全部
  • #Check Internal IP internalip=$(hostname -I) echo -e '\E[36m'"Check Internal IP: " $reset_terminal $internalip #Check External IP externalip=$(curl -s http://ipecho.net/plain) echo -e '\E[36m'"Check External IP: " $reset_terminal $externalip #通過curl命令發(fā)出網(wǎng)絡(luò)請求,返回自己的公網(wǎng)IP #Check DNS nameservers=$( cat /etc/resolv.conf grep -E "\<nameserver[ ]+" awk '{print $NF}') echo -e '\E[36m'"Check DNS: " $reset_terminal $nameservers #grep -E 相當于egrep,擴展正則;匹配以nameserver開頭后面為空的字符串,打印$NF(空格)后面的字符串 #Check if connected to Internet or not ping -c 2 baidu.com &>/dev/null && echo "Internet:Connected" echo "Internet:Disconnected" #輸出到空設(shè)備回收站中,不顯示任何輸出 #Check Logged In Users who>/tmp/who echo -e '\E[36m' "Logged In Users" $reset_terminal && cat /tmp/who rm -f /tmp/who fi
    查看全部
  • #OS type 操作系統(tǒng)類型(GNU/Linux) os=$(umame -o) #OS version 操作系統(tǒng)版本(Red Hat Enterprise Linux Server release 6.5 (Santiago)) version=$(cat /etc/issue|grep -e "Server") #OS architecture 硬件運行系統(tǒng)的機器 ID 號(x86_64) architecture=$(uname -m) #Kernel Release 操作系統(tǒng)的發(fā)行版號(3.2.35) kernelrelease=$(uname -r) #hostname 節(jié)點名稱(xulianzhen) hostname=$(uname -n) #Internal IP 內(nèi)網(wǎng)ip(192.168.15.128) internalip=$(hostname -I) #External IP 出口ip(123.58.141.68) externalip=$(curl -s http://ipecho.net/plain) #DNS(192.168.130.32) nameservers=$(cat /etc/resolv.conf | grep -E "\<nameserver[ ]+" | awk '{print $NF}') #check connected to Internet 查詢是否連接互聯(lián)網(wǎng)(Internet:Connected) ping -c 2 imooc.com &>/dev/null && echo "Internet:Connected" || echo "Internet:Disconnected" #check Logged In Users(查看當前登錄用戶) who>/tmp/who
    查看全部
  • 接下面筆記的代碼 #Check Internal IP internalip=$(hostname -I) echo -e '\E[36m'"Check Internal IP: " $reset_terminal $internalip #Check External IP externalip=$(curl -s http://ipecho.net/plain) echo -e '\E[36m'"Check External IP: " $reset_terminal $externalip #通過curl命令發(fā)出網(wǎng)絡(luò)請求,返回自己的公網(wǎng)IP #Check DNS nameservers=$( cat /etc/resolv.conf grep -E "\<nameserver[ ]+" awk '{print $NF}') echo -e '\E[36m'"Check DNS: " $reset_terminal $nameservers #grep -E 相當于egrep,擴展正則;匹配以nameserver開頭后面為空的字符串,打印$NF(空格)后面的字符串 #Check if connected to Internet or not ping -c 2 baidu.com &>/dev/null && echo "Internet:Connected" echo "Internet:Disconnected" #輸出到空設(shè)備回收站中,不顯示任何輸出 #Check Logged In Users who>/tmp/who echo -e '\E[36m' "Logged In Users" $reset_terminal && cat /tmp/who rm -f /tmp/who fi
    查看全部
  • shell典型應用之系統(tǒng)信息及運行狀態(tài)獲取 腳本:system_monitor.sh 功能:提取操作系統(tǒng)信息(內(nèi)核、系統(tǒng)版本、網(wǎng)絡(luò)地址等),分析系統(tǒng)的運行狀態(tài)(cpu負載、內(nèi)存及磁盤使用率等) 1.腳本內(nèi)容: #!/bin/bash clear if [[ $# -eq 0 ]] #判斷位置參數(shù)的個數(shù)是否為0 then reset_terminal=$(tput sgr0) #設(shè)置變量,每次調(diào)用它都會使屏幕的輸出恢復正常 #Check OS Type os=$(uname -o) echo -e '\E[36m'"Operating System Type: " $reset_terminal $os #Check OS Release Version and Name os_name=$(cat /etc/issue) echo -e '\E[36m'"Check OS Release Version and Name: " $reset_terminal $os_name #Check Architecture architecture=$(uname -m) echo -e '\E[36m'"Check Architecture: " $reset_terminal $architecture #Check Kernel Release kernerrelease=$(uname -r) echo -e '\E[36m'"Check Kernel Release: " $reset_terminal $kernerrelease #Check Hostname hostname=$(uname -n) echo -e '\E[36m'"Check Hostname: " $reset_terminal $hostname #或者 echo $(HOSTNAME)
    查看全部
  • cache bafull defrent
    查看全部
  • 系統(tǒng)及運行狀態(tài)的查詢
    查看全部
  • cache 和buffer的區(qū)別
    查看全部
  • 系統(tǒng)使用內(nèi)存和應用使用內(nèi)存的區(qū)別
    查看全部
  • df -hP|grep -vE 'Filesystem'|awk '{print $5}'
    查看全部
  • 腳本優(yōu)化
    查看全部

舉報

0/150
提交
取消
課程須知
學習本課程前需要熟悉Linux的基礎(chǔ)知識,熟練使用VIM文本編輯器,并對shell基礎(chǔ)有所了解。作為《shell典型應用》系列的第二門課程,請先學習《Shell典型應用之主控腳本實現(xiàn)》。
老師告訴你能學到什么?
1、能夠進一步了解shell基礎(chǔ)。 2、能夠使用shell腳本提取Linux操作系統(tǒng)信息。 3、能夠使用shell腳本分析系統(tǒng)的運行狀態(tài)。

微信掃碼,參與3人拼團

微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號

友情提示:

您好,此課程屬于遷移課程,您已購買該課程,無需重復購買,感謝您對慕課網(wǎng)的支持!