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

Explain about login shell?

789


Why should we use shell scripts?

796


What is @echo off?

748


How will you pass and access arguments to a script in linux?

767


Tell something about the super block in shell scripting?

772


What is bash used for?

742


How to check if a directory exists?

764


How are shells born?

718


Why is it called a shell?

671


Can we run shell script in windows?

769


What is bash command used for?

756


c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command

4919


What are the advantages of shell scripting?

800


How do I open the shell prompt?

826


How to debug the problems encountered in the shell script/program?

815