CSS动画实例:图文切换
时间:2020-08-09 20:21:36
收藏:0
阅读:97
bash环境变量配置文件
全局配置文件:
- /etc/profile
- /etc/profile.d/
- /etc/bashrc
个人配置文件: - ~/.bash_profile
- ~/.bashrc
history 常用环境变量:
HISTSIZE: 执行history命令输出的行数,默认1000行
HISTFILESIZE: 保存history历史命令文件~/.bash_history最多保存的行数
HISTTIMEFORMAT: 指定执行history命令时显示的时间格式
HISTFILE: 指定存放历史命令的文件,默认是~/.bash_history
范例:
#vi /etc/profile.d/history.sh
HISTTIMEFORMAT="%Y %T:whoami
"
#source /etc/profile.d/history.sh
#history
1 2020-08-10 04:43:05:root help history
2 2020-08-10 04:43:33:root history
3 2020-08-10 04:43:36:root history -n
评论(0)