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
How do I edit a .sh file?
What is scripting used for?
Explain about sourcing commands?
Explain about stdin, stdout and stderr?
Is shell scripting difficult?
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 is the way to do multilevel if-else's in shell scripting?
What is the default ubuntu terminal?
How can we find the process name from its process id?
Can shell script run on windows?
Is shell scripting useful?
What are different types of shell?
What is .sh file in mac?
write a shell script to check the failed jobs?
How to find all the files modified in less than 3 days and save the record in a text file?