臨時添加
exprt HISTTIMEFORMAT=’%F %T ’
永久套用
vim ~/.bashrc
HISTTIMEFORMAT="%F %T "
source .bashrc
寫入 /etc/profile 達到全體套用
vim /etc/profile
HISTTIMEFORMAT="%F %T "
source /etc/profile
```
***
***
**Shell 執行的方法**
-----
```sql
echo 'HISTTIMEFORMAT="%F %T "' >> /etc/profile
source /etc/profile