Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

datetime echo shell script

$(date '+%d/%m/%Y %H:%M:%S')
Comment

bash get current date

# syntax
$(date)

# example (when running the command of "date")
echo $(date)

# OUTPUT: Mon May 11 13:20:57 SAST 2020
# To return a specific FORMAT, search "bash get date format"
Comment

bash date

date
Sun 23 Oct 2022 05:21:59 PM EDT

date -I
2022-10-23

date +%F_%T
2022-10-23_17:22:13

date --date=@1666560203
Sun 23 Oct 2022 05:23:23 PM EDT
Comment

bash date

date	#displays date and time in terminal
Comment

PREVIOUS NEXT
Code Example
Shell :: $() vs `` bash 
Shell :: git remove all files in gitignore 
Shell :: change regolith terminal 
Shell :: git remote using ssh 
Shell :: export bigquery scheam 
Shell :: open git gui from command line 
Shell :: git remove directory 
Shell :: how to change the web default browser in linux 
Shell :: open file in finder from terminals 
Shell :: linux mail delete all 
Shell :: refresh gnome shell 
Shell :: postgresql cli first time 
Shell :: prittier download ubuntu 
Shell :: how to remove git from vs code 
Shell :: check files that was changed in a particular git commit 
Shell :: git delete remote name 
Shell :: how to install homebrew using zsh 
Shell :: install freetype globally on ubuntu 
Shell :: linux checksum file 
Shell :: giving permission to folder in ubuntu 
Shell :: git log with branch tree 
Shell :: bash split line and get element 
Shell :: terminal git add ssh key 
Shell :: commit in git 
Shell :: bash colour codes 
Shell :: how to run docker in ubuntu 
Shell :: http sever with ssl start 
Shell :: choco chrome install 
Shell :: linux dd show progress 
Shell :: set muiltiple ssh keys for different github accounts on one computer 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =