Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

check time in linux

date
or
date +”Year: %Y, Month: %m, Day: %d”
Year: 2022, Month: 04, Day: 16
or
$ timedatectl
Local time: Sat 2022-04-16 13:06:00 GMT
Universal time: Sat 2022-04-16 13:06:00 UTZ
RTC time: Sat 2022-04-16 13:02:34
Time zone: GMT (GMT, +0000)
System clock synchronized: yes
NTP service: active
RTC in local TZ: yes
Comment

time in linux command

date
or
timedatectl
Comment

current time linux

Open a terminal and type the following command:

date

Sat Nov  7 22:44:59 IST 2020

You can format the date as follows in dd-mm-yy format:
date +"%d-%m-%y"

07-11-2020
Comment

PREVIOUS NEXT
Code Example
Shell :: install sam cli ubuntu 
Shell :: ubuntu command get my ip 
Shell :: kali linux 
Shell :: how to add image in github readme 
Shell :: how to revert to a specific commit 
Shell :: how to install terraform in ubuntu 18.04 
Shell :: how to setup blackeye 
Shell :: $path mac 
Shell :: ifconfig not found 
Shell :: how to move a directory in linux 
Shell :: add vite to existing project 
Shell :: create branch in git 
Shell :: how to install lua on ubuntu 
Shell :: vscode showing deleted branches 
Shell :: windows wsl 
Shell :: how to download git for mac 
Shell :: composer install debian 
Shell :: ubuntu Not Found The requested URL was not found on this server. Apache/2.4.41 (Ubuntu) Server at localhost Port 80 
Shell :: linux commands 
Shell :: node js 16 install ubuntu 20.04 
Shell :: mount cifs ubuntu 
Shell :: bash case 
Shell :: Input is required, but Expo CLI 
Shell :: install docker ubuntu 
Shell :: bash while loop 
Shell :: docker pack image to file 
Shell :: gitignore file without extension 
Shell :: quarkus install cli 
Shell :: minecraft .bat code 
Shell :: warning unprotected private key file ec2 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =