This commit is contained in:
21
docs/cmnds/101.md
Normal file
21
docs/cmnds/101.md
Normal file
@ -0,0 +1,21 @@
|
||||
<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>
|
Reference in New Issue
Block a user