Without Using $date -dyesterday. How I get the yesterday's
date ?

Answers were Sorted based on User's Feedback



Without Using $date -dyesterday. How I get the yesterday's date ?..

Answer / snigdha

$date --date='yesterday'
$date --date='1 day ago'

Is This Answer Correct ?    14 Yes 3 No

Without Using $date -dyesterday. How I get the yesterday's date ?..

Answer / kumar

$date --date='1 day ago'

Is This Answer Correct ?    7 Yes 2 No

Without Using $date -dyesterday. How I get the yesterday's date ?..

Answer / madhu babu

date --date=yesterday +'%Y-%m-%d'

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Linux AllOther Interview Questions

Where is standard output usually directed?

2 Answers  


Who owns the data dictionary?

2 Answers  


How does the boot process[init levels] work on Linux? How is it different from Solaris?

3 Answers  


You want to create a compressed backup of the users' home directories. What utility should you use?

5 Answers  


How to check all open ports on linux machine and block unsed ports????????

7 Answers   Tech Mahindra,






how can i create samba server in fedora 9.0 ? and domain/LDAP controller! clilent side is windows pc .?

0 Answers   Wipro,


what is difference between inetd and xinetd

2 Answers  


What utility can you use to automate rotation of logs?

2 Answers  


what is memory mapped / IO mapped ? Which calls used for this to access any hardware address in linux device driver ?

3 Answers   Broadcom,


What is the difference between home directory and working directory?

10 Answers   Accenture, Flexi,


what are the steps for Password-less ssh

5 Answers   IBM, Mind Tree,


What is the use of DNS Server? Name other servers works same as like DNS?

2 Answers  


Categories