Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.
This object is in archive! 

add timestamps to the history format on cPanel installation

cPanelMary shared this idea 11 years ago
Completed

When troubleshooting a webserver, it can be very helpful to have timestamps in the bash history. It would be very helpful if the cPanel installer would set up timestamps in /etc/bashrc. It would also be nice to have timestamps in history for jail shell users.

Best Answer
photo

After discussion with mary about the utility of this, this is planned for 11.48.


Here is what we're changing it to:

  1. -bash-4.1# history

    1 2014-09-18 11:48:43 sh latest

    2 2014-09-18 11:48:43 vim /etc/cpupdate.conf

    3 2014-09-18 11:48:43 vim /etc/cpsources.conf

    4 2014-09-18 11:48:43 vim /etc/cpsources.conf

    5 2014-09-18 11:48:43 sh latest

    6 2014-09-18 11:48:43 exit

    7 2014-09-18 11:48:43 vim /etc/cpupdate.conf

    8 2014-09-18 11:48:43 vim /etc/cpsources.conf

    9 2014-09-18 11:48:43 wget -N http://httpupdate.cpanel.net/latest

    10 2014-09-18 11:48:43 yum install screen

    11 2014-09-18 11:48:43 screen -S install

    12 2014-09-18 11:48:43 exit

    13 2014-09-18 11:48:44 histo

    14 2014-09-18 11:48:46 history

Replies (4)

photo
1

Fresh!

photo
1

not just what, but when!

photo
1

We need this. Badly.

photo
1

After discussion with mary about the utility of this, this is planned for 11.48.


Here is what we're changing it to:

  1. -bash-4.1# history

    1 2014-09-18 11:48:43 sh latest

    2 2014-09-18 11:48:43 vim /etc/cpupdate.conf

    3 2014-09-18 11:48:43 vim /etc/cpsources.conf

    4 2014-09-18 11:48:43 vim /etc/cpsources.conf

    5 2014-09-18 11:48:43 sh latest

    6 2014-09-18 11:48:43 exit

    7 2014-09-18 11:48:43 vim /etc/cpupdate.conf

    8 2014-09-18 11:48:43 vim /etc/cpsources.conf

    9 2014-09-18 11:48:43 wget -N http://httpupdate.cpanel.net/latest

    10 2014-09-18 11:48:43 yum install screen

    11 2014-09-18 11:48:43 screen -S install

    12 2014-09-18 11:48:43 exit

    13 2014-09-18 11:48:44 histo

    14 2014-09-18 11:48:46 history

Replies have been locked on this page!