How to get the time at millisecond level on Linux with command line? Posted on Mar 24, 2018 by Eric Ma In QA I know that gettimeofday() is a nice API. But how to get the number of seconds with milliseconds since the epoch time? You can get the time at nano-seconds level (although it is not guaranteed that the last digits are accurate) by: date +%s.%N Read more: Setting sbt log level at the command line Why are keys overlap in SST files at Level 0 in LevelDB system? Deleting a Specific Line From a Text File in Command Line in Linux How to set Google Chrome’s proxy settings in command line on Linux? How to convert a .docx .doc MS Word file to pdf in command line on Linux How to convert .pptx slides to .jpg or .png images on Linux in command line? How to make Emacs run in command line by default? Changing Linux User Password in One Command Line