how to read systems current date and time
Answers were Sorted based on User's Feedback
In Unix, to know the current date and time, the command is
date.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / santana20142003
$date -u +%r -->02:26:38 PM
$ date -u +%T -->14:26:48
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kirtiranjan sahoo
we can use DATE command to know the system date and time.
and want to any modify, then
date +%Y-%m-%d
Y: Year
m: No of month
d: date number
If you want to know the yesterday date, simply you can write the below command
date -d "yesterday"
or
date -d "-1day"
Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between a shell variable that is exported and the one that is not exported?
What is the best scripting language?
I want to upload a file to remote server through ftp daily.Can anyone suggest how to make a shell script for that.I hv credentials for that ftp
What are the Different types of shells?
How to create environment variables?What are the conditions for creating variables?
What is the significance of $#?
In a single command how do you run the previous command in the command prompt.
What is the crontab?
How to print the first array element?
What is a beat in a script?
Which scripting language is best for automation?
what is the meaning of First line of shell script ,what is meaning of #! pleas explain brifly