RAS Infosystems. Powered by Blogger.

Monday, 25 July 2016

Linux Command Line Tips and Tricks




You all are aware of "#history" command which help us to audit the commands we would run earlier. But if you want to check the history with time stamp then what to do, don't worry below steps will help you to check history with time stamp,
Enter the below commands in terminal window
#HISTTIMEFORMAT="%d/%m/%y/ %T"
#history
Now you can see history with time stamp.
Command Explanations -
  • HISTIMEFORMAT – Environmental Variable
  • %d – Day
  • %m – Month
  • %y – YEAR
  • %T – Time stamp
Any doubts please use coment section, Like Share Subcribe for updates.

0 comments:

Post a Comment

Sponsers