how to get milliseconds from date in ubuntu code example Example: date linux show millis # Returns the number of seconds + current nanoseconds. date +%s%N