making environment variable permanent

后端 未结 1 1006
予麋鹿
予麋鹿 2020-12-11 20:30
shell> export HISTTIMEFORMAT=\'%F %T \'
shell> history | tail -n 2
 1006  2010-01-16 00:55:47  export HISTTIMEFORMAT=\'%F %T \'
 1007  2010-01-16 00:55:49 hist         


        
相关标签:
1条回答
  • 2020-12-11 21:05

    Add it to your ~/.bashrc and ~/.bash_profile - one of these will be read when bash starts. .bash_profile is read when you login, .bashrc is read when you create a new interactive non-login shell (such as opening a terminal window from X)

    0 讨论(0)
提交回复
热议问题