Showing posts with label How to show future timestamps in Solaris. Show all posts
Showing posts with label How to show future timestamps in Solaris. Show all posts

Wednesday, December 16, 2009

How to show future timestamps in Solaris

And now comes the moment to reveal the little trick I was talking about. Even though the standard /bin/ls command won't show you the future timestamps, you can still check them using the /usr/ucb/ls version of the ls command. The syntax is very similar, but you can also see the future timestamps:

solaris$ /usr/ucb/ls -al *myserver1*
-rw-r--r-- 1 bbuser 48 Jan 9 10:59 np_greys@solaris-server.com_myserver1.conn
-rw-r--r-- 1 bbuser 50 Jan 9 10:41 np_greys@solaris-server.com_myserver1.cpu
-rw-r--r-- 1 bbuser 51 Jan 9 10:41 np_greys@solaris-server.com_myserver1.disk
-rw-r--r-- 1 bbuser 53 Jan 9 10:36 np_greys@solaris-server.com_myserver1.memory
-rw-r--r-- 1 bbuser 51 Jan 9 10:41 np_greys@solaris-server.com_myserver1.msgs
-rw-r--r-- 1 bbuser 52 Jan 9 11:16 np_greys@solaris-server.com_myserver1.procs

Looking at them, you can see that BigBrother simply set the modification time for these files to be 45min into the future.

That's it for today – hope you liked this trick!