Unix/Linux Commands and Shell Scripting
This Blog provides good knowledge over Unix/Linux commands and Shell Scripting.
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment