Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm on a tablet pc (Lenovo X60) so my keyboard is not available all (most) of the time, AND I'm trying out Linux Mint instead of Windows.

The main thing I'm missing is my AutoHotKey :(

I need to figure out how to give a filename a timecode of year-month-day-hour-minute-second so it would look like this: 20111117191833 (for readability's sake, 2011/11/17 19:18:33)

But in Linux I don't know how to do this?

And I'm aware of IronAHK but I haven't even gotten it to use the Send command correctly :(

share|improve this question
up vote 2 down vote accepted

The linux date command includes some very powerful formatting commands, it is worth checking out the man page to see what is possible on your system. It's also worth noting that you can capture the stdout of the date process using backticks.

For example, to create a new empty file with the current timestamp you could use:

touch `date +%Y%m%d%H%M%S`
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .