How to view the current time from the command line

in command line, date time, newbie

To see the current time from the Ubuntu or Linux command line:

date

which will give you:

Fri May 30 15:53:21 EDT 2008

To see how to include and format dates and times in your shell scripts, see this post:

http://www.lifeonubuntu.com/2008/05/how-to-format-dates-in-shell-scripts.html

Comments on this entry are closed.

Previous post:

Next post: