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

I want to connect to a remote server and execute some commands, how can I achieve this?

0 Answers  


Is bash a shell script?

0 Answers  


How to group the commands in shell scripting?

2 Answers   Polaris,


write a non recursive shell script that accepts any number of arguments and prints them in the reverse order

3 Answers  


What is subshell?

0 Answers  


write a shell script to find the largest number from 3 given numbers.

6 Answers  


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

0 Answers  


What is the use of "shift" command in passing parameters?

1 Answers  


What language is shell scripting?

0 Answers  


How will I insert a line "abcdef" at every 100th line of a file?

2 Answers  


Explore about environment variables?

0 Answers  


Explain about shebang?

0 Answers  


Categories