Languages
[Edit]
EN

Linux / Bash - print current Unix time in seconds

4 points
Created by:
martineau
1320

In this short article we would like to show how to print in Linux unix time in seconds.

Quick example:

date +%s

Practical example: 

[root@localhost ~]# date +%s
1592518728

Screenshot:

Unix date in seconds example - Linux with Bash
Unix date in seconds example - Linux with Bash

See also

  1. Bash - current timestamp - shows time getting with different units 
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Linux

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join