How do I get the current Unix time in milliseconds in Bash · I realise this does not give milliseconds since epoch but it might still be useful as an answer for some of the cases it all depends on what you need it for really multiply by 1000 if you need a millisecond number D Simplest way would be to make a small executable from C and make it available to the script Share Improve this answer Follow edited Nov 25 14 at 15 45 kasperd 29