Answer Posted / 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 |
Post New Answer View All Answers
What is in a script?
How to print all array elements and their respective indexes?
What are the zombie processes?
What is the use of .sh file?
Why are shell scripts used?
Explain about debugging?
What is a file basename?
determine the output of the following command: echo ${new:-variable}
What does $0 mean in shell script?
Is shell scripting difficult?
What is shell scripting used for?
What is scripting used for?
What is wc in shell script?
What are the different types of commonly used shells on a typical linux system?
Why do we write bin bash in shell scripts?