Linux - How to set date and time, Change date and time usind date command
How to set date and time
How to change the date in linux operating system using date command?How can I set command from shell or command prompt?
# date Sat Oct 15 00:08:09 IST 2011The date command will just print the date. The -s along with date command is used to set the date. The below command is used to specify only date.
# date -s "14 OCT 2011" Fri Oct 14 00:00:00 IST 2011
Set date and time to 14th OCT 2011
# date -s "14 OCT 2011 00:13:00" Fri Oct 14 00:13:00 IST 2011
# date Fri Oct 14 00:15:05 IST 2011
Command to create a file with date and time stamp
# touch rename.txt`date +%d%m%y`
The topic on Linux - How to set date and time is posted by - Math
Hope you have enjoyed, Linux - How to set date and timeThanks for your time