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 :: rename a file in linux 
Shell :: remove all branch local git 
Shell :: install msf in termux 
Shell :: nuxt new project npm 
Shell :: laravel version global upgrade 
Shell :: git revert all commits to pervious commit 
Shell :: git commands download 
Shell :: git how to see changes made by a commit 
Shell :: how to install onnx on jetson nano 
Shell :: how to erase folder that match characters in linux 
Shell :: how to zip and unzip tar 
Shell :: how to check pyqt version 
Shell :: create md5 hash command line 
Shell :: linux bash temporary file 
Shell :: right click touchpad ubuntu budgie 
Shell :: size folder command line 
Shell :: android uninstall application adb 
Shell :: regolith linux 
Shell :: mkdir with permissions 
Shell :: uninstall specific java openjdk ubuntu 
Shell :: what is samba in linux 
Shell :: download docker ubuntu 
Shell :: ubuntu change user 
Shell :: debian mongodb 
Shell :: install nvm 
Shell :: boot pendrive cmd 
Shell :: ubuntu add line to end of file 
Shell :: bash script cd into script dir 
Shell :: how to run .rpm file in linux 
Shell :: create empty file command prompt cmd 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =