DATE COMMAND

DATE COMMAND

 date - print or set the system date and time

 SYNOPSIS : -

       date [OPTION]... [+FORMAT]

 date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]

DESCRIPTION : -

Display the current time in the given FORMAT, or set the system date. Mandatory arguments to long options are mandatory for short options too.

To run Livetime :-

No alt text provided for this image

Manual of date : -

man date

It gives the more information about date command

No alt text provided for this image

OPTIONS

 ➡️ To know the VERSION

 --version :output version information and exit

date --version

No alt text provided for this image


 ➡️ To print WEEK

       ▶ In shortcut form

       %a  locale's abbreviated weekday name

date +%a

           ▶ In full form

       %A  locale's full weekday name

            date +%A

No alt text provided for this image


➡️To print MONTH

       ▶%b  locale's abbreviated month name

             date +%b

  ▶ %B  locale's full month name

                                 date +%B

No alt text provided for this image


 ➡️To print DATE

       ▶ %d  day of month

              date +%d

 ▶ %D  date; same as %m/%d/%y

             date +%D

       ▶ %F full date; same as %Y-%m-%d

             date +%F

No alt text provided for this image


  ➡️To print YEAR

      ▶ %C except omit last two digits (e.g., 20)

             date +%C

      ▶ %j  day of year (001..366)

             date +%j

No alt text provided for this image


 ➡️To print TIME

 ▶ 24 hours format

                date +%H

         ▶ 12 hours format

                date +%I

  ▶ %M  minute (00..59)

                 date +%M

        ▶ %N  nanoseconds (000000000..999999999)

                 date +%N

         ▶ %r  locale's 12-hour clock time

                 date +%r

          ▶ %T  time; same as %H:%M:%S

                 date +%T

No alt text provided for this image

➡️ To know more about date command

date --help

No alt text provided for this image



To view or add a comment, sign in

More articles by Anudeepthi Kolagani

  • To launch Docker in Ec2 Instance and installing Webserver on Docker

    To Launch An Instance in AWS :: Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the…

    2 Comments
  • To launch a redhat ec2 instance in AWS To launch webserver

    To Launch An Instance in AWS :: Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the…

  • LAMBDA Function In AWS

    ▪ AWS Lambda is a serverless compute service that runs your code in response to events ▪ These events may include…

    2 Comments
  • Quantum Computing

    Quantum Computer: ✳ Quantum Computer had the potential to simulate things a classical computer could not feasibly do ✳…

    6 Comments
  • Templates concept in PYTHON

    What is Template ? Template is a class of String module. It allows for data to change without having to edit the…

  • How To Read The Data From "RAM"

    What is RAM ? Random-access memory (RAM) is a computer’s short-term memory. RAM is short for “random access memory” and…

  • FUNNY COMMANDS IN LINUX

    ➡️ cowsay : - An ASCII cow in the terminal will say whatever you want. The cowsay command draws out little animals…

  • espeak-ng

    espeak-ng : - A multi-lingual software speech synthesizer SYNOPSIS : - espeak-ng [options] [words] DESCRIPTION : -…

  • ZENITY

    NAME : - zenity - display GTK+ dialogs SYNOPSIS : - zenity [options] DESCRIPTION : - zenity is a program that will…

Explore content categories