Add a timestamp to your bash history

# Add the following to .bashrc export HISTTIMEFORMAT="%d/%m/%y %T " # Result ~$ history 1 05/05/16 18:07:03 clear 2 05/05/16 18:07:04 cd 3 05/05/16 18:07:05 ls -ltr 4 05/05/16 18:07:07 clear 5 05/05/16 18:07:12 touch file 6 05/05/16 18:07:17 chmod +rw file 7 05/05/16 18:07:22 chmod +x file 8 05/05/16 18:07:28 cat > file 9 05/05/16 18:07:34 git commit -a -m ‘cool feature' 10 05/05/16 18:07:36 git push

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.