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 open a jshell in cmd?
How will you find the 99th line of a file using only tail and head command?
How can you get the value of pi till a 100 decimal places?
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
What is the default shell of solaris?
What is gui scripting?
What does $$ mean in shell script?
How will you print the login names of all users on a system?
What is the use of a shebang line?
What is meant by dos operating system?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
How to print all array elements and their respective indexes?
Is shell script a programming language?
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 can scripts do?