Linux环境变量配置

一、配置终端效果

参考Linux终端美化

二、配置history历史命令记录方式

echo 'export HISTTIMEFORMAT="`whoami` %F %T "' >> /etc/profile


echo 'export HISTTIMEFORMAT="[%Y-%m-%d %H:%M:%S] [`whoami`] [`who am i|awk '{print $NF}'|sed -r 's#[()]##g'`]: "' >> /etc/profile
posted @ 2021-10-08 10:46  吕振江  阅读(52)  评论(0编辑  收藏  举报
浏览器标题切换
浏览器标题切换end