Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Date time in linux prompt

PS1="[u@h D{%Y%m%d-%H:%M:%S}]$ "
Source by access.redhat.com #
 
PREVIOUS NEXT
Tagged: #Date #time #linux #prompt
ADD COMMENT
Topic
Name
6+1 =