ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0018191ClearOSsystem-base - Base Systempublic2017-12-10 10:242020-09-14 06:00
Reporterbchambers 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
StatusclosedResolutionsuspended 
PlatformOSOS Version
Product Version7.4.0 
Target VersionFixed in Version 
Summary0018191: Add timestamp to bash history
DescriptionIt would be nice for support/troubleshooting to have a timestamp of one command line changes were made.


Consider adding:

HISTTIMEFORMAT="%b %d %Y %T "

to /etc/profile.d/clearos.sh

so that 'history' command returns something like:

 998 Dec 10 2017 12:23:39 history
  999 Dec 10 2017 12:23:50 vi /etc/profile.d/clearos.sh
 1000 Dec 10 2017 12:23:55 history
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0006821)
NickH (developer)
2017-12-10 12:05

Double-edged sword. It then stops you directly copying and pasting multiple lines from history to the command line in one go.
(0006841)
bchambers (administrator)
2017-12-12 08:49

history | awk '{ print $6 }'
(0014671)
NickH (developer)
2020-09-14 06:00

Migrated to https://gitlab.com/clearos/clearfoundation/system-base/-/issues/6 [^]

- Issue History
Date Modified Username Field Change
2017-12-10 10:24 bchambers New Issue
2017-12-10 12:05 NickH Note Added: 0006821
2017-12-12 08:49 bchambers Note Added: 0006841
2018-02-21 09:26 user2 Status new => acknowledged
2018-03-30 11:36 user2 Category clearos-base - Base System => system-base - Base System
2020-09-14 06:00 NickH Note Added: 0014671
2020-09-14 06:00 NickH Status acknowledged => closed
2020-09-14 06:00 NickH Resolution open => suspended