#!/bin/sh
start=$(date +%s)
#The thing you want to do
echo "testing the echo duration"
sleep 3
end=$(date +%s)
duration=$(( end - start ))
echo "The total excution time is ${duration} seconds."
最後會印出執行的秒數,如下圖:
使用以下的command可以印出 eMMC的 partition資訊 lsblk --bytes --output name,partlabel,size 參數說明 --bytes: partition的大小,以byte的方式輸出 --output: 後面可以指定要輸出的內容...
沒有留言:
發佈留言