• 我不去想是否能够成功
    既然选择了远方 便只顾风雨兼程

    我不去想能否赢得爱情
    既然钟情于玫瑰 就勇敢地吐露真诚

    我不去想身后会不会袭来寒风冷雨
    既然目标是地平线 留给世界的只能是背影

  • 人和猪的区别就是,猪一直是猪,而人有时却不是人。

我是深知欲速则不达,心急吃不了热豆腐的,你怎么能说我有拖延症?

log for linux bash command

Unless a command has output or logging already configured, rc.local commands will not log anywhere.

If you want to see logs for specific commands, try redirecting the stdout and stderr for rc.localto somewhere you can check. Try adding this to the top of your /etc/rc.local file.


exec 2> /tmp/rc.local.log      # send stderr from rc.local to a log file
exec 1>&2                      # send stdout to the same log file
set -x                         # tell sh to display commands before execution

Though this will require to rerun the rc.local file.

标签bash debug log

最新评论