photo lineviral_1.png

Add Timestamp To Final Inwards Linux

I came across an upshot few weeks dorsum at operate when I did to a greater extent than or less troubleshooting as well as ran to a greater extent than or less commands. When I was documenting it, I merely couldn’t recall the exact fourth dimension I started troubleshooting as well as issued those commands; I hateful I fifty-fifty had putty logs saved for nine hours of troubleshooting data. At that indicate I actually felt the withdraw to add together timestamp to final thence that I would know what I did as well as when.


This is our green Linux final or bash crunch prompt:


root@kali: #

Added this employment inwards .bashrc file.


export PROMPT_COMMAND="echo -n \[\$(date +%F-%T)\]\ "

and my Terminal prompt instantly looks similar this:


[2016-10-08-00:47:25] root@kali: $

I came across an upshot few weeks dorsum at operate when I did to a greater extent than or less troubleshooting as well as ran to a greater extent than or less Add timestamp to final inwards LinuxSo adjacent time, I salve the output of my putty or of my final session, I would know precisely what I did as well as when I did.


Pretty bully manner as well as saves a lot of headaches if y'all inquire me. It’s non something novel as well as if you’re similar Jeff, as well as then y'all would know it already… but I am non Jeff as well as non many people are, thence merely added this to my listing of collection. Enjoy.


Buat lebih berguna, kongsi:
close