How long has a shell been active?


While reading through the bash documentation I came across the SECONDS variable:

$ echo $SECONDS
33

which provides the number of seconds a shell has been active. It is amazing how many useful nuggets of information are located in the bash documentation.

This article was posted by Matty on 2006-02-19 20:39:00 -0400 -0400