Setting the date in Linux from the CLI
Page 1 of 1
Setting the date in Linux from the CLI
date --set=”20200524 20:12:00”
The above command is simple 2020 is the year then the month o5 (for example) then the date 05 (example) then the time in 24 hours! (20 for 8 pm for example).
Without the correct date web pages wont work, update commands wont work nothing will work properly! you need the correct date!
Re: Setting the date in Linux from the CLI
Script to do this the British Way!!!
- Code:
#!/bin/bash
#(c) J~Net 2020
# ./run.sh
#
# https://jnet.forumotion.com/t1692-setting-the-date-in-linux-from-the-cli#2615
#
# Website:
# jnet.sytes.net
#
echo "Enter Day In Numbers:"
read day
echo "Enter Month In Numbers: Example: 05 For May"
read month
echo "Enter Year In Numbers:"
read year
echo "Enter Time In 24 Hour Format: Example: 20:04"
read time
date --set="$year$month$day $time"
Re: Setting the date in Linux from the CLI
More useful Links
nohypenolies.com/2020/02/automatic-date-and-time-enable-kali.html
List of NTP Time Servers
google.com/search?client=firefox-b-e&q=london+ntp+server
Daylight Savings Time (DST)
support.microfocus.com/kb/doc.php?id=3655154#
nohypenolies.com/2020/02/automatic-date-and-time-enable-kali.html
List of NTP Time Servers
google.com/search?client=firefox-b-e&q=london+ntp+server
Daylight Savings Time (DST)
support.microfocus.com/kb/doc.php?id=3655154#
Similar topics
» Linux Bash Setting Var & Fallback Var Setting With User Input
» setting up ssh on linux
» Setting Up D-Trace For Linux
» Setting Up Conky For Linux
» setting up linux cronjobs
» setting up ssh on linux
» Setting Up D-Trace For Linux
» Setting Up Conky For Linux
» setting up linux cronjobs
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum