Skip to main content

Ubuntu Most Used Terminal Commands

Command Name & Description

 

Command(s)

 

Sample

Date 

The simple “date” command displays the current date and time (including the day of the week, month, time, time zone, year).

date
tim@tim-Nitro-N50-620:~$ date
Thu Mar  2 07:23:38 PM EST 2023

TZ

By default, “date” command uses the time zone defined in path “/etc/localtime”. Linux user can change the time zone via Terminal by using command “TZ”.

TZ=GMT date

TZ=America/New_York date
tim@tim-Nitro-N50-620:~$ TZ=GMT date
Fri Mar  3 12:03:59 AM GMT 2023
tim@tim-Nitro-N50-620:~$ TZ=America/New_York date
Thu Mar  2 07:04:12 PM EST 2023