How to get the current timestamp with bash?

Timestamp is the number of seconds that have elapsed since January 1, 1970.

Run the following command to get it:

date +%s

This article is originally created by tooli.top. Please indicate the source when reprinting : https://www.tooli.top/posts/bash_timestamp

Posted on 2023-04-15 Mail to author