查Linux系统运行时间

cat /proc/uptime| awk -F. '{run_days=$1 / 86400;run_hour=($1 % 86400)/3600;run_minute=($1 % 3600)/60;run_second=$1 % 60;printf("系统已运行:%d天%d时%d分%d秒",run_days,run_hour,run_minute,run_second)}'


查linux内核版本

cat /proc/version


附:DSM6.2x = linux 3.0.x

       DSM7.x = linux 4.4.x

       QNAP 5 = linux 5.10.x