26 lines
470 B
Markdown
26 lines
470 B
Markdown
<h1 align="center" id="heading"> 101 </h1>
|
|
|
|
|
|
<details>
|
|
<summary markdown="span"> Get Time and Date for History command</summary>
|
|
<br>
|
|
|
|
Send:
|
|
```
|
|
HISTTIMEFORMAT='%Y-%m-%d %T " && history
|
|
```
|
|
Or make it permanent:
|
|
|
|
```
|
|
nano ~/.bashrc
|
|
```
|
|
|
|
search for `HISTCONTROL` and under it enter:
|
|
|
|
```
|
|
HISTTIMEFORMAT='%Y-%m-%d %T "
|
|
save and should now be permanent
|
|
```
|
|
______________________________________________________________________________________________________
|
|
</details>
|