views:

146

answers:

0

What do ctime, atime and mtime of /dev/tty7 suppose to mean on a Linux that runs X?

Perhaps ctime is the time X started?

It seems that I got conflicting results for atime and mtime... the time a key was pressed? the time something was written to the screen?

If it depends on the distribution, I'm particularly interested in the answer for Red Hat Enterprise Linux 4.

For your info, here is what I found for /dev/pts/n

  • mtime: the last time the terminal screen updated (a character was printed on the terminal)
  • atime: the last time a key was pressed (a character was read from the terminal)
  • ctime: the time the terminal was created (ssh login, opening xterm, etc)

And for a normal file:

  • mtime: (file content) modification time
  • atime: access time
  • ctime: (inode stat) change time