how to read systems current date and time

Answer Posted / vjsujay

#!/usr/bin/sh

echo "Sample Script to display current date & time"
date

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bash eval?

547


What is path in shell script?

636


How to get the 3rd element/column from each line from a file?

689


Explain about gui scripting?

626


Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

1716






Where is bash history?

506


What is gui scripting?

605


What is a beat in a script?

544


What is shell terminal?

547


Can we run shell script in windows?

579


What lives in a shell?

537


Is bash a shell script?

603


What is a program shell?

570


How can the contents of a file inside jar be read without extracting in a shell script?

591


What happens on a system call?

558