Linux system boot time and the current time

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"

Guess you like

Origin www.cnblogs.com/yuqilin/p/11719038.html