About the closest to a unix command is the GNU date command, normally bundled with Linux. The %s format provides the number of seconds since the EPOCH:
date +%s
You can probably get a copy of GNU date at gnu.org.
A few of the unix-based scripting languages such as perl and TCL have internal functions similar to the stand "C" function time().
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.