diff --git a/docs/cmnds/101.md b/docs/cmnds/101.md index 6f56a33..1e94299 100644 --- a/docs/cmnds/101.md +++ b/docs/cmnds/101.md @@ -2,20 +2,23 @@
- Get time and date for History commands + Get Time and Date for History command +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 ``` - - +______________________________________________________________________________________________________