Thursday, 1 December 2016

Use of date command

To print date

a)date : This command is used to represent date.
                                         Syntax:$date

b)date +%d : To display day in number from date.
c)date +%a : To display weekday in word from date.
d)date +%y : To display year in number from date.

Ex:
$date +%d-%b-%y



No comments:

Post a Comment