Basic Commands in Linux - To display Date And Time

Date


    Date is used to display the current date and time in your terminal. Date command provides lots option to display date and time. Here you can find the small range, Please comment if need to know more option.

date - this will display the date and time with coordinated universal time.
date

date +%A - this will display current weekday full name.
date +%A

date +%a - this will display the current weekday short name.
date +%a

date +%B - this will display the current month full name.
date +%B

date +%b - this will display the current month short name.
date +%b

date +%C - this will display the current Century.
date +%C 

date +%c - this will display local date and time.
date +%c

date +%D - this will display simply date with month and year.
date +%D

date +%d - this will display just current date.
date +%d

Comments

Popular posts from this blog

Basic Commands in Linux - To display list of files and folders in a directory or folder

Basic Commands in Linux - To create a file