Can be obtained by giving an argument to the date command
date +%s
# 1587575774
Image when embedding in bash script and dynamically generating
echo "Now timestamp is `date +%s`"
# Now timestamp is 1587575856
Recommended Posts