Linux第一周(11.25-12.1)3、配置環(huán)境變量,實(shí)現(xiàn)執(zhí)行history的時(shí)候可以看到執(zhí)行命令的時(shí)間。

[Wed Dec 18 16:03:51 root@centos7~# HISTTIMEFORMAT="%F %T "

[Wed Dec 18 16:07:20 root@centos7~#history

? 450? 2019-12-18 16:03:17 HISTTIMEFORMAT="%F %T "

? 451? 2019-12-18 16:03:19 history

? 452? 2019-12-18 16:05:42 HISTTIMEFORMAT="%F %T "

? 453? 2019-12-18 16:06:21 history


[Wed Dec 18 16:11:29 root@centos7/home/liukangming#vim /etc/profile.d/evn.sh

HISTTIMEFORMAT="%F %T "

"/etc/profile.d/evn.sh" 1L, 24C? ? ? ? ? ? ? ? ? ? ? ? ? ?

[Wed Dec 18 16:12:16 root@centos7/home/liukangming#history

? ? 1? 2019-12-18 16:10:57 cd /home/

? ? 2? 2019-12-18 16:10:57 cd

? ? 3? 2019-12-18 16:10:57 ls

? ? 4? 2019-12-18 16:10:57 dir

? ? 5? 2019-12-18 16:10:57 ls

? ? 6? 2019-12-18 16:10:57 ls -l

? ? 7? 2019-12-18 16:10:57 cd /data/

? ? 8? 2019-12-18 16:10:57 ls

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容