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 |
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again
Which scripting language is best for automation?
What happens on a system call?
What is awk in shell scripting?
What is console line?
What is the difference between break and continue commands?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What are the two files of crontab command?
How do I run a script from command prompt?
What is sh in shell script?
What are the different shells available?
what are bootlevel in linux?which level is booting by default.