一搏熄、永久生效
1速警、vim ~/.bashrc
或者 ~/.bash_profile
2瘫寝、增加:export HISTTIMEFORMAT="%F %T "
3、history 50
二、臨時(shí)生效
在當(dāng)前命令行下,
執(zhí)行export HISTTIMEFORMAT="%F %T "
然后history 50
一搏熄、永久生效
1速警、vim ~/.bashrc
或者 ~/.bash_profile
2瘫寝、增加:export HISTTIMEFORMAT="%F %T "
3、history 50
二、臨時(shí)生效
在當(dāng)前命令行下,
執(zhí)行export HISTTIMEFORMAT="%F %T "
然后history 50