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 are the additional egrep symbols?
give me some website where i can get unix and testing meterials
How to declare functions in unix shell script?
What is the syntax of "nested if statement" in shell scripting?
What is the significance of the shebang line in shell scripting?
What language is bash written in?
In a single command how do you run the previous command in the command prompt.
Create a bash shell script to sort and then uniq the file from the command line & store it to a new file and output the results to the screen. Name this script "sortAndUniq.sh"
What are the advantages of using shell scripts?
How to print some text on to the screen?
What is the default ubuntu terminal?
What is the equivalent of a file shortcut that we have a window on a linux system?