兩個簡單的shell腳本題目

一、用shell顯示當前日期,時間,用戶名和當前工做目錄web #!/bin/bash #寫一個shell腳原本獲得當前的日期,時間,用戶名和當前工做目錄 echo -n "當前日期爲:" date | awk '{print $1,$2,$3,$4}' echo -n "時間爲:" date | awk '{print $5}' echo -n "用戶名爲:" whoami echo -n "當
相關文章
相關標籤/搜索