Last system boot time: date -d "$ (. Awk -F '{print $ 1}' / proc / uptime) second ago" + "% Y-% m-% d% H:% M:% S"
system current time: date "+% Y-% m- % d% H:% M:% S"
Linux system boot time and the current time
Guess you like
Origin www.cnblogs.com/yuqilin/p/11719038.html
Ranking