Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for a way to display my time in Debian Linux as a timestamp, e.g.

1279628325

I can't find any options to do that with the date command. Any ideas?

share|improve this question

2 Answers 2

up vote 15 down vote accepted

You can do this with

date +%s

For more possibilities, see

man date
share|improve this answer

You can use the following:

date +%s
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.