Linux目录移动

一个目录是移动与mv命令在一个Linux的盒子,应该看什么日志这样的行动? 在根bash_history我可以看到命令被使用,不幸的是bash_history不logging时间和date,因此使它很难追查。

问候和感谢。

弗拉德,作为一个经验法则(除非你有系统审计启用,大多数pipe理员避免,因为它可能招致巨大的开销)文件活动实际上不logging在Linux的土地。 为了使您的.bash_history对未来的事件更有用,您可能需要将以下行添加到.bashrc中:

 # append to the history file, don't overwrite it shopt -s histappend # write out each command, useful if you have many sessions/shells open at the same time, or run the risk of having an unclean session termination export PROMPT_COMMAND='history -a' # 'normal' history stuff export HISTFILESIZE=8000 export HISTSIZE=6000 export HISTTIMEFORMAT="%F %T%n"