22 lines
336 B
Markdown
22 lines
336 B
Markdown
<h1 align="center" id="heading"> 101 </h1>
|
|
|
|
|
|
<details>
|
|
<summary markdown="span"> Get time and date for History commands</summary>
|
|
|
|
|
|
```
|
|
HISTTIMEFORMAT='%Y-%m-%d %T "
|
|
history
|
|
|
|
make it permanent:
|
|
nano ~/.bashrc
|
|
|
|
search for `HISTCONTROL' and under it enter:
|
|
HISTTIMEFORMAT='%Y-%m-%d %T "
|
|
save and should now be permanent
|
|
```
|
|
|
|
|
|
</details>
|