how to read systems current date and time

Answers were Sorted based on User's Feedback



how to read systems current date and time..

Answer / madhavi

echo "the current date and time is:"

echo `date`

Is This Answer Correct ?    4 Yes 0 No

how to read systems current date and time..

Answer / vjsujay

#!/usr/bin/sh

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

Is This Answer Correct ?    3 Yes 1 No

how to read systems current date and time..

Answer / no one

with $date command.

Is This Answer Correct ?    4 Yes 3 No

how to read systems current date and time..

Answer / manish

but how
plz write script

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More Shell Script Interview Questions

how to get part of string variable with echo command only?

0 Answers  


What does $@ mean in shell?

0 Answers  


How to get the last line from a file using just the terminal?

0 Answers  


How do I run a script on mac?

0 Answers  


What is the lifespan of a variable inside a shell script?

0 Answers  






When should shell programming/scripting not be used?

0 Answers  


What is another name for a bash shell script that you might see?

0 Answers  


How shell works?

1 Answers  


c program to display the information of given file similar to givan by the unix or linux command ls -l

0 Answers   IBM,


How to take input values from the user?

4 Answers  


What is echo in shell?

0 Answers  


How will you emulate wc –l using awk?

0 Answers  


Categories