text: Q:
  
  Is there a way to insert a timestamp in a file in Ubuntu?
  
  I often find myself needing to type out a timestamp into a text file. Is there a way to quickly insert the current timestamp into a file in Ubuntu?
  
  A:
  
  You can use the date command.
  date >> my_file.txt
  
  Where my_file.txt is the file to put the timestamp into.
  Look at the manual page for strftime(3) (man 3 strftime) to see some date formatters you can use. For instance:
  date +%l:%M >> my_file.txt
  
  Will output something like 9:37 (Hour:Minute) to the text file.
  
  