$ sudo -s
  • Home
  • About
  • Speednet
cover

$ sudo -s

Tech and Thoughts

  • Home
  • About
  • Speednet
  • Home
  • About
  • Speednet

Adding Timestamp to bash

Use your favourite text editor and add this following line /etc/profile.

HISTTIMEFORMAT="%F-%R%t"

This is good for debugging, auditing and keeping track of commands entered.

Posted in Security, Tech and tagged bash, BSD, FreeBSD, Linux, Security on December 28, 2012 by yaojun.