From 7f9c284337b6a6a400c9ef228a69f48884be2527 Mon Sep 17 00:00:00 2001 From: sthope Date: Sun, 31 Jul 2022 19:14:25 +0200 Subject: [PATCH] update --- docs/cmnds/101.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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 ``` - - +______________________________________________________________________________________________________