创建以 时间 命名文件;; touch /logs/`date +%Y-%m-%d_%d_%H:%M`.log touch "$(date +%Y-%m-%d_%H:%M:%S.TXT) 转载于:https://www.cnblogs.com/sharesdk/p/9203784.html