How do I get current date in bash?

Nam Lê

Member
How do I get current date in bash?
Answer
To get the date in bash shell and add a date, you can
use the GNU date command as date -d ‘Feb 12 +1 day’ +%F which will output 2020-02-13 .
 

Tìm kiếm

Back
Top