您好,登錄后才能下訂單哦!
export HISTTIMEFORMAT='%F %T'
source /etc/profile
[root@localhost network-scripts]# history
1 2019-12-06 13:57:01 free -m
2 2019-12-06 13:57:32 cat /proc/cpuinfo
3 2019-12-06 13:57:39 top
4 2019-12-06 13:58:19 ll
5 2019-12-06 13:58:27 cd /etc/sysconfig/network-scripts/
6 2019-12-06 13:58:27 ls
7 2019-12-06 13:58:28 ll
8 2019-12-06 13:58:41 ip addr
9 2019-12-06 13:58:46 vim ifcfg-em1
10 2019-12-06 13:58:51 yum install vim -y
11 2019-12-06 14:01:23 history
12 2019-12-06 14:04:15 vim /etc/profile
13 2019-12-06 14:04:48 source /etc/profile
14 2019-12-06 14:04:50 history
15 2019-12-06 14:05:13 vim /etc/profile
16 2019-12-06 14:05:22 source /etc/profile
17 2019-12-06 14:05:23 history
[root@localhost network-scripts]#
# 命令的間隔可以在定義環(huán)境變量時自已調(diào)整
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。