程序分为两部分: /housekeep/scripts/housekeep_ux.cfg (将需要清理的日志路径和相关配置写入此) /housekeep/scripts/housekeep_ux.sh (具体的清理执行脚本,设置完成后将housekeep_ux.sh加入cron) 要提前创建归档文件 Read More
# date -d "$(awk -F. '{print $1}' /proc/uptime) second ago" +"%Y-%m-%d %H:%M:%S" 2021-12-18 21:55:56 # cat /proc/uptime 2144676.83 2131002.93 # date - Read More