我添加了一些简单的history
命令,以便每次使用带有shell 的Ubuntu 18.04.2 LTS
戴尔本地计算机时获取一些信息。如果我打开一个新的外壳:bash 4.4.20(1)-release
/bin/bash
history | tail
但我注意到,当我打开一个新终端时,它确实会向我显示任何内容,而如果我:
source ~/.bashrc
效果很好。我想这与特性和新终端有关,history
但即使谷歌搜索并查看这里我也无法弄清楚是什么!
预先感谢您的任何帮助!
--- 已编辑 ---
grep HIST ~/.bashrc ~/.profile ~/.bash_profile
/home/enrico/.bashrc:HISTCONTROL=ignoreboth
/home/enrico/.bashrc:# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
/home/enrico/.bashrc:HISTSIZE=1000
/home/enrico/.bashrc:HISTFILESIZE=2000
/home/enrico/.bashrc:export HISTTIMEFORMAT="%Y-%m-%d %T "
grep: /home/enrico/.bash_profile: No such file or directory