This commit is contained in:
parent
aea092b2ad
commit
7f9c284337
@ -2,20 +2,23 @@
|
||||
|
||||
|
||||
<details>
|
||||
<summary markdown="span"> Get time and date for History commands</summary>
|
||||
<summary markdown="span"> Get Time and Date for History command</summary>
|
||||
|
||||
Send:
|
||||
```
|
||||
HISTTIMEFORMAT='%Y-%m-%d %T " && history
|
||||
```
|
||||
Or make it permanent:
|
||||
|
||||
```
|
||||
HISTTIMEFORMAT='%Y-%m-%d %T "
|
||||
history
|
||||
|
||||
make it permanent:
|
||||
nano ~/.bashrc
|
||||
```
|
||||
|
||||
search for `HISTCONTROL' and under it enter:
|
||||
search for `HISTCONTROL` and under it enter:
|
||||
|
||||
```
|
||||
HISTTIMEFORMAT='%Y-%m-%d %T "
|
||||
save and should now be permanent
|
||||
```
|
||||
|
||||
|
||||
______________________________________________________________________________________________________
|
||||
</details>
|
||||
|
Loading…
x
Reference in New Issue
Block a user