How do I get the system time in BASH? How can I get the Linux system using bash shell?
You can use the date command to display and/or set the Linux / UNIX system date and time. To display current time, enter (open the terminal or login over ssh session and type the command at bash prompt):
Wed Oct 27 16:50:41 IST 2010
You can only display time, enter:
$ date +"%T"
The following command use your local standards to display date and time:
$ date +"%c"
Wednesday 27 October 2010 04:52:06 PM ISTTweet itFacebook itGoogle+ itPDF itFound an error/typo on this page?